Display MKV subtitles when track language not specified

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Display MKV subtitles when track language not specified

Postby fluxquanta » Tue Aug 07, 2012 3:44 am

For a while now I've been trying to figure out why some of my anime MKVs with embedded ASS subtitles were not displaying the subtitles on my TV, while other files seemed to work fine, using MEncoder (updated from the sticky) on PMS 1.60.0 . After some trial and error, I found that on the problematic files the subtitle track had no language defined (not "undefined", mind you...completely nonexistant). I used mkvpropedit to set the subtitle track language to English and voila, subtitles appear perfectly.

My question is, rather than go through every one of my files and set the language to English, is there a way that I can tell PMS to display subtitles even if no language is specified in the MKV? I realize I could write a script that sets the subtitle language with all my existing files easily, but then new files I download would have to be modified one by one as I receive them. It seems like modifying PMS in some way would be the easiest solution.

Any suggestions?

(I didn't use the "Problem Reporting Guidelines" as this isn't a specific problem as much as a call for advice to make things easier because I'm lazy -- everything "works" fine with PMS.)
fluxquanta
 
Posts: 5
Joined: Tue Aug 07, 2012 3:36 am

Re: Display MKV subtitles when track language not specified

Postby happy.neko » Tue Aug 07, 2012 6:52 am

You can select particular audio/sub track via #TRANSCODE# folder.
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Display MKV subtitles when track language not specified

Postby fluxquanta » Tue Aug 07, 2012 1:34 pm

So there's no way I could, say, play the subtitle with no language set by default? Like somehow adding a wildcard to the preferred sub language order in MEncoder options?
fluxquanta
 
Posts: 5
Joined: Tue Aug 07, 2012 3:36 am

Re: Display MKV subtitles when track language not specified

Postby ExSport » Tue Aug 07, 2012 6:32 pm

If you will read the FAQ, you will not ask here ;)
Answer is: UND
ExSport
 
Posts: 2167
Joined: Mon Jan 19, 2009 5:40 pm

Re: Display MKV subtitles when track language not specified

Postby fluxquanta » Tue Aug 07, 2012 8:06 pm

ExSport wrote:If you will read the FAQ, you will not ask here ;)
Answer is: UND


I did read the FAQ. I've read a ton of stuff on random websites as well. That doesn't work in this case. The language setting for the subtitle track doesn't exist in these problematic files. Undefined would work if the language setting existed, but wasn't set to anything.

Do you understand what I mean?

It's not that the language element isn't set on the track, but the language element doesn't exist on the track at all.
fluxquanta
 
Posts: 5
Joined: Tue Aug 07, 2012 3:36 am

Re: Display MKV subtitles when track language not specified

Postby ExSport » Tue Aug 07, 2012 8:31 pm

I am not sure if I understand it well but when PMS will not find audio/subtitle language tag, it takes them as UND.
So if MKV has audio track, it will be interpreted as UND when nothing is defined and if lang tag is set, it uses EN,DE,CS,ES, etc....
ExSport
 
Posts: 2167
Joined: Mon Jan 19, 2009 5:40 pm

Re: Display MKV subtitles when track language not specified

Postby fluxquanta » Tue Aug 07, 2012 8:53 pm

The way I understand it (and I can be horribly wrong) is that each track can have different "elements" defined. So track 1 may be video, track 2 audio, and track 3 subtitles, and within each track there is an element which can be set (like titles, chapters, or languages). So the subtitle track is there, but the element for language is missing. So basically instead of saying "Language = " in which case the language would be undefined and I imagine "und" would work, in my case "Language = " doesn't even exist.

So I assume that PMS/MEncoder is completely skipping over it since the part of the file that tells PMS what language the subtitle track is in doesn't exist.
fluxquanta
 
Posts: 5
Joined: Tue Aug 07, 2012 3:36 am

Re: Display MKV subtitles when track language not specified

Postby happy.neko » Wed Aug 08, 2012 7:09 am

fluxquanta wrote:It's not that the language element isn't set on the track, but the language element doesn't exist on the track at all.

Can you upload sample file?
happy.neko
Project Member
 
Posts: 478
Joined: Fri Sep 23, 2011 5:38 pm

Re: Display MKV subtitles when track language not specified

Postby fluxquanta » Thu Aug 09, 2012 11:20 pm

happy.neko wrote:
fluxquanta wrote:It's not that the language element isn't set on the track, but the language element doesn't exist on the track at all.

Can you upload sample file?

I'm not sure how opposed you are to torrents and downloading anime, but this one was one that was giving me trouble:

[mod]link removed[/mod]
fluxquanta
 
Posts: 5
Joined: Tue Aug 07, 2012 3:36 am


Return to Linux/Unix Support

Who is online

Users browsing this forum: No registered users and 5 guests