Opened 5 years ago

Last modified 19 months ago

#766 open enhancement

Extend ffmpeg's timecode extraction

Reported by: nichot20 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 follow-up: Changed 5 years ago by 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).

comment:2 Changed 5 years ago by naud

Also read not supported for DV S314M video files

comment:3 Changed 5 years ago by ubitux

Could you share a sample?

comment:4 in reply to: ↑ 1 Changed 5 years ago by nichot20

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 Changed 5 years ago by cehoyos

  • Component changed from FFmpeg to avformat
  • Status changed from new to open

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

comment:6 Changed 5 years ago by naud

Sample video files:

Version 0, edited 5 years ago by naud (next)

comment:7 Changed 19 months ago by DanTheMan

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 Changed 19 months ago by DanTheMan

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