[FFmpeg-trac] #6031(undetermined:new): Hang while converting WTV to MP4

FFmpeg trac at avcodec.org
Mon Dec 19 23:48:39 EET 2016

#6031: Hang while converting WTV to MP4
             Reporter:  kazuna       |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
 I have a WTV file which causes ffmpeg to hang when converting to MP4.

 This is a regression introduced some time around July this year.

 Reproduce on FFmpeg (20161210/64-bit/static).
 Not Reproduce on FFmpeg (20160619/64-bit/static).

 To reproduce, I run a batch file on Windows 10:
 ffmpeg -i ABC.WTV -y -s 1280x720 -c:v libx264 -preset veryfast -c:a copy

 It may not reproduce the problem at the first loop but it won't take long.
 For me, it reproduces 50% at the first loop and 90% at the second loop.

 When it reproduces, I see no interesting console output but it just hangs
 at a random frame number while counting the frame:
 Input stream #0:1 frame changed from size:720x480 fmt:yuv420p to
 size:1280x720 fmt:yuv420p
 Past duration 0.795464 too large
 frame=31281 fps=255 q=26.0 size=  217464kB time=00:17:23.40
 bitrate=1707.4kbits/s dup=78 drop=31153 speed= 8.5x

 Please download the sample WTV file from:

Ticket URL: <https://trac.ffmpeg.org/ticket/6031>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list