[FFmpeg-trac] #415(undetermined:new): vcodec copy fails with H264 stream from AVCHD container

FFmpeg trac at avcodec.org
Tue Aug 23 10:35:12 CEST 2011


#415: vcodec copy fails with H264 stream from AVCHD container
--------------------------+------------------------
 Reporter:  damian0815    |        Type:  defect
   Status:  new           |    Priority:  important
Component:  undetermined  |     Version:  0.8.2
 Keywords:                |  Blocked By:
 Blocking:                |  Reproduced:  0
 Analyzed:  0             |
--------------------------+------------------------
 I have a Canon HF G10 camcorder, which saves 1080p25/1080i50 H264+AC3 data
 streams in an AVCHD container.

 When attempting to copy the streams into an mp4 (or mov, but not mkv)
 container, ffmpeg is failing with a 'non monotonically increasing dts'
 error message before writing the first frame. I'm on Mac OSX 10.6, I've
 tried both ffmpeg 0.8.0 (compiled by Homebrew) and 0.8.2 (compiled by
 ./configure && make).

 commandline + output:

 {{{
 $ ffmpeg -v 9 -loglevel 99 -i 00167.MTS -vcodec copy -acodec copy
 00167.mp4
 ffmpeg version 0.8.2, Copyright (c) 2000-2011 the FFmpeg developers
   built on Aug 22 2011 16:25:22 with gcc 4.2.1 (Apple Inc. build 5666)
 (dot 3)
   configuration:
   libavutil    51.  9. 1 / 51.  9. 1
   libavcodec   53.  7. 0 / 53.  7. 0
   libavformat  53.  4. 0 / 53.  4. 0
   libavdevice  53.  1. 1 / 53.  1. 1
   libavfilter   2. 23. 0 /  2. 23. 0
   libswscale    2.  0. 0 /  2.  0. 0
 [mpegts @ 0x10104ec00] Format mpegts probed with size=2048 and score=100
 [mpegts @ 0x10104ec00] stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV
 [mpegts @ 0x10104ec00] stream=1 stream_type=81 pid=1100 prog_reg_desc=HDMV
 [h264 @ 0x101057200] Unsupported bit depth: 0
 [h264 @ 0x101057200] no picture
     Last message repeated 1 times
 Seems stream 0 codec frame rate differs from container frame rate: 50.00
 (50/1) -> 50.00 (50/1)
     Last message repeated 1 times
 Input #0, mpegts, from '../raw/AVCHD/BDMV/STREAM/00167.MTS':
   Duration: 00:00:01.44, start: 0.483578, bitrate: 12967 kb/s
   Program 1
     Stream #0.0[0x1011], 72, 1/90000: Video: h264 (High), yuv420p,
 1920x1080 [PAR 1:1 DAR 16:9], 1/50, 50 fps, 50 tbr, 90k tbn, 50 tbc
     Stream #0.1[0x1100], 45, 1/90000: Audio: ac3, 48000 Hz, stereo, s16,
 256 kb/s
 Output #0, mp4, to '00167.mp4':
   Metadata:
     encoder         : Lavf53.4.0
     Stream #0.0, 0, 1/25: Video: ![0][0][0] / 0x0021, yuv420p, 1920x1080
 [PAR 1:1 DAR 16:9], 1/25, q=2-31, 25 tbn, 25 tbc
     Stream #0.1, 0, 1/48000: Audio: ac3, 48000 Hz, stereo, 256 kb/s
 Stream mapping:
   Stream #0.0 -> #0.0
   Stream #0.1 -> #0.1
 Press [q] to stop, [?] for help
 [mp4 @ 0x101071e00] Application provided invalid, non monotonically
 increasing dts to muxer in stream 0: 1 >= 1
 av_interleaved_write_frame(): Invalid argument
 }}}

 output of mediainfo:

 {{{
 $ mediainfo 00167.MTS
 General
 ID                               : 0 (0x0)
 Complete name                    : 00167.MTS
 Format                           : BDAV
 Format/Info                      : Blu-ray Video
 File size                        : 2.24 MiB
 Duration                         : 1s 350ms
 Overall bit rate                 : 13.8 Mbps
 Maximum Overall bit rate         : 18.0 Mbps

 Video
 ID                               : 4113 (0x1011)
 Menu ID                          : 1 (0x1)
 Format                           : AVC
 Format/Info                      : Advanced Video Codec
 Format profile                   : High at L4.0
 Format settings, CABAC           : Yes
 Format settings, ReFrames        : 2 frames
 Codec ID                         : 27
 Duration                         : 1s 360ms
 Bit rate mode                    : Variable
 Bit rate                         : 13.0 Mbps
 Maximum bit rate                 : 16.0 Mbps
 Width                            : 1 920 pixels
 Height                           : 1 080 pixels
 Display aspect ratio             : 16:9
 Frame rate                       : 25.000 fps
 Color space                      : YUV
 Chroma subsampling               : 4:2:0
 Bit depth                        : 8 bits
 Scan type                        : Interlaced
 Scan order                       : Top Field First
 Bits/(Pixel*Frame)               : 0.251
 Stream size                      : 2.11 MiB (94%)

 Audio
 ID                               : 4352 (0x1100)
 Menu ID                          : 1 (0x1)
 Format                           : AC-3
 Format/Info                      : Audio Coding 3
 Mode extension                   : CM (complete main)
 Codec ID                         : 129
 Duration                         : 1s 440ms
 Bit rate mode                    : Constant
 Bit rate                         : 256 Kbps
 Channel(s)                       : 2 channels
 Channel positions                : Front: L R
 Sampling rate                    : 48.0 KHz
 Bit depth                        : 16 bits
 Compression mode                 : Lossy
 Stream size                      : 45.0 KiB (2%)
 }}}


 Original file is attached and at [http://frey.co.nz/share/00167.MTS]
 (2.2MB)

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/415>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list