[FFmpeg-user] drawtext metadata

Moritz Barsnick barsnick at gmx.net
Thu Jun 4 17:15:19 CEST 2015


On Thu, Jun 04, 2015 at 13:07:12 +0200, lorenzo angeli wrote:
> here the output of identify -verbose, which makes me think I have to try
> with file.creator....
[...]
>   Properties:
>     date:create: 2015-03-11T20:51:58+01:00
>     date:modify: 2012-08-16T16:29:11+02:00
>     dpx:file.creator: Nuke
>     dpx:file.ditto.key: 1
>     dpx:file.timestamp: 2012:08:16:14:52:55:BST
>     dpx:file.version: V1.0

Just my two cents:

>From what I can tell, ffmpeg's DPX demuxer (as checked in
libavcodec/dpx.c) doesn't parse the DPX metadata as defined here:

http://www.fileformat.info/format/dpx/egff.htm

--quote--
typedef struct _GenericFileHeader
{
	DWORD Magic;            /* Magic number */
	DWORD ImageOffset;      /* Offset to start of image data in bytes */
	char  Version[8];       /* Version stamp of header format */
	DWORD FileSize;         /* Total DPX file size in bytes */
	DWORD DittoKey;         /* Image content specifier */
	DWORD GenericSize;      /* Generic section header length in bytes */
	DWORD IndustrySize;     /* Industry-specific header length in bytes */
	DWORD UserSize;         /* User-defined data length in bytes */
	char  FileName[100];    /* Name of DPX file */
	char  TimeDate[24];     /* Time and date of file creation */
	char  Creator[100];     /* Name of file creator */
	char  Project[200];     /* Name of project */
	char  Copyright[200];   /* File contents copyright information */
	DWORD EncryptKey;       /* Encryption key */
	char  Reserved[104];    /* Reserved field used for padding */
} GENERICFILEHEADER;


FileName is a 100-byte ASCII field containing free-form text
information identifying the name and path of the DPX file.

TimeDate is a 24-byte field containing a time and date stamp of when
the DPX file was created. This stamp is a string in the form
YYYY:MM:DD:HH:MM:SS:LTZ.

Creator is a 100-byte ASCII field containing free-form text information
identifying the creator of the DPX file and/or the image it contains.

Project is a 200-byte ASCII string containing free-form text
information identifying the project with which the DPX file and/or
image is associated.

Copyright is a 200-byte ASCII string containing free-form text
information identifying the copyright of the image data stored within
the DPX file.
--endquote--

I guess that's a RFE. :-) It shouldn't be too tough to implement if you
know how to write metadata handling in libav demuxers. I don't. ;-)

Moritz


More information about the ffmpeg-user mailing list