[FFmpeg-user] Picture in Picture with mux audio

Zach Underwood zunder1990 at gmail.com
Thu May 31 02:52:23 EEST 2018

I would like some help, below is the command I trying to run but I am
getting an error.

Failed to inject frame into filter network: Cannot allocate memory
Error while processing the decoded data for stream #0:0

ffmpeg version 3.4.2-1~16.04.york0.2

rtsp:// small picture
/dev/video2 is the big picture
hw:0 is the sound for the whole thing

ffmpeg -filter_threads 1 -rtsp_transport tcp -i rtsp:// -an -f video4linux2 -s
1920x1080 -i /dev/video2 -y -f alsa -i hw:0 -filter_complex
"[0]scale=iw/4:ih/4 [pip];
-map "[v]" -map "[a]" -ac 2 -ar 44100 -vcodec libx264 -acodec aac

My website <http://zachunderwood.me>

More information about the ffmpeg-user mailing list