[FFmpeg-trac] #9215(ffmpeg:new): stream_loop -1 not working with filter_complex overlay
FFmpeg
trac at avcodec.org
Thu May 6 10:24:24 EEST 2021
#9215: stream_loop -1 not working with filter_complex overlay
-------------------------------------+----------------------------------
Reporter: codeSam | Owner: (none)
Type: defect | Status: new
Priority: important | Component: ffmpeg
Version: unspecified | Resolution:
Keywords: stream_loop | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+----------------------------------
Comment (by codeSam):
I changed "stream_loop -1" filter to" loop true" and it started to work
normally as before. No other changes were required.
'ffmpeg',
'-thread_queue_size', '1024',
'-i', 'rtsp://...',
'-f', 'image2',
'-loop', 'true',
'-i', 'picture.png',
'-filter_complex', 'overlay=(main_w-overlay_w)/2:main_h*0.1-overlay_h',
'-acodec','aac',
'-ar', '44100',
'-ab', '128k',
'-f', 'flv',
'-g', '30',
'-vcodec', 'libx264',
'-preset', 'ultrafast',
'-crf', '30',
'rtmp://...'
In single line:
ffmpeg -thread_queue_size 1024 -i rtsp://... -f image2 -loop true -i
picture.png -filter_complex "overlay=(main_w-
overlay_w)/2:main_h*0.1-overlay_h" -acodec aac -ar 44100 -ab 128k -f flv
-g 30 -vcodec libx264 -preset ultrafast -crf 30 rtmp://...
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9215#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list