[FFmpeg-trac] #3067(undetermined:new): Start time incorrect for video stream in AVCHD sample of Panasonic Lumix GH2

FFmpeg trac at avcodec.org
Mon Oct 21 16:22:32 CEST 2013


#3067: Start time incorrect for video stream in AVCHD sample of Panasonic Lumix
GH2
-------------------------------------+-------------------------------------
             Reporter:  rmk          |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 It was already mentioned in one of the comments to ticket #2338 but it
 deserves its own ticket.

 When using API or ffprobe to obtain the stream start time for the video
 stream for the sample for ticket #2338, it is reported to be 63916,
 however, the first frame in presentation order (and its containing packet
 have a timestamp of 67515 (which appears to be sensible).

 Command lines and output:

 ffprobe -select_streams 0 -show_streams gh2_1080i.mts
 ffprobe version N-57272-gc9a22d6 Copyright (c) 2007-2013 the FFmpeg
 developers
   built on Oct 20 2013 12:30:23 with llvm-gcc 4.2.1 (LLVM build
 2336.11.00)
   configuration:
   libavutil      52. 47.101 / 52. 47.101
   libavcodec     55. 37.102 / 55. 37.102
   libavformat    55. 19.103 / 55. 19.103
   libavdevice    55.  4.100 / 55.  4.100
   libavfilter     3. 88.102 /  3. 88.102
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 Input #0, mpegts, from 'gh2_1080i.mts':
   Duration: 00:00:01.00, start: 0.710178, bitrate: 40960 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 25.58 fps, 50 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
 fltp, 192 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
 0x0090), 1920x1080
 [STREAM]
 index=0
 codec_name=h264
 codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
 profile=High
 codec_type=video
 codec_time_base=1/50
 codec_tag_string=HDMV
 codec_tag=0x564d4448
 width=1920
 height=1080
 has_b_frames=1
 sample_aspect_ratio=1:1
 display_aspect_ratio=16:9
 pix_fmt=yuv420p
 level=40
 timecode=N/A
 id=0x1011
 r_frame_rate=50/1
 avg_frame_rate=307/12
 time_base=1/90000
 start_pts=63916
 start_time=0.710178
 duration_ts=N/A
 duration=N/A
 bit_rate=N/A
 nb_frames=N/A
 nb_read_frames=N/A
 nb_read_packets=N/A
 DISPOSITION:default=0
 DISPOSITION:dub=0
 DISPOSITION:original=0
 DISPOSITION:comment=0
 DISPOSITION:lyrics=0
 DISPOSITION:karaoke=0
 DISPOSITION:forced=0
 DISPOSITION:hearing_impaired=0
 DISPOSITION:visual_impaired=0
 DISPOSITION:clean_effects=0
 DISPOSITION:attached_pic=0
 [/STREAM]

 ffprobe -select_streams 0 -show_frames gh2_1080i.mts
 ffprobe version N-57272-gc9a22d6 Copyright (c) 2007-2013 the FFmpeg
 developers
   built on Oct 20 2013 12:30:23 with llvm-gcc 4.2.1 (LLVM build
 2336.11.00)
   configuration:
   libavutil      52. 47.101 / 52. 47.101
   libavcodec     55. 37.102 / 55. 37.102
   libavformat    55. 19.103 / 55. 19.103
   libavdevice    55.  4.100 / 55.  4.100
   libavfilter     3. 88.102 /  3. 88.102
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
 Input #0, mpegts, from 'gh2_1080i.mts':
   Duration: 00:00:01.00, start: 0.710178, bitrate: 40960 kb/s
   Program 1
     Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 25.58 fps, 50 tbr, 90k tbn, 50 tbc
     Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
 fltp, 192 kb/s
     Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] /
 0x0090), 1920x1080
 [FRAME]
 media_type=video
 key_frame=1
 pkt_pts=67515
 pkt_pts_time=0.750167
 pkt_dts=69315
 pkt_dts_time=0.770167
 pkt_duration=1800
 pkt_duration_time=0.020000
 pkt_pos=768
 pkt_size=83829
 width=1920
 height=1080
 pix_fmt=yuv420p
 sample_aspect_ratio=1:1
 pict_type=P
 coded_picture_number=0
 display_picture_number=0
 interlaced_frame=1
 top_field_first=1
 repeat_pict=0
 [/FRAME]

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


More information about the FFmpeg-trac mailing list