ExifTool Forum

General => Metadata => Topic started by: STEVENH on April 24, 2018, 08:42:50 AM

Title: Incorrect timecode output (I think)
Post by: STEVENH on April 24, 2018, 08:42:50 AM
I am trying to read time-codes from SONY AVCHD MTS files, I am seeing the frame item of the timecode exceeding the frame rate of the camera (64 for example on a 59.94 stream).

Here is an example output:

exiftool.exe -Timecode y:\PRIVATE\AVCHD\BDMV\STREAM\00000.MTS
Time Code                       : 15:20:56:64

Let me know if you need the sample MTS, looks like the form would not allow me to post it.

Steve
Title: Re: Incorrect timecode output (I think)
Post by: Phil Harvey on April 24, 2018, 11:39:25 AM
Hi Steve,

Yes, there is definitely something funny with the H264 TimeCode decoding.  I think this may be documented in IEC 61834-4, but I can't find a free copy of this, so it isn't accessible to me and I have to just guess at the decoding.  What I am doing is just reporting the raw values of the 4 bytes of the timecode tag.  For now, I would suggest just ignoring the last byte if it doesn't make sense for your videos.

- Phil