[FFmpeg-user] AVI and Timecode

Dietmar Thal info at dequid.net
Sun Dec 14 23:41:09 CET 2014

On 12.12.2014 22:48, Phil Rhodes wrote:
> the last time I checked, Premiere liked "tdat" chunks in AVI files, and also seems to write XML chunks containing timecode

Thanks Phil!

That pointed me in the right direction. In fact, in Adobe-written AVI's
there's both:

1. A LIST-chunk containing the timecode:

id: LIST (Tdat) size: 40 (52)
         id: tc_O size: 12 (20): 15:31:59:07
         id: tc_A size: 12 (20): 15:31:59:07

2. A XML-chunk also containing the timecode:

<?xpacket begin="?" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c014 
79.156797, 2014/08/20-09:53:02">
[Lots of metadata, even the AE-composition i rendered from..]
          <xmpDM:startTimecode rdf:parseType="Resource">
          <xmpDM:altTimecode rdf:parseType="Resource">
<?xpacket end="w"?>

Since my conversion-script is written in Perl, i have no problem
writing these in my ffmpeg-encoded mjpeg's. I use:

The funny thing: I have to provide both types of chunks, otherwise
it's '00:00:00:00' again, but the data is read from the first LIST-
chunk only. Again, Adobe-logic...

This is not yet proven to work under production conditions, but
seems to work. If someone is interested in my script so far, drop me
a line...

Again, thanks Phil, i would not have pointed this out without your


More information about the ffmpeg-user mailing list