How to live stream YouTube or Ustream from a raspberry pi.
I will put a link to the Image file when I get it set up on my website.
This is the Raspberry Pi cam I am using http://amzn.to/20nW0GQ
Just type the commands below. I did this all in PuTTY using SSH.
So what we need to do is cross compile FFMPEG for the Raspberry Pi. ( I will just put a Image on my website for people to just down load a working image if people want it.
sudo raspi-config
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
First you need to install FFMPEG I used the website below.
http://www.jeffreythompson.org/blog/2...
Installing FFMPEG for Raspberry Pi
INSTALL H264 SUPPORT
Run the following commands, one at a time.
1 cd /usr/src
2 git clone git://git.videolan.org/x264
3 cd x264
4 ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
5 make
6 sudo make install
1. INSTALL OTHER LIBRARIES/FORMATS
Anything else you would like to install should be done now, before compiling FFMPEG. This includes MP3, AAC, etc.
2. INSTALL FFMPEG
Add lines similar to the --enable-libx264 for anything else installed above. This may take a REALLY long time, so be patient.
1 cd /usr/src
2 git clone git://source.ffmpeg.org/ffmpeg.git
3 cd ffmpeg
4 sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
5 make
6 sudo make install
Note if you have a Model B+ you can use make -j4 instead of just make to take advantage of all four cores!
To start the live stream for Youtube. Us this command line
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/Put your stream key here
To start it for Ustream us find out your rtmp server url and stream id here.
https://support.ustream.tv/hc/en-us/a...
Watch video How to Live Stream to Youtube or Ustream with Raspberry Pi online, duration hours minute second in high quality that is uploaded to the channel North Carolina Prepper 22 May 2016. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 18,157 times and liked it 96 visitors.