mkvmerge does not recognize language of ogg tracks
Original reporter: chut… AT gg3.…
mkvmerge does not recognize the language of ogg tracks. This is the output I get on a file I created:
$ mkvmerge -i audio.ogm File 'audio.ogm': container: Ogg/OGM Track ID 0: audio (Vorbis) Track ID 1: audio (Vorbis) $ ogminfo -v audio.ogm (ogminfo.c) (a1/serial 0) Vorbis audio (channels 2 rate 48000) (ogminfo.c) (a2/serial 1) Vorbis audio (channels 2 rate 48000) (ogminfo.c) a1: comment packet, length 49, 1 user comment field: (ogminfo.c) a1: LANGUAGE=English (ogminfo.c) a2: comment packet, length 50, 1 user comment field: (ogminfo.c) a2: LANGUAGE=Japanese
I tried setting the LANGUAGE comments to "en" and "ja", and "eng" and "jpn", but none of these worked. mmg still does not recognize the language when I add the tracks and mkvmerge -i still does not output the language when ran with -i. I also tried the same commands on the original .ogg files produced by oggenc, but the result was the same.
I ran mkvmerge through gdb and I confirmed that ogm_reader_c::handle_stream_comments() does work as expected.
At least at this point
if (iso639_2 != NULL) {
safefree(dmx->language);
dmx->language = safestrdup(iso639_2);
}
iso639_2 did have the language set and the program did call the safefree and safestrdup functions. Why is the language lost after that?