Skip to content

Instantly share code, notes, and snippets.

@CodeFoodPixels
Last active July 22, 2017 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CodeFoodPixels/4b64d0222f9a74cfceca789a76a0af38 to your computer and use it in GitHub Desktop.
Save CodeFoodPixels/4b64d0222f9a74cfceca789a76a0af38 to your computer and use it in GitHub Desktop.
FFmpeg rpi compile
sudo apt-get update -qy && apt-get -qy install build-essential git
git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
sudo apt-get install -qy libomxil-bellagio-dev libasound2-dev libmp3lame-dev
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-omx --enable-omx-rpi --enable-libmp3lame --enable-nonfree --extra-libs=-lasound
sudo make -j4
sudo make install
raspivid -o - -t 0 -w 1920 -h 1080 -fps 30 -b 8000000 -g 60 | ffmpeg -y -xerror -thread_queue_size 32K -f h264 -r 30 -itsoffset 0 -i - -f alsa -ar 11025 -itsoffset 5.5 -async 1 -ac 1 -thread_queue_size 32K -i hw:1 -c:a aac -b:a 32k -async 1 -c:v copy -f flv -flags:v +global_header -rtmp_buffer 10000 -r 30 -async 1 rtmp://a.rtmp.youtube.com/live2/<<key>>
https://www.raspberrypi.org/forums/viewtopic.php?t=177990#p1137469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment