[FFmpeg-user] Issue timelapse fps slowing down until reach 0 fps - thread_queue_size

Dennis Mungai dmngaie at gmail.com
Sat Nov 23 21:57:40 EET 2019


On Sat, 23 Nov 2019 at 22:52, Ivan Junckes Filho <ivanjunckes at gmail.com> wrote:
>
> Please guys, really need help :)
>
> On Fri, Nov 22, 2019 at 9:53 PM Ivan Junckes Filho <ivanjunckes at gmail.com>
> wrote:
>
> > Hi guys, I am generating a timelapse of images, with a logo at the start
> > and audio.
> >
> > I am having an issue with fps going down to almost 0 and not finishing the
> > processing. I also get this message:
> >
> > [image2 @ 0x1cc28c0] Thread message queue blocking; consider raising the
> > thread_queue_size option (current value: 8)
> > frame=  388 fps=0.8 q=28.0 size=   13819kB time=00:00:16.50
> > bitrate=6860.9kbits/s dup=0 drop=142365
> >
> > The command I use is:
> > ffmpeg -r 20 -i
> > /home/timelapse/clientes/ctech_live/camera1/fotos/convert/frame%04d.jpg
> >  -framerate 20000/1001  -loop 1 -i
> > /home/timelapse/clientes/ctech_live/config/logo.png -i
> > /home/timelapse/config/audios/audio2.wav  -filter_complex "[1:v]
> > fade=out:st=3:d=1:alpha=1 [ov]; [0:v][ov]
> > overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2 [v]" -map "[v]"
> >  -filter:a "[2:a] afade=t=in:ss=0:d=5, afade=t=out:st=25:d=5" -map 2:a
> >  -strict -2 -t 30
> > /home/timelapse/clientes/ctech_live/camera1/timelapse/timelapse22-11-2019-21-44-57.mp4
> >
> > Anyone can help?
> >

Use this:

ffmpeg -thread_queue_size 512 -r 20 -i
/home/timelapse/clientes/ctech_live/camera1/fotos/convert/frame%04d.jpg
 -framerate 20000/1001  -loop 1 -thread_queue_size 512 -i
/home/timelapse/clientes/ctech_live/config/logo.png -thread_queue_size 512 -i
/home/timelapse/config/audios/audio2.wav  -filter_complex "[1:v]
fade=out:st=3:d=1:alpha=1 [ov]; [0:v][ov]
overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2 [v]" -map "[v]"
 -filter:a "[2:a] afade=t=in:ss=0:d=5, afade=t=out:st=25:d=5" -map 2:a
 -strict -2 -t 30
/home/timelapse/clientes/ctech_live/camera1/timelapse/timelapse22-11-2019-21-44-57.mp4

Note that -thread_queue_size 512 is an input option, so it must be
specified before each input in your command line.


More information about the ffmpeg-user mailing list