[FFmpeg-trac] #2319(avformat:new): Using concat demuxer with truncated mp4 (mpeg2video, pcm_s16be) leads to infinite loop

FFmpeg trac at avcodec.org
Sun Mar 3 15:33:49 CET 2013


#2319: Using concat demuxer with truncated mp4 (mpeg2video,pcm_s16be) leads to
infinite loop
------------------------------------+------------------------------------
             Reporter:  ls          |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avformat
              Version:  git-master  |               Resolution:
             Keywords:  concat      |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  1           |
------------------------------------+------------------------------------

Comment (by ls):

 Thank you for the fast and helpful response. Now, ffmpeg's behavior makes
 sense to me.

 The reason I was assuming ffmpeg was stuck in an infinite loop, was that
 ffmpeg does not react to sigint when encoding the last frame repeatedly.
 Sending it multipe times or sigquit leads to unwritten headers, since it
 terminated without writing them.

 Since truncated files are a bit problematic because of their incorrect
 headers it could also be an option to just print a warning when decoding
 the file has finished earlier than the header indicated. This would help
 the user to understand whats going on in this situation.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2319#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list