[Release] Language Preference Manager

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kaffekask Offline
Senior Member
Posts: 222
Joined: Jul 2012
Reputation: 8
Location: Stockholm, Sweden
Post: #46
(2013-03-28 11:47)ace20022 Wrote:  
(2013-03-27 21:29)kaffekask Wrote:  According to Matroska specifications "unknown" should default to English.

No, the specification says that the default value of the language field is "eng".
But a user or more likely a program that creates the matroska file can assign an arbitrary value--with a length <= 3.
For example mkvmerge sets "und" (undetermined) by default and xbmc outputs this as "unknown".

Correct, the default language is English, and that's what should be shown if no language is set.

Mkvmerge doesn't set anything unless you specify a language, it leaves the value empty if none is defined, if you specify "eng" it also leaves the value empty.

If you open a file without a value in the language tag mkvmerge will show English, if you open it in the header editor it will show that it's not set.

If you open the same file in MPC-HC it will show English as language.

(2013-03-28 12:14)ace20022 Wrote:  
(2013-03-28 05:36)tevi Wrote:  I have several anime episodes that don't have any information for languages for both the audio or subtitle track. When I open the file in VLC and look at codec information it lists the subtitle stream but does not list language or any other metainformation.

You can check the file witg mediainfo, but I guess that there are just no languages set for the tracks.
You could either remux the mkvs with self specified languages with mkvmerge or change tracks' infos with mkvpropedit http://www.bunkus.org/videotools/mkvtool...t.examples .

MediaInfo will show English if there is no language set as it should do. (hmm do we see a pattern here Wink)
If you have a real old version of MediaInfo it will not show the language if none is set.

mkvpropedit or the header editor i mmg (File - Editor or Ctrl+E) are the only ways to set English as a language with mkvtoolnix, and they are the best and fastest way to set any language since there is just adding/changing a header attribut and no remuxing.

Edit:
Well, quite embarrasing when you realise that you discuss different things... Blush
So what I wrote is for audio and what Ace wrote is correct about subtitles.
(This post was last modified: 2013-03-28 23:36 by kaffekask.)
find quote
Ace Offline
Team-Kodi Member
Posts: 361
Joined: Aug 2012
Reputation: 11
Location: Germany
Post: #47
I rechecked this. My mkvmerge sets "und" by default. If I remove the language with the header editor it shows "eng". I checked the output of xbmc and it also shows "eng".
So we are both right, I guess Angel
I sum imo tevi's file has "und" set. Furthermore a preference for "und" or "unknown" isn't meaningful.
find quote
kaffekask Offline
Senior Member
Posts: 222
Joined: Jul 2012
Reputation: 8
Location: Stockholm, Sweden
Post: #48
My mkvmerge also sets "und" for subtitles if no language is defined, it's audio it leaves empty.
find quote
Kaba Offline
Junior Member
Posts: 11
Joined: Mar 2013
Reputation: 0
Post: #49
thank you, for this Great Plugin !

Is it possible to add Support for the Audioformat....
It will be Great, if i can choose:

1. AAC
2. AC3
3. DTS

because on my rasperry i like AAC (DTS is not posssible, without stuttering)
And on my other Player i like DTS as Primary.
(This post was last modified: 2013-04-04 11:32 by Kaba.)
find quote
Ace Offline
Team-Kodi Member
Posts: 361
Joined: Aug 2012
Reputation: 11
Location: Germany
Post: #50
(2013-04-04 09:04)Kaba Wrote:  thank you, for this Great Plugin !

Is it possible to add Support for the Audioformat....
It will be Great, if i can choose:

1. AAC
2. AC3
3. CDS

because on my rasperry i like AAC (DTS is not posssible, without stuttering)
And on my other Player i like DTS as Primary.

I'm glad that you like it! i added your request to the todo list at the bottom of the first post.

Version 0.0.4 released! Check the first post for the changelog and link.

@tevi I hope our hints were helpful, were they?
(This post was last modified: 2013-04-04 10:44 by Ace.)
find quote
Kaba Offline
Junior Member
Posts: 11
Joined: Mar 2013
Reputation: 0
Post: #51
Perfekt !! -))
find quote
Ace Offline
Team-Kodi Member
Posts: 361
Joined: Aug 2012
Reputation: 11
Location: Germany
Post: #52
Version 0.0.4 released! Check the first post for the changelog and link.

I'm looking for a nice icon for this addon. Suggestions are welcome!
find quote
Marx1 Offline
Fan
Posts: 317
Joined: Jan 2011
Reputation: 3
Post: #53
Thank you. I've just come here to ask how to disable subtitles when audio is in my native language and voila - it's already done :)
find quote
fernandovg Offline
Fan
Posts: 406
Joined: Jul 2012
Reputation: 4
Location: Brazil
Post: #54
I think this add-on should be part of XBMC......

nice job!

[Image: all-thin-banner.jpg]
find quote
schumi2004 Offline
Posting Freak
Posts: 1,423
Joined: Aug 2011
Reputation: 14
Post: #55
(2013-04-04 12:20)ace20022 Wrote:  Version 0.0.4 released! Check the first post for the changelog and link.

I'm looking for a nice icon for this addon. Suggestions are welcome!

Why not use a pimped up version of your avatar Wink
find quote
fernandovg Offline
Fan
Posts: 406
Joined: Jul 2012
Reputation: 4
Location: Brazil
Post: #56
a xbmc logo surrounded by country flags hehehe

[Image: all-thin-banner.jpg]
find quote
Marx1 Offline
Fan
Posts: 317
Joined: Jan 2011
Reputation: 3
Post: #57
Can you recommend settings which act like this:
-if there is polish audio use it and no any subtitles
-else if there is Polish subtitles use it
-else use english audio, subtitles etc
find quote
Ace Offline
Team-Kodi Member
Posts: 361
Joined: Aug 2012
Reputation: 11
Location: Germany
Post: #58
(2013-04-04 14:53)schumi2004 Wrote:  
(2013-04-04 12:20)ace20022 Wrote:  Version 0.0.4 released! Check the first post for the changelog and link.

I'm looking for a nice icon for this addon. Suggestions are welcome!

Why not use a pimped up version of your avatar Wink

(2013-04-04 15:00)fernandovg Wrote:  a xbmc logo surrounded by country flags hehehe

The problem is that I'm totally incapable in producing one on my own Blush Something like this https://github.com/Black09/script.videol...r/icon.png would be nice Big Grin Any artist/designer around here?
find quote
Ace Offline
Team-Kodi Member
Posts: 361
Joined: Aug 2012
Reputation: 11
Location: Germany
Post: #59
(2013-04-04 19:31)Marx1 Wrote:  Can you recommend settings which act like this:
-if there is polish audio use it and no any subtitles
-else if there is Polish subtitles use it

I would set it the following way:
  1. 1st audio pref to Polish
  2. 1st subtitle pref to Polish
  3. 1st cond. sub pref to Polish => None


(2013-04-04 19:31)Marx1 Wrote:  -else use english audio, subtitles etc

Can you elaborate this in more detail? Do you mean if no Polish audio and sub is available use English audio and sub? That would yield
  1. 2nd audio pref to English
  2. 2nd subtitle pref to English
find quote
Marx1 Offline
Fan
Posts: 317
Joined: Jan 2011
Reputation: 3
Post: #60
Thank you. Those else isn't important because i am too weak in English
find quote
Post Reply