I have my Lego Raspberry Pi 3 up and live-streaming on YouTube. I followed this video and instructions below to get my pi streaming

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.

cd /usr/src

git clone git://git.videolan.org/x264

cd x264

./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl

sudo make

sudo make install

INSTALL OTHER LIBRARIES/FORMATS

Anything else you would like to install should be done now, before compiling FFMPEG. This includes MP3, AAC, etc.

INSTALL FFMPEG

Add lines similar to the –enable-libx264 for anything else installed above. This may take a REALLY long time, so be patient.

cd /usr/src

git clone git://source.ffmpeg.org/ffmpeg.git

cd ffmpeg

sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree

sudo make

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. Use this command line

raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -fs16le-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

Live stream is up and running! Let me know what you think of my setup and configuration 🙂

Live Stream – http://www.youtube.com/c/JoshSistoplus/live

Raspberry Pi Camera – http://amzn.to/2h8YZ6z

Raspberry Pi 3 – http://amzn.to/2h93fmu

Lego Case – http://amzn.to/2h930YG

USB Mic – http://amzn.to/2gMmNfz