[FFmpeg-devel] [PATCH] write reel_name metadata to tmcd atom

Mark Reid mindmark at gmail.com
Fri Aug 8 19:37:05 CEST 2014


hi,

My last patch added read support, now this on adds write support for reel names in tcmd atoms, as documented here:

https://developer.apple.com/library/mac/documentation/quicktime/qtff/QTFFChap3/qtff3.html/apple_ref/doc/uid/TP40000939-CH205-57409#//apple_ref/doc/uid/TP40000939-CH205-69831

The docs refer to this as "Source reference" but I used the metadata key "reel_name" because thats what FFmbc calls it.
This might also help address ticket#3753. I tried to keep the patch very minimal. Currently, the reel name is only written if both timecode and the metadata are added to a specific stream.

example usage:

ffmpeg -f lavfi -i testsrc -t 1 -timecode 01:00:00:00 -metadata:s:v:0 reel_name=ABCD123 OUTPUT.mov

ffprobe OUTPUT.mov

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    encoder         : Lavf55.52.100
  Duration: 00:00:01.00, start: 0.000000, bitrate: 399 kb/s
    Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 387 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc55.73.101 mpeg4
      timecode        : 01:00:00:00
    Stream #0:1(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
    Metadata:
      handler_name    : DataHandler
      reel_name       : ABCD123
      timecode        : 01:00:00:00

Mark Reid (1):
  write reel_name metadata to tmcd atom

 libavformat/movenc.c | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

-- 
2.0.0



More information about the ffmpeg-devel mailing list