vuryoo.blogg.se

Ffmpeg build alsa
Ffmpeg build alsa













ffmpeg build alsa

If you don't want or need audio, there is a way to substitute a "dummy" audio device, since YouTube will reject live stream feeds without sound.ģ. If ffmpeg is not compiled with alsa support there is no way to stream audio, so it would be a silent video. There is about a 10-15 second delay between what is being recorded and when it shows up on YouTube/Facebook.Ģ. (Replace YOUR_STREAM_KEY with your own key provided by YouTube or Facebook)ġ. Raspivid -o -t 0 -w 1920 -h 1080 -fps 25 -b 3000000 -rot 270 -g 50 -f | /home/pi/ffmpeg/ffmpeg -thread_queue_size 10240 -f h264 -r 25 -i -itsoffset 5.3 -f alsa -thread_queue_size 10240 -ac 2 -i hw:1,0 -vcodec copy -acodec aac -ac 2 -ar 44100 -ab 192k -f flv rtmp://a./live2/YOUR_STREAM_KEYįor live streaming to Facebook (requires quotation marks around the URL and stream key): Here are my two command lines, which captures video using raspivid and pipes it into ffmpeg, with ffmpeg capturing audio using the alsa plugin (for which I had to recompile ffmpeg) and muxing the h264 video and AAC audio streams into the FLV format for YouTube and Facebook. I meant YouTube Live, their live streaming service where anyone with a YouTube account can stream live video from a device, usually a smartphone but it can be any device with a video camera that can output h264 video and stream it via RTMP.

ffmpeg build alsa

You're welcome, I'm glad I could finally contribute something to the forums! configure -prefix=/home/pi/ffmpeg/dependencies/output -enable-gpl -enable-libx264 -enable-nonfree -enable-libfdk_aac -enable-omx -enable-omx-rpi -extra-cflags="-I/home/pi/ffmpeg/dependencies/output/include" -extra-ldflags="-L/home/pi/ffmpeg/dependencies/output/lib" -extra-libs="-lx264 -lpthread -lm -ldl" configure -enable-shared -enable-static Sudo apt-get install pkg-config autoconf automake libtool -y configure -prefix=/home/pi/ffmpeg/dependencies/output

ffmpeg build alsa

configure -enable-static -prefix=/home/pi/ffmpeg/dependencies/output/ Sudo apt-get install libasound2-dev libvpx. #Get some required libraries and header files for x264 and OMX I use an external USB sound card and the PiCam v2 and stream a video stream with a 192kbps stereo audio stream mixed in. I recommend uninstalling your current ffmpeg before using my script.ītw, I am able to stream directly to YouTube now without any issues. It will install ffmpeg in your home folder inside a "ffmpeg" folder, so you'll need to call it specifically from there unless you add it to your path. Below is the script I build to compile ffmpeg with alsa, fdk-aac, and libx264 support.

ffmpeg build alsa

You must recompile ffmpeg to add enable additional libraries.















Ffmpeg build alsa