Opened 13 years ago

Last modified 10 years ago

#766 open enhancement

Extend ffmpeg's timecode extraction

Reported by: TimNich Owned by:
Priority: normal Component: avformat
Version: git-master Keywords:
Cc: ffmpeg.org@kabsi.de Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Whilst many formats support adding timecode with the -timecode feature currently only the GXF format supports presenting this timecode in the metadata, with mpeg being read using the new ffprobe feature from commit fbe6e29646582fb97317ff3e7214a04ae74c9bef

For consistency it would be good if all formats for which it is valid to present a -timecode value to the muxer allowed extracting that timecode in the demuxer.

Ideally both reading and writing of timecode should be extended to all those formats that support it, which would include mxf and mov.

Given that "burnt in" timecode can now be added to any format using the drawtext filter. This would complete ffmpeg's capabilities in this area.

Change History (8)

comment:1 by Clément Bœsch, 13 years ago

Just an update of the current state: read is supported by all the common formats except MXF, and write by all the common formats except MOV (http://ffmpeg.org/general.html#Timecode).

comment:2 by Naud, 13 years ago

Also read not supported for DV S314M video files

comment:3 by Clément Bœsch, 13 years ago

Could you share a sample?

in reply to:  1 comment:4 by TimNich, 13 years ago

Replying to ubitux:

Just an update of the current state: read is supported by all the common formats except MXF, and write by all the common formats except MOV (http://ffmpeg.org/general.html#Timecode).

MXF is now supported since ad029c2....

comment:5 by Carl Eugen Hoyos, 13 years ago

Component: FFmpegavformat
Status: newopen

Do we have a DV S314M sample that needs this enhancement?

comment:6 by Naud, 13 years ago

Sample DV S314M video files:

Last edited 13 years ago by Naud (previous) (diff)

comment:7 by Dan, 10 years ago

Please see the sample "dv03-timecode.avi" provided for download via Dropbox:

https://www.dropbox.com/sh/766m02ndwwxk4nv/AAAX4-XKwYi6zq2mdmgc42Z8a?lst

Mediainfo extracts the timecode of the first frame as "00:58:35:14".

However, ffprobe does not, just try for yourself:

ffprobe -show_streams  -show_format dv03-timecode.avi

This seemingly contradicts ffprobe's man page which contends "AVI timecodes are available in format metadata".

comment:8 by Dan, 10 years ago

Cc: ffmpeg.org@kabsi.de added
Note: See TracTickets for help on using tickets.