It's a go application for streaming video through Youtube Live Stream, using raspivid and ffmpeg on Raspberry Pi.
You need:
You need to create your own config file.
Sample file is included, so feel free to copy it and change values as you want.
$ cp config.json.sample config.json
$ vi config.json
At least you have to change the youtube_stream_key value for running it.
You can get your key in your Live Stream Dashboard, which is labeled as 'Stream name/key'.
$ git clone https://github.com/meinside/rpi-camera-youtube-streamer.git
$ cd rpi-camera-youtube-streamer
$ go build
$ docker-compose build
$ docker-compose build --build-arg RPI=raspberry-pi2
$ docker-compose build --build-arg RPI=raspberry-pi
Just execute the binary:
$ ./rpi-cameera-youtube-streamer
If nothing goes wrong, you'll see your live streaming in your dashboard in several seconds.
$ docker-compose up
$ sudo cp systemd/rpi-camera-youtube-streamer.service /lib/systemd/system/
$ sudo vi /lib/systemd/system/rpi-camera-youtube-streamer.service
and edit User, Group, WorkingDirectory, and ExecStart values.
You can simply start/stop it with:
$ sudo systemctl start rpi-camera-youtube-streamer.service
$ sudo systemctl stop rpi-camera-youtube-streamer.service
If you want to launch it automatically on boot:
$ sudo systemctl enable rpi-camera-youtube-streamer.service
$ docker-compose up -d
Please open an issue.
MIT