[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://192.168.1.144:7447/59bd5abcf14c9e6f184d7220_0 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://
192.168.1.144:7447/59bd5abcf14c9e6f184d7220_0 -an -f video4linux2 -s
1920x1080 -i /dev/video2 -y -f alsa -i hw:0 -filter_complex
"[0]scale=iw/4:ih/4 [pip];
[1][pip]overlay=main_w-overlay_w-10:main_h-overlay_h-10[v];[2:a]amerge[a]"
-map "[v]" -map "[a]" -ac 2 -ar 44100 -vcodec libx264 -acodec aac
/nfs/incomingtmp/test.mkv

-- 
Zach Underwood (RHCE,RHCSA,RHCT,UACA)
My website <http://zachunderwood.me>
advance-networking.com


More information about the ffmpeg-user mailing list