[FFmpeg-trac] #11273(undetermined:new): Processing is x40 times slower in latest builds (tpad filter)

FFmpeg trac at avcodec.org
Wed Oct 30 11:22:53 EET 2024


#11273: Processing is x40 times slower in latest builds (tpad filter)
-------------------------------------+-------------------------------------
             Reporter:  Alex         |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  tpad         |               Blocked By:
  filtering filter_complex           |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Alex):

 You might wonder, why the second complex audio filter is there. Without it
 ffmpeg is unable to detect the -shortest media and simply hangs:

 {{{ffmpeg -y -i 1.wav -r 2 -i 3.png -c:a libopus -b:a 64K -c:v libx264
 -pix_fmt yuv420p -max_interleave_delta 0 -preset faster -x264-params "rc-
 lookahead=1:min-keyint=29:ref=0:subme=0:bframes=1:qp=20:scenecut=95"
 -filter_complex
 "[1:v]pad=ceil(iw/2)*2:ceil(ih/2)*2,tpad=stop_mode=clone:stop_duration=3600100[v];
 [0:a]anull[a]" -map "[v]" -map "[a]"  -shortest  -benchmark -report
 hang.mp4}}}

 Adding this second filter is a workaround suggested by mrskman in #3789
 four years ago. Again, version 2023 renders the code above without any
 issues.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11273#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list