[FFmpeg-trac] #502(avcodec:reopened): Jumping frames (wrong presentation order) in QT for avi(h264)->mp4 streamcopy (missing h264 pts interpolation code)

FFmpeg trac at avcodec.org
Fri Aug 1 08:57:44 CEST 2014


#502: Jumping frames (wrong presentation order) in QT for avi(h264)->mp4
streamcopy (missing h264 pts interpolation code)
------------------------------------+------------------------------------
             Reporter:  Alex__      |                    Owner:
                 Type:  defect      |                   Status:  reopened
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  h264 mov    |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by Selur):

 btw. using http://dl.free.fr/bvisTe0mD
 (AVCHD mts from a Sony DCR-CX115E)
 and
 {{{
 ffmpeg -i test_mvt.mts -vcodec copy -acodec pcm_s16be test_mvt.mov
 }}}

 I experienced the same problem, with the stuttering output.
 Here's the ffmpeg output
 {{{
 ffmpeg version git-2014-07-30-ff9a154 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Jul 30 2014 13:45:30 with gcc 4.9.1 (Rev1, Built by MSYS2
 project)
   configuration: --arch=x86_64 --disable-debug --disable-shared --disable-
 doc --enable-gpl --enable-version3 --enable-runtime-cpudetect --enable-
 avfilter --enable-bzlib --enable-zlib --enable-librtmp --enable-gnutls
 --enable-avisynth --enable-frei0r --enable-filter=frei0r --enable-
 libbluray --enable-libcaca --enable-libopenjpeg --enable-fontconfig
 --enable-libfreetype --enable-libass --enable-libgsm --enable-libmodplug
 --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
 --enable-libvo-amrwbenc --enable-libschroedinger --enable-libsoxr
 --enable-libtwolame --enable-libutvideo --enable-libspeex --enable-
 libtheora --enable-libvorbis --enable-libvo-aacenc --enable-openal
 --enable-libopus --enable-libvidstab --enable-libvpx --enable-libwavpack
 --enable-libxavs --enable-libx264 --enable-libx265 --enable-libxvid
 --enable-libzvbi
   libavutil      52. 93.100 / 52. 93.100
   libavcodec     55. 71.100 / 55. 71.100
   libavformat    55. 50.100 / 55. 50.100
   libavdevice    55. 13.102 / 55. 13.102
   libavfilter     4. 11.102 /  4. 11.102
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mpegts, from 'c:\Users\Selur\Desktop\test_mvt.mts':
   Duration: 00:00:06.24, start: 1.040000, bitrate: 17014 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
 fltp, 256 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
 0x0090), 1920x1080
 Output #0, mov, to 'h:\Output\test_mvt.mov':
   Metadata:
     encoder         : Lavf55.50.100
     Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR
 1:1 DAR 16:9], q=2-31, 25 fps, 90k tbn, 90k tbc
     Stream #0:1: Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, stereo,
 s16, 1536 kb/s
     Metadata:
       encoder         : Lavc55.71.100 pcm_s16be
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (ac3 (native) -> pcm_s16be (native))
 Press [q] to stop, [?] for help
 [mov @ 000000000066e680] pts has no value
     Last message repeated 155 times
 frame=  312 fps=0.0 q=-1.0 Lsize=   13215kB time=00:00:06.24
 bitrate=17349.1kbits/s

 video:12038kB audio:1170kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: 0.053760%
 }}}
 when using ffmbc instead of ffmpeg, I got:
 {{{
 FFmbc version 0.7-rc8
 Copyright (c) 2008-2013 Baptiste Coudurier and the FFmpeg developers
 Input #0, mpegts, from 'test_mvt.mts':
   Duration: 00:00:06.27, bitrate: 16922 kb/s
   Program 1
     Stream #0.0[0x1011](und): Video: h264 (High), yuv420p, 1920x1080i tff
 [PAR 1:1 DAR 16:9], 25.00 fps
     Stream #0.1[0x1100](und): Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
     Stream #0.2[0x1200](und): Subtitle: pgssub
 [pcm_s16be @ 03bfc640] The requested thread algorithm is not supported
 with this thread library.
 Output #0, mov, to 'test_mvt.mov':
   Metadata:
     encoder: FFmbc 0.7
     Stream #0.0(und): Video: h264, yuv420p, 1920x1080i tff [PAR 1:1 DAR
 16:9], stream copy, 25.00 fps
     Stream #0.1(und): Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
 Press [q] to stop, [?] for help
 [mov @ 04b314a0] color primaries unspecified, assuming bt709
 [mov @ 04b314a0] replacing header in front, copying 12.90MB
 frame=  156 fps=2500 Lsize=   13212kB time=00:00:06.24
 bitrate=17344.4kbits/s
 video:12038kB audio:1170kB global headers:0kB muxing overhead 0.026529%
 }}}
 and the output seems to be fine.

 thought about reporting the problem and found this thread, so not sure if
 it helps, but for some users, using ffmbc might be a working workaround.
 (since ffmbc is based on an older ffmpeg version, this might be a
 regression bug,..)

--
Ticket URL: <https://trac.ffmpeg.org/ticket/502#comment:20>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list