Scripts for the raspberry cam Tested on Raspberry Pi A+ and PiNoir Camera
Start stream based in pictures with MJPG creates stream for a Youtube live event Use the cross compiled ffmpeg for arm, here is the instruction and the download for the compiled ffmpeg:- Install Raspbian and download the crosscompiled ffmpeg to your Computer: https://drive.google.com/file/d/0B0OC20ApqKZ_YVB3NHF6VU9XTUE/edit?usp=sharing
- Transfer the arm.tar to raspberry PI and Untar with
# tar -xvf arm.tar.gz - move to the new folder
cd ./arm/bin - Start the Livestream 720p:
raspivid -o - -t 0 -w 1280 -h 720 -fps 25 -b 4000000 -g 50 | ./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://http://a.rtmp.youtube.com/live2/XXyourIDhereXX
Source: https://plus.google.com/+WolfgangSchlatter/posts/2L5fRou17AX