Incorrect timecode output (I think)

Started by STEVENH, April 24, 2018, 08:42:50 AM

Previous topic - Next topic

STEVENH

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).