MediaArea / MediaInfo

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://MediaArea.net/MediaInfo
BSD 2-Clause "Simplified" License
1.31k stars 158 forks source link

Mapping Color Config Semantics #911

Closed Ironclad17 closed 1 month ago

Ironclad17 commented 1 month ago

I wanted to create a simple script that maps the colorspace and pixel format values from MediaInfo to several video encoders that use slightly different syntax. Please see the subsection 6.4.2, 6.7.3, and 6.7.4 of the AV1 Bitstream & Decoding Process Specification. Is there any documentation clarifying this? FFmpeg for example provides a list of values for supported pixel formats, color_primaries, color_trc, colorspace, and color_range: https://ffmpeg.org/ffmpeg-codecs.html#Codec-Options

JeromeMartinez commented 1 month ago

For the moment it is only in https://github.com/MediaArea/MediaInfoLib/blob/master/Source/MediaInfo/Video/File_Mpegv.cpp#L33-L99

Ironclad17 commented 1 month ago

Thank you! This was exactly what I was looking for!