[Pending] Addtional DVB languages (1 Viewer)

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
Hello

Here is a patch which adds few language codes to languages list which is used in TV configuration.

I've found these pseudo-languages on few channels. On the channel "MyZenTV" which specializes on landscapes, there are 4 audio "languages", first one which marked as NAT is sounds of the nature, second (MUS) is instrumental music, next are English and French comments. I'd like to make MP always select sounds of nature but it is impossible since in the list of DVB languages are no NAT nor MUS language codes. Even if I add one of these codes manually in the appropriate sting in MediaPortal.xml file, after next start of MediaPortal Configuration my change is discarded. One more code is UNK - unknown language which I've found on few, mostly musical, channels.
 

Attachments

  • Addtional_DVB_languages.patch
    1.2 KB

Vasilich

Portal Pro
August 30, 2009
3,394
1,170
Germany, Mayence
Home Country
Russian Federation Russian Federation
afaik this part acc. to DVB specs uses ISO-639-2 language set. and there are none of those "nat" or "mus" as language codes specified in standard (http://www.loc.gov/standards/iso639-2/ISO-639-2_utf-8.txt). for unknown there is "und", for "undetermined";
so maybe it is reasonable to ask provider to hold on DVB/ISO specs ?

actually most fitting language code for this may be "zxx":
The identifier [zxx] (no linguistic content) may be applied in a situation in which a language identifier is required by system definition, but the item being described does not actually contain linguistic content.
 

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
Asking provider to hold specification it's the best solution in a perfect world, but our world is unfortunately not perfect.

I pretty sure, my provider just re-translate the channel from a satellite, so all these language codes are broadcasted by channel's creators. The language code UNK is not so important because usually it is only one language for musical channel. I've rechecked and UNK is used by MTV and VH-1 channels.

In current sources are used two language codes (scc and scr) which is not listed in ISO-639-2.
 

Vasilich

Portal Pro
August 30, 2009
3,394
1,170
Germany, Mayence
Home Country
Russian Federation Russian Federation
In current sources are used two language codes (scc and scr) which is not listed in ISO-639-2.
yes, these are marked as deprecated and can be removed.
and IIRC 2 other exceptions (B-Codes) are not in our list.
So actually i have nothing against including those non-standard codes. The only thing is - maybe we should extract those non-standards in extra function, so the code will be more understandable for later checks...
 

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
I understand that offered solution is quick and dirty and may affect some other parts of engine. Another solution is to preserve somehow values manually added to list of languages in the configuration file.

BTW if the UNK lang code is added by TsReader and is non standard, may be it is better to change it to UND code which is standard?
 

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
Some channels have only one audio stream without language code, I have recorded TS files and checked with VLC player. In this case MP reports this stream as UNK.
 

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
BTW, I have found one channel on which TsReader reports invalid AC-3 audio streams in addition to valid MP1 streams. In other words the channel has 2 MP1 streams (Engish and Russian) when TsReader shows 2 MP1 and 2 AC-3 streams. There is no sound on AC-3 streams. I have TS file. Where is better to report this bug?
 

Users who are viewing this thread

Top Bottom