[FFmpeg-trac] #2168(FFprobe:new): Timecode from XDCAM-EX MP4 file

FFmpeg trac at avcodec.org
Tue Jan 22 13:55:49 CET 2013


#2168: Timecode from XDCAM-EX MP4 file
-------------------------------------+-------------------------------------
             Reporter:  RCAB         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  FFprobe      |                  Version:  1.1.1
             Keywords:  XDCAM-EX     |               Blocked By:
  TIMECODE                           |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: ffmpeg and ffprobe are reporting TIMECODE:00:00:00:00
 while the XDCAM Browser is showing 02:52:22:04
 File has Embedded XML at the end with the correct TimeCode (written
 backwards) "04225202"
 <NonRealTimeMeta xmlns="urn:schemas-
 professionalDisc:nonRealTimeMeta:ver.1.20" xmlns:lib="urn:schemas-
 professionalDisc:lib:ver.1.20" xmlns:xsi="http://www.w3.org/2001
 /XMLSchema-instance" lastUpdate="2009-12-01T14:53:49Z">
         <TargetMaterial
 umidRef="060A2B340101010501010D43130000007CA5DE9E665105DC0800460202372A0F"/>
         <Duration value="246"/>
         <LtcChangeTable tcFps="25" halfStep="false">
                 <LtcChange frameCount="0" value="04225202"
 status="increment"/>
                 <LtcChange frameCount="245" value="24315202"
 status="end"/>
         </LtcChangeTable>
         <CreationDate value="2009-12-01T14:53:38Z"/>
         <VideoFormat>
                 <VideoRecPort port="DIRECT"/>
                 <VideoFrame videoCodec="MPEG2HD35_1920_1080_MP at HL"
 captureFps="25.00p" recFps="25.00" formatFps="25p"/>
                 <VideoLayout pixel="1920" numOfVerticalLine="1080"
 aspectRatio="16:9"/>
         </VideoFormat>
         <AudioFormat numOfChannel="2">
                 <AudioRecPort port="ANALOG" audioCodec="LPCM16"
 trackDst="CH1"/>
                 <AudioRecPort port="DIRECT" audioCodec="LPCM16"
 trackDst="CH2"/>
         </AudioFormat>
         <RecordingMode type="normal" cacheRec="false"/>
 </NonRealTimeMeta>


 How to reproduce:
 {{{
 % ffmpeg -i XDCAM-EX-Sample-With_embedded_XML.MP4
 % ffprobe -show_streams XDCAM-EX-Sample-With_embedded_XML.MP4
 }}}
 Result:
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'XDCAM-EX-Sample-
 With_embedded_XML.MP4':
   Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42
     creation_time   : 2009-12-01 14:53:38
   Duration: 00:00:09.84, start: 0.000000, bitrate: 35761 kb/s
     Stream #0:0(eng): Video: mpeg2video (Main) (mp4v / 0x7634706D),
 yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 34220 kb/s, 2
 5 fps, 25 tbr, 25k tbn, 50 tbc
     Metadata:
       creation_time   : 2009-12-01 14:53:38
       handler_name    : Video Media Handler
     Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2
 channels, s16, 1536 kb/s
     Metadata:
       creation_time   : 2009-12-01 14:53:38
       handler_name    : NRT Metadata Handler
 [STREAM]
 index=0
 codec_name=mpeg2video
 codec_long_name=MPEG-2 video
 profile=Main
 codec_type=video
 codec_time_base=1/50
 codec_tag_string=mp4v
 codec_tag=0x7634706d
 width=1920
 height=1080
 has_b_frames=1
 sample_aspect_ratio=1:1
 display_aspect_ratio=16:9
 pix_fmt=yuv420p
 level=4
 '''timecode=00:00:00:00'''
 id=N/A
 r_frame_rate=25/1
 avg_frame_rate=25/1
 time_base=1/25000
 start_pts=3000
 start_time=0.120000
 duration_ts=246000
 duration=9.840000
 bit_rate=34220903
 nb_frames=246
 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
 TAG:creation_time=2009-12-01 14:53:38
 TAG:language=eng
 TAG:handler_name=Video Media Handler
 [/STREAM]
 [STREAM]
 index=1
 codec_name=pcm_s16be
 codec_long_name=PCM signed 16-bit big-endian
 profile=unknown
 codec_type=audio
 codec_time_base=1/48000
 codec_tag_string=twos
 codec_tag=0x736f7774
 sample_fmt=s16
 sample_rate=48000
 channels=2
 bits_per_sample=16
 id=N/A
 r_frame_rate=0/0
 avg_frame_rate=0/0
 time_base=1/48000
 start_pts=0
 start_time=0.000000
 duration_ts=472320
 duration=9.840000
 bit_rate=1536000
 nb_frames=472320
 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
 TAG:creation_time=2009-12-01 14:53:38
 TAG:language=eng
 TAG:handler_name=NRT Metadata Handler
 [/STREAM]

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


More information about the FFmpeg-trac mailing list