[FFmpeg-user] Trying to add metadata media_type to mp4
aegoreev at gmail.com
Fri Jul 14 16:32:27 EEST 2017
I am pretty sure there was a large table with All the media types listed here: https://developer.apple.com/library/content/documentation/QuickTime/QTFF/Metadata/Metadata.html
I am not able to locate it from my phone right now though.
There is also one on exiftool webpage.
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Kieran O'Leary <kieran.oleary at irishfilm.ie> Date: 2017-07-14 3:13 AM (GMT-07:00) To: FFmpeg user questions <ffmpeg-user at ffmpeg.org> Subject: Re: [FFmpeg-user] Trying to add metadata media_type to mp4
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.
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-user