[FFmpeg-user] Trying to add metadata media_type to mp4
kieran.oleary at irishfilm.ie
Fri Jul 14 12:13:12 EEST 2017
It looks like media_type does not take a string like "media_type" as its value, but an Integer, according to the source code: https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/movenc.c#L3327
So the default seems to be 0 if you provide some text, which produces a value of 'Movie', but if you use -metadata media_type=1 , then the value becomes Music. From trial and error, it looks like
will produce a value of TV Show.
It looks like mediainfo has a good list of what the values produce: https://github.com/MediaArea/MediaInfoLib/blob/080212c30baea3f85602eaf61aa8feaedb983971/Source/MediaInfo/Multiple/File_Mpeg4_Elements.cpp#L2682
It looks like what ffmpeg calls media_type is mapped to ContentType in Mediainfo. i can't find any information about either element inthe QuickTime specification, though.
IFI Irish Film Archive.
This email has been scanned for spam and malware by The Email Laundry.
More information about the ffmpeg-user