I run a site (content offensive to some so I can't link) that allows some users to upload audios, where they get transcoded into m4a, mp3, vorbis, and opus. I then when I have time create WebVTT transcripts for the audios and when played on the website they are fine. However those are not much benefit to people who are hard of hearing who download them.
So I want to create downloadable versions with SRT embedded and it looks like Matroska is the best container for that. I can add a SRT via ffmpeg to a .m4a audio but accessing the captions is really difficult, and they display at a small size, But in VLC anyway when I make a .mka file - it can contain both the aac and opus streams so codec support is non-issue, and the SRT captions display beautifully at least in VLC (though an equalizer has to be in use, not sure why)
The problem is getting the right audio metadata. I am using the xml file format but it seems that VLC shows the filename instead of audio title. Here is an example of the xml:
Code: Select all
<?xml version="1.0" ?>
<!DOCTYPE Tags
SYSTEM 'matroskatags.dtd'>
<Tags>
<Tag>
<Simple>
<Name>ARTIST</Name>
<String>Goddess Rachel</String>
</Simple>
<Simple>
<Name>ALBUM</Name>
<String>ReDacted</String>
</Simple>
<Simple>
<Name>TITLE</Name>
<String>Purple ReDacted</String>
</Simple>
<Simple>
<Name>GENRE</Name>
<String>Erotic Audio</String>
</Simple>
<Simple>
<Name>PUBLISHER</Name>
<String>Redacted Publisher</String>
</Simple>
<Simple>
<Name>DISCNUMBER</Name>
<String>1</String>
</Simple>
<Simple>
<Name>TRACKNUMBER</Name>
<String>2</String>
</Simple>
<Simple>
<Name>CONTACT</Name>
<String>Redacted Link</String>
</Simple>
<Simple>
<Name>DATE_RELEASED</Name>
<String>2017-11-05</String>
</Simple>
</Tag>
</Tags>
Unfortunately the title never shows correctly, instead the filename is used. Tracknumber is also not used but I don't care about that as much. There must be something I'm not understanding about how Matroska tags work.
How do I get the correct audio title to display in VLC?
The .m4a and .opus files all are correct, but they are tagged with mutagen and I'm not sure I can tag Matroska with mutagen.