Jump to content


Photo

Auto language

DM500HD

  • Please log in to reply
26 replies to this topic

#1 bogyman

  • Senior Member
  • 80 posts

0
Neutral

Posted 26 July 2011 - 13:24

hello
i have genuine dm500hd with latest pli 26.7
as loyal user of newenigma image, i have to say pli image rocks !!!!!
i have on request please :-

i cant see any hebrew sub/lang auto select in"auto language selection menu"
so i tried to add it manualy
config.autolanguage.subtitle_autoselect1=heb
but each time enigma reset it

could you please fix that ?
best regards

Re: Auto language #2 WanWizard

  • PLi® Core member
  • 68,625 posts

+1,739
Excellent

Posted 26 July 2011 - 13:30

You can't make changes to the enigma config when enigma is running. It keeps the config in memory, and writes it when you restart.

Telnet into the box, stop enigma using "init 4", then change your config file, then restart enigma using "init 3".

Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Auto language #3 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 13:49

i cant see any hebrew sub/lang auto select in"auto language selection menu"

I can add that. So it works with "heb".. and the fullname is "hebrew"?

Indeed a work-a-round for the time being could be init 4, then change the settings and then restart again enigma with init 3...

I did not add all languages from the iso list as the list gets too long doing this... so did start to use the languages that were already available in Enigma2...

It could take until thursday evening before I can commit the change... sorry for that.

You could also add hebrew to /usr/lib/enigma2/python/Components/UsageConfig.py if you are able to do this... (without the + marks ofcourse)
    config.autolanguage = ConfigSubsection()
    subtitle_language_choices = [
	   ("---", "None"),
	   ("ara", "Arabic"),
	   ("eus baq", "Basque"),
	   ("hrv", "Croatian"),
	   ("ces cze", "Czech"),
	   ("dan", "Danish"),
	   ("dut ndl", "Dutch"),
	   ("eng", "English"),
	   ("est", "Estonian"),
	   ("fin", "Finnish"),
	   ("fra fre", "French"),
	   ("deu ger", "German"),
	   ("ell gre", "Greek"),
+	   ("hew", "Hebrew"),  
	   ("hun", "Hungarian"),
	   ("ita", "Italian"),
	   ("lat", "Latvian"),
	   ("lit", "Lithuanian"),
	   ("ltz", "Letzeburgesch"),
	   ("nob", "Norwegian"),
	   ("pol", "Polish"),
	   ("por", "Portuguese"),
	   ("fas per", "Persian"),
	   ("ron rum", "Romanian"),
	   ("rus", "Russian"),
	   ("srp", "Serbian"),
	   ("slk slo", "Slovak"),
	   ("slv", "Slovenian"),
	   ("spa", "Spanish"),
	   ("swe", "Swedish"),
	   ("tur", "Turkish")]
    audio_language_choices=[    
	   ("---", "None"),
	   ("orj dos ory org esl qaa und", "Original"),
	   ("ara", "Arabic"),
	   ("eus baq", "Basque"),
	   ("hrv", "Croatian"),
	   ("ces cze", "Czech"),
	   ("dan", "Danish"),
	   ("dut ndl", "Dutch"),
	   ("eng", "English"),
	   ("est", "Estonian"),
	   ("fin", "Finnish"),
	   ("fra fre", "French"),
	   ("deu ger", "German"),
	   ("ell gre", "Greek"),
+	   ("hew", "Hebrew"),  
	   ("hun", "Hungarian"),
	   ("ita", "Italian"),
	   ("lat", "Latvian"),
	   ("lit", "Lithuanian"),
	   ("ltz", "Letzeburgesch"),
	   ("nob", "Norwegian"),
	   ("pol", "Polish"),
	   ("por", "Portuguese"),
	   ("fas per", "Persian"),
	   ("ron rum", "Romanian"),
	   ("rus", "Russian"),
	   ("srp", "Serbian"),
	   ("slk slo", "Slovak"),
	   ("slv", "Slovenian"),
	   ("spa", "Spanish"),
	   ("swe", "Swedish"),
	   ("tur", "Turkish")]
    config.autolanguage.audio_autoselect1 = ConfigSelection(choices=audio_language_choices, default="---")
    config.autolanguage.audio_autoselect2 = ConfigSelection(choices=audio_language_choices, default="---")


Re: Auto language #4 DimitarCC

  • PLi® Contributor
  • 1,333 posts

+46
Good

Posted 26 July 2011 - 17:30

Hello! Please add Bulgarian also! I would appretiate! Thanks!

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & Triax 78 (39E)


Re: Auto language #5 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 26 July 2011 - 18:31

@littlesat:

Please consider the auto language be case insensitive. Some service providers use "ORY", "ENG", etc. The audio language selection does not work for such services.

Re: Auto language #6 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 18:46

The selection is case insensitive!!! as it is working with iso codes. What you see on the screen will be translated to iso codes which are always in full lowercase.

For ORY etc. you can use "original" as a language.

("orj dos ory org esl qaa und", "Original")


Hello! Please add Bulgarian also! I would appretiate! Thanks!


Yes sure... as soon as I have time for it...

Re: Auto language #7 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 26 July 2011 - 19:27

I found it case sensitive, sorry.
I manage to add ORY ENG and POL (the ones I am interesed in) to their respective places and have it working now.

Re: Auto language #8 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 19:36

Where did you enter them? when you select them from the menu they shoud work... Sorry!!! When you enter them upppercase in settings as you mention them her they will not work. Otherwise point me to the channels were it is not working well.... But it is not required to add them your self. Use English and Original at a lower priority as your prefered own languag (the 1st language has higher priority).

Re: Auto language #9 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 26 July 2011 - 19:39

I put them into the audio_language_choices table in the UsageConfig.py...

Re: Auto language #10 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 19:40

Then I suggest in capital... make it lowercase there!!! But you do not need them to add there at all as they are already available in English and Original...

Re: Auto language #11 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 26 July 2011 - 19:46

I know, but it didn't work without it for some reason. Without the "ORY" alongside the "ory" in that file the audio auto selection didn't work for me for channels with "ORY" as the audio language when I press the yellow button

Re: Auto language #12 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 19:49

You see "ORY" on the audio menu (yellow)... but inside it will be compared with "ory".... I tested it her 1000 times!!! Just select "Original" from the standard UsageConfig.py and you see it should work!!!

Re: Auto language #13 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 26 July 2011 - 19:59

Ok, I will try (but I doubt it will work for me without the "ORY" as I did that change about one week ago).

I can remember that I added it because I found some git check-in (I do not remember the file name but 99% it was .cpp). That check-in was just a case of optimisation in the audio selection related code, that optimisation removed the "case normalization" (to lowercase) of the language codes as according to the comment (in code or in check-in) the case conversion was not necessary as all there was supposed to be in lowercase.

Re: Auto language #14 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 20:40

That was indeed removed as it was not required... All there is already in lowercase always.

Re: Auto language #15 bogyman

  • Senior Member
  • 80 posts

0
Neutral

Posted 26 July 2011 - 21:10

thanks m8s for your kind help
i killed enigma and FTP'D UsageConfig.pyo to my pc then tried to edit it using notepad++ but it seem file s commpressed/packed
and i can seel only jebrish
nvm i will wait till thursday

Re: Auto language #16 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 26 July 2011 - 21:26

you can try attached one, restart enigma and 'Hebrew' choice should appear in menus...

Attached Files



Re: Auto language #17 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 22:10

In addition you can get the sources on your box with "opkg install enigma2-src"

Re: Auto language #18 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 26 July 2011 - 22:22

I did commit Hebrew and Bulgarian. So from tomorrow (after the next build) is should be available.

Re: Auto language #19 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 27 July 2011 - 09:01

Below comes my ORY/ory experience:

Auto audio settings in concern:
Audio preference: Original/Polish/English/French
Subtitles preference: Polish/English/French/None
Prefer AC3: Yes
Prefer audio stream stored by service: Yes
Allow subtitles equals audio mask: 2,3,4
Allow\Prefer hearing impaired subtitles: No
Prefer DVB-graphical subtitles: Yes
Prefer subtitle stored by service: Yes

Every change to the UsageConfig.py described later in this post included the following two steps:
1.
Replacing the UsageConfig.py (terminal), removing the UsageConfig.pyo (terminal), restarting enigma2 (box remote), updating the auto audio (box remote), restarting enigma2 again (box remote, to be on safe side).
2.
Rescanning all tuners (DVS-2: 13E, 19.2E, DVT) with clean option set to yes. Rescanning is the only way I can check if the auto audio selection worked. The auto audio selection is triggered only when I select the service for the first time after scanning. I think it is due to "settings per service" are active and I like the way it works very much.

I checked with 2 channels (both not FTA unfortunately):

1. Canal+ Film HD
1:0:1:32DD:190:13E:820000:0:0:0
13E, 11278kHz V, SR: 27500, 8PSK, FEC 3/4
audio tracks: MPEG Polish (380d audio pid) AC3 ORY (381d)
subtitles: DVB Polish, TXT Polish, ...
expected auto behavior: AC3 ORY + DVB Polish

2. Ale Kino!
1:0:1:12C5:2E7C:13E:820000:0:0:0
13E, 10892kHz H, SR: 27500, DVB-S QPSK, FEC 3/4
audio tracks: MPEG Polish (96d), MPEG ORY (97d)
subtitles DVB Polish, TXT Polish
expected auto behavior: MPEG ORY + DVB Polish

Original UsageConfig.py file: MPEG Polish audio selected, no subtitles on both channels

UsageConfig.py with audio_language_choices table entry changed to
("orj dos ory org esl qaa und mis mul", "Original"), :
audio and subtitle selections the same as for original UsageConfig.py. That check was made only to confirm that adding "mis" and "mul" does not affect the test. I added the "mis" and "mul" because one of our DVB-T service providers uses them.

UsageConfig.py with audio_language_choices table entry changed to
("orj dos ory org esl qaa und mis mul ORY", "Original"), :
Canal+ Film HD: AC3 ORY + DVB Polish
Ale Kino!: MPEG ORY + DVB Polish
And this is how it should work with the original .py file.

So, adding ORY does make a change.

I did not checked the ENG and POL because it is not testable (or necessary) in the current service configuration. Uppercase POL and ENG comes together only and the POL audio pid is lower than the ENG audio pid. This results in that POL always comes before ENG, the way I need on most of the channels.

Re: Auto language #20 macnuts

  • Senior Member
  • 420 posts

+14
Neutral

Posted 27 July 2011 - 09:25

By "updating the auto audio" in the step #1 of the "Every change to the UsageConfig.py..." I meant: updating the auto audio settings.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users