[FFmpeg-trac] #3393(undetermined:open): Interlaced H.264 packets are split causing MP4 STTS

FFmpeg trac at avcodec.org
Tue Feb 18 09:34:14 CET 2014


#3393: Interlaced H.264 packets are split causing MP4 STTS
-------------------------------------+-------------------------------------
             Reporter:  wim_arbor    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  h264         |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  1
-------------------------------------+-------------------------------------
Changes (by cehoyos):

 * keywords:   => h264
 * status:  new => open
 * reproduced:  0 => 1


Comment:

 Input sample contains 71 video frames:
 {{{
 $ ffmpeg -i h264_aac_576i_tff.ts -f null -
 ffmpeg version N-60700-g07b4b0c Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Feb 18 2014 09:15:18 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 64.100 / 52. 64.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  1.102 /  4.  1.102
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mpegts, from 'h264_aac_576i_tff.ts':
   Duration: 00:00:02.80, start: 600.000000, bitrate: 9671 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(tv, bt470bg), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k
 tbn, 50 tbc
     Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 127 kb/s
 Output #0, null, to 'pipe:':
   Metadata:
     encoder         : Lavf55.33.100
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x576
 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc
     Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> rawvideo)
   Stream #0:1 -> #0:1 (aac -> pcm_s16le)
 Press [q] to stop, [?] for help
 [null @ 0x1980400] Encoder did not produce proper pts, making some up.
 frame=   71 fps=0.0 q=0.0 Lsize=N/A time=00:00:02.84 bitrate=N/A
 video:7kB audio:512kB subtitle:0 data:0 global headers:0kB muxing overhead
 -100.004142%
 }}}
 142 frames are remuxed:
 {{{
 $ ffmpeg -i h264_aac_576i_tff.ts -vcodec copy -strict -2 out.mov
 ffmpeg version N-60700-g07b4b0c Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Feb 18 2014 09:15:18 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 64.100 / 52. 64.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  1.102 /  4.  1.102
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mpegts, from 'h264_aac_576i_tff.ts':
   Duration: 00:00:02.80, start: 600.000000, bitrate: 9671 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(tv, bt470bg), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k
 tbn, 50 tbc
     Stream #0:1[0x1100]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 127 kb/s
 Output #0, mov, to 'out.mov':
   Metadata:
     encoder         : Lavf55.33.100
     Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 720x576 [SAR
 16:15 DAR 4:3], q=2-31, 25 fps, 90k tbn, 90k tbc
     Stream #0:1: Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp,
 128 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (aac -> aac)
 Press [q] to stop, [?] for help
 [mov @ 0x29384c0] pts has no value
     Last message repeated 68 times
 [mov @ 0x29384c0] pts has no value
     Last message repeated 1 times
 frame=  142 fps=0.0 q=-1.0 Lsize=    3171kB time=00:00:02.78
 bitrate=9345.6kbits/s
 video:3159kB audio:8kB subtitle:0 data:0 global headers:0kB muxing
 overhead 0.129618%
 }}}
 The framerate is incorrect for out.mov:
 {{{
 $ ffmpeg -i out.mov -strict -2 out2.mov
 ffmpeg version N-60700-g07b4b0c Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Feb 18 2014 09:15:18 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 64.100 / 52. 64.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  1.102 /  4.  1.102
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf55.33.100
   Duration: 00:00:02.84, start: 0.014667, bitrate: 9148 kb/s
     Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv,
 bt470bg), 720x576 [SAR 16:15 DAR 4:3], 9113 kb/s, 50 fps, 50 tbr, 90k tbn,
 50 tbc (default)
     Metadata:
       handler_name    : DataHandler
     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp, 23 kb/s (default)
     Metadata:
       handler_name    : DataHandler
 Output #0, mov, to 'out2.mov':
   Metadata:
     major_brand     : qt
     minor_version   : 512
     compatible_brands: qt
     encoder         : Lavf55.33.100
     Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 720x576
 [SAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 12800 tbn, 50 tbc (default)
     Metadata:
       handler_name    : DataHandler
     Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp, 128 kb/s (default)
     Metadata:
       handler_name    : DataHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 -> mpeg4)
   Stream #0:1 -> #0:1 (aac -> aac)
 Press [q] to stop, [?] for help
 frame=  142 fps=0.0 q=2.0 Lsize=     142kB time=00:00:02.84 bitrate=
 408.4kbits/s dup=71 drop=0
 video:129kB audio:8kB subtitle:0 data:0 global headers:0kB muxing overhead
 2.731602%
 }}}

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


More information about the FFmpeg-trac mailing list