Tuesday, March 14, 2017

Getting ready for Winter Storm Stella

I've setup a webcam for folks to watch Winter Storm Stella from my house in Merrimack, NH.

Click on the live stream on here: https://www.youtube.com/user/MarcNo

There is a Raspberry Pi 3 with a picamera pointing out my front window. It is running this script:

raspivid -o - -t 0 -fps 30 -b 6000000  | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -
f flv rtmp://a.rtmp.youtube.com/live2/AAAA-BBBB-CCCC-DDDD

Where AAAA-BBBB-CCCC-DDDD is my secret YouTube key.

Essentially raspivid is sending the video to ffmpeg which add a silent audio loop and then forwards the flv stream to YouTube's ingestion server.

The info came primarily from: