[FFmpeg-user] Fill up dropped/missing UDP TS packets with still image? DVB encoding

ffmpeg at me.com ffmpeg at me.com
Mon Jul 24 14:41:21 EEST 2017

Is there a way to fill up the TS stream during encoding with an still image (or also an other TS) if packets during a UDP transmission (perhaps because of bat DVB signal) are lost? Together with ffplay? 

Currently I do something like this: ffmpeg -i "udp://" -map 0:3 -map 0:4 -s 1280x720 -af apad -acodec aac -b:a 192k -ab 48k -ac 2 -vcodec h264 -preset:v medium -r 50 -g 100 -vb 3200000 -y -fflags +genpts -f segment -segment_time 60 -segment_atclocktime 1 -strftime 1 "/videofiles/DVB_HD_%Y-%m-%d_%H-%M-%S.ts"

If a DVB signal problem arise ... the TS is bad and encoding could hang. 
Thanks for a solution idea,
Best, Fox

More information about the ffmpeg-user mailing list