I am writing my own program for writing video and audio to .mkv
container. I am successfully writing h.264
video in container with Codec_id V_MPEG4/ISO/AVC
but i can't find Codec_id for g.7xx audio codecs in specification? How can i properly write
g.711/g.722
to .mkv container?
Asked
Active
Viewed 602 times
0

rooltex
- 134
- 3
- 18
-
My guess: there is no such specification, you would need to write it yourself – Harry Nov 23 '17 at 19:54
1 Answers
0
It looks like MKV supports signaling Microsoft Audio Codec Manager (ACM) as A_MS/ACM. https://www.matroska.org/technical/specs/codecid/index.html
You find details for setting up the data structures here:
You will be off the beaten path with H.264/[a-law,u-law,ADPCM] - so players may not play your MKV files. Consider using 16-bit linear PCM which should be a loss less conversion.

Markus Schumann
- 7,636
- 1
- 21
- 27