[FFmpeg-trac] #10293(undetermined:new): FFMpeg ignores -shortest and goes on forever filling all the RAM available in a system (Avisynth input)

FFmpeg trac at avcodec.org
Tue Apr 4 14:25:18 EEST 2023


#10293: FFMpeg ignores -shortest and goes on forever filling all the RAM available
in a system (Avisynth input)
-------------------------------------+-------------------------------------
             Reporter:  Francesco    |                    Owner:  (none)
  Bucciantini                        |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  avisynth     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Francesco Bucciantini):

 Issue confirmed on Avisynth side, version 3.7.2 stable.
 Will be fixed in 3.7.3 Beta 10.

 To quote Stephen (qyot):

 ''FFmpeg reads video and audio packets separately, and if either reaches
 EOF, it attempts to read the other one before exiting, because it is
 easily possible - and not a bug - that either video or audio might be
 longer than the other, and it shouldn't be truncated.
 The error is that length=0 is treated by BlankClip as somehow valid when
 it isn't, and ends up creating an audio stream of infinite length, which
 FFmpeg then attempts to read/output.''

 So, in other words, BlankClip(length=0) should really throw an error from
 our side and it will be addressed 'cause currently it makes FFMpeg attempt
 to write an ever-increasing number of audio samples, until the process
 crashes or is killed.

 Closing the ticket now.

 Cheers,
 Frank
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10293#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list