#11597(avfilter:new): FFmpeg output is stuck if using split with fps filter
#11597: FFmpeg output is stuck if using split with fps filter -------------------------------------+------------------------------------- Reporter: TheTroll | Type: defect Status: new | Priority: important Component: avfilter | Version: git- Keywords: split | master thumbnail | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Summary of the bug: How to reproduce: {{{ % ffmpeg -re -y -i INPUT -filter_complex "[0:v]split=2[s0][sthumb];[s0]scale=320:184[o0];[sthumb]fps=1/60[othumb]" -an -c:v libx264 -map [o0] out.ts -map [othumb] -update 1 out.png }}} Built on master When trying to transcode an input live stream while extracting thumbnails (every minute in this example), using the split and fps filters, FFmpeg gets blocked and eventually generates the output after a while, by bursts. The following warning indicates that something is wrong: [out_#0:0 @ 0x7f1018013c00] 100 buffers queued in out_#0:0, something may be wrong. FFmpeg 5.1.2 works fine and as expected. Thanks -- Ticket URL: <https://trac.ffmpeg.org/ticket/11597> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11597: FFmpeg output is stuck if using split with fps filter -------------------------------------+------------------------------------- Reporter: TheTroll | Owner: (none) Type: defect | Status: new Priority: important | Component: avfilter Version: git-master | Resolution: Keywords: split | Blocked By: thumbnail | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Description changed by TheTroll: Old description:
Summary of the bug: How to reproduce: {{{ % ffmpeg -re -y -i INPUT -filter_complex "[0:v]split=2[s0][sthumb];[s0]scale=320:184[o0];[sthumb]fps=1/60[othumb]" -an -c:v libx264 -map [o0] out.ts -map [othumb] -update 1 out.png }}}
Built on master
When trying to transcode an input live stream while extracting thumbnails (every minute in this example), using the split and fps filters, FFmpeg gets blocked and eventually generates the output after a while, by bursts.
The following warning indicates that something is wrong:
[out_#0:0 @ 0x7f1018013c00] 100 buffers queued in out_#0:0, something may be wrong.
FFmpeg 5.1.2 works fine and as expected.
Thanks
New description: Summary of the bug: How to reproduce: {{{ % ffmpeg -re -y -i INPUT -filter_complex "[0:v]split=2[o0][sthumb];[sthumb]fps=1/60[othumb]" -an -c:v libx264 -map [o0] out.ts -map [othumb] -update 1 out.png }}} Built on master When trying to transcode an input live stream while extracting thumbnails (every minute in this example), using the split and fps filters, FFmpeg gets blocked and eventually generates the output after a while, by bursts. The following warning indicates that something is wrong: [out_#0:0 @ 0x7f1018013c00] 100 buffers queued in out_#0:0, something may be wrong. FFmpeg 5.1.2 works fine and as expected. Thanks -- -- Ticket URL: <https://trac.ffmpeg.org/ticket/11597#comment:1> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11597: FFmpeg output is stuck if using split with fps filter -------------------------------------+------------------------------------- Reporter: TheTroll | Owner: (none) Type: defect | Status: new Priority: important | Component: avfilter Version: git-master | Resolution: Keywords: split | Blocked By: thumbnail | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Gyan): Why the `-re` for a live stream? -- Ticket URL: <https://trac.ffmpeg.org/ticket/11597#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11597: FFmpeg output is stuck if using split with fps filter -------------------------------------+------------------------------------- Reporter: TheTroll | Owner: (none) Type: defect | Status: new Priority: important | Component: avfilter Version: git-master | Resolution: Keywords: split | Blocked By: thumbnail | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by TheTroll): Hi, Because to make a quick test, you can use any source file and use -re to make it act as a live stream. You can obtain the same issue removing -re and using a live URl as input. thanks -- Ticket URL: <https://trac.ffmpeg.org/ticket/11597#comment:3> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11597: FFmpeg output is stuck if using split with fps filter -------------------------------------+------------------------------------- Reporter: TheTroll | Owner: (none) Type: defect | Status: new Priority: important | Component: avfilter Version: git-master | Resolution: Keywords: split | Blocked By: thumbnail | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by Gyan): What about `ffmpeg -y -i LIVE_INPUT -an -c:v libx264 -map 0:v out.ts -map 0:v -filter:v "fps=1/60" -update 1 out.png` -- Ticket URL: <https://trac.ffmpeg.org/ticket/11597#comment:4> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11597: FFmpeg output is stuck if using split with fps filter -------------------------------------+------------------------------------- Reporter: TheTroll | Owner: (none) Type: defect | Status: new Priority: important | Component: avfilter Version: git-master | Resolution: Keywords: split | Blocked By: thumbnail | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Comment (by TheTroll): OMG that helped! Thanks for the trick. That's a good one, I wonder why the split thing doesnt work anymore though? -- Ticket URL: <https://trac.ffmpeg.org/ticket/11597#comment:5> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
#11597: FFmpeg output is stuck if using split with fps filter -------------------------------------+------------------------------------- Reporter: TheTroll | Owner: (none) Type: defect | Status: closed Priority: important | Component: avfilter Version: git-master | Resolution: fixed Keywords: split | Blocked By: thumbnail | Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Changes (by Marton Balint): * resolution: => fixed * status: new => closed Comment: Fixed in 42bcbdd456d1ca2aa2d0665840830f0a5bf8be39. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11597#comment:6> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg