MediaArea / MediaInfoLib

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
616 stars 169 forks source link

PCM in Matroska doesn't report endianness #643

Open beccabender opened 6 years ago

beccabender commented 6 years ago

There are a couple of audio Format_Settings that are reported for Quicktime, but not Matroska.

Here's an example in Quicktime:

   <Format>PCM</Format>
   <Format_Settings_Endianness>Little</Format_Settings_Endianness>
   <Format_Settings_Sign>Signed</Format_Settings_Sign>
   <CodecID>in24</CodecID>

And here's an example in Matroska:

   <Format>PCM</Format>
   <CodecID>A_PCM/INT/LIT</CodecID>

Is it possible to have Format_Settings_Endianness and Format_Settings_Sign added for Matroska?

Thank you.

JeromeMartinez commented 6 years ago

We did not think to map the CodecID to Endianess. As it looks like there is a reference to Microsoft in CodecID info in Matroska doc, I guess the Sign is same as for WAV.

dericed commented 6 years ago

The signedness of PCM is expressed in the specification at https://github.com/Matroska-Org/matroska-specification/blob/master/codec_specs.md#a_pcmintlit.