https://github.com/eat-sleep-code/streamer
Stream your Rasperry Pi camera to YouTube
https://github.com/eat-sleep-code/streamer
Last synced: 12 months ago
JSON representation
Stream your Rasperry Pi camera to YouTube
- Host: GitHub
- URL: https://github.com/eat-sleep-code/streamer
- Owner: eat-sleep-code
- Created: 2021-04-20T15:58:01.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-27T15:31:07.000Z (about 5 years ago)
- Last Synced: 2025-03-12T19:46:39.581Z (about 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Streamer
Stream your Rasperry Pi camera's video to YouTube
---
## Getting Started
- Use [raspi-config](https://www.raspberrypi.org/documentation/configuration/raspi-config.md) to:
- Set the Memory Split value to a value of at least 192MB
- Enable the CSI camera interface
- Set up your WiFi connection
- Connect the Raspberry Pi camera to your Raspberry Pi
## Installation
Installation of the program, as well as any software prerequisites, can be completed with the following two-line install script.
```
wget -q https://raw.githubusercontent.com/eat-sleep-code/streamer/main/install-streamer.sh -O ~/install-streamer.sh
sudo chmod +x ~/install-streamer.sh && ~/install-streamer.sh
```
---
## Usage
```
streamer
```
### Options
+ _--key_ : Set the YouTube secret key *(required)*
+ _--fps_ : Set the output framerate *(default: 60)*
+ _--width_ : Set the horizontal resolution / width *(default: 1920)*
+ _--height_ : Set the vertical resolution / width *(default: 1080)*
+ _--bitrate_ : Set the output bitrate in MB/s *(default: 15)*
+ _--rotate_ : Rotate the camera in 90° increments *(default: 0)*
---
## Get Your Key
You will need to acquire a Stream Key from YouTube.
---
## Autostart Stream
Want to start the stream every time you boot your Raspberry Pi? Here is how!
* Review `/etc/systemd/system/streamer.service`
* Replace `YOURKEYHERE` with the key your acquired in the step above.
* Run `~/camera.timelapse/install-streamer.service.sh`
---
## Infrared Cameras
If you are using an infrared (IR) camera, you will need to modify the Auto White Balance (AWB) mode at boot time.
This can be achieved by executing `sudo nano /boot/config.txt` and adding the following lines.
```
# Camera Settings
awb_auto_is_greyworld=1
```
Also note, that while IR cameras utilize "invisible" (outside the spectrum of the human eye) light, they can not magically see in the dark. You will need to illuminate night scenes with one or more to take advantage of an Infrared Camera.
---
:information_source: *This application was developed using a Raspberry Pi HQ (2020) camera and Raspberry Pi 3B+ and Raspberry Pi 4B boards. It has also been tested using v2.1 Raspberry Pi 8MP cameras. Issues may arise if you are using either third party or older hardware.*