- compile ffmpeg for arm https://github.com/fiorix/ffmpeg-arm
- create youtube 'live event'. get rtmp url + session id
- run this:
raspivid -o - -t 0 -vf -hf -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/<SESSION>
you can tweak -b
and -fps
to your liking. the settings above work well for 1080p. by not specifying width or height we get the full 1920x1080 resolution from the raspi camera
note: it might work with libav-tools
instead of ffmpeg
(ffmpeg isnt on apt-get in raspbian) but I haven't tested it
example video created using above method: https://www.youtube.com/watch?v=Xn4yNavjdR4&t=28m0s
Ditto here also. I'm and old ex-UNIX admin who can't stop playing with Linux. So, I've tried going the Docker route but I don't want to set up a box just to do a cross compile. The RPi2 is completely capable of compiling this code, but.......we can get a hold of the necessary resources unless we cross do containers and cross compile. Therefore, could you please steer us in the direction of where we can do this on our own little Pi's? Your YouTube kitty stream is absolutely the cat's meow...sorry about that, but it's true. Now could you please share with and guide the noobs?
Much obiged,
-b|d-