Jump to content


Photo

Mediaplayer Subtitles Issue (works only with 3 leters extension)

mediaplayer subtitles extension utf-8

  • Please log in to reply
34 replies to this topic

#1 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 October 2012 - 10:22

Dear all,


When using mediaplayer with filenames containing extension different than 3 leters (eg ts, divx) the subtitles don't work.

The issue most probably is (the assumption) inside servicemp3.cpp that extension is 3 leters. http://openpli.git.s...7881f36a3c909da

337				 char srt_filename[strlen(filename)+1];
338				 strncpy(srt_filename,filename,strlen(filename)-3);
339				 srt_filename[strlen(filename)-3]='\0';
340				 strcat(srt_filename, "srt");

Using the following code you can see the problem and two possible ways to fix the problem:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

void srtTest(const char*);
int main(){
   srtTest("/pathapath/filename.v");
   srtTest("/pathapath/filename.ts");
   srtTest("/pathapath/filename.avi");
   srtTest("/pathapath/filename.divx");
   srtTest("/pathapath/filename.mpeg4");
   return 0;
}

void srtTest(const char *filename){
   const char *ext = strrchr(filename, '.');
   char srt_filename[strlen(filename)+3];

   printf("Filename: %s:%d Extension: %s:%d\n", filename, strlen(filename), ext, strlen(ext));

   strncpy(srt_filename,filename,strlen(filename)-3);
   srt_filename[strlen(filename)-3] = '\0';
   strcat(srt_filename, "srt");
   printf("Subtitle Len: %d CopyTo: %d (%s)\n", strlen(filename)+1, strlen(filename)-3, srt_filename);

   strncpy(srt_filename,filename,strlen(filename)-strlen(ext)+1);
   srt_filename[strlen(filename)-strlen(ext)+1] = '\0';
   strcat(srt_filename, "srt");
   printf("Subtitle Len: %d CopyTo: %d (%s)\n", strlen(filename)-strlen(ext)+5, strlen(filename)-strlen(ext)+1, srt_filename);

   strncpy(srt_filename,filename, (size_t)(ext - filename + 1));
   srt_filename[ext - filename + 1] = '\0';
   strcat(srt_filename, "srt");
   printf("Subtitle Len: %d CopyTo: %d (%s)\n", ext - filename + 5, ext - filename +1, srt_filename);

   printf(" -=-=-=-=-=-=-=-=-=-\n");

}

# Save as openpliTestSrv.c and complile...
# gcc openpliTestSrt.c && ./a.out
Filename: /pathapath/filename.v:21 Extension: .v:2
Subtitle Len: 22 CopyTo: 18 (/pathapath/filenamsrt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
-=-=-=-=-=-=-=-=-=-
Filename: /pathapath/filename.ts:22 Extension: .ts:3
Subtitle Len: 23 CopyTo: 19 (/pathapath/filenamesrt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
-=-=-=-=-=-=-=-=-=-
Filename: /pathapath/filename.avi:23 Extension: .avi:4
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
-=-=-=-=-=-=-=-=-=-
Filename: /pathapath/filename.divx:24 Extension: .divx:5
Subtitle Len: 25 CopyTo: 21 (/pathapath/filename.dsrt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
-=-=-=-=-=-=-=-=-=-
Filename: /pathapath/filename.mpeg4:25 Extension: .mpeg4:6
Subtitle Len: 26 CopyTo: 22 (/pathapath/filename.mpsrt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
Subtitle Len: 24 CopyTo: 20 (/pathapath/filename.srt)
-=-=-=-=-=-=-=-=-=-

Probably taking into consideration the extension length the subtitle filename with be calculated correctly.


The adobe issue was discovered after searching the possible subtitles that mediaplayer can handle. According to the above code mediaplayer can only handle srt subtitles because we are searching only for filename.srt.

Question?

Can we introduce one more check? (Eg for filename.usrt).

//make an extra check for ustr (uft-8 srt)
if (stat(usrt_filename, &buffer) == 0){
...
}
else if (stat(srt_filename, &buffer) == 0)
{
....

The reason for this enchancement is to keep two version of subtitles one in iso format (eg filename.srt iso-8859-7) and the other in utf-8 format (eg filename.usrt utf-8).

Having the option for filename.usrt you can use the same (external usb) hard disk in other media players that do not support utf-8 subtitles without the need of convertion (from iso to utf-8 and versa).

Thanks,
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #2 littlesat

  • PLi® Core member
  • 57,509 posts

+709
Excellent

Posted 21 October 2012 - 10:23

This is a good purposal.... at least the stuff around the 3 charachers as extension.... but the usrt I do not really understand....

And your proposal is not good... you have to look for the last . in the filename string and not the first one :D

Edited by littlesat, 21 October 2012 - 10:28.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #3 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 October 2012 - 10:31

Actually servicemp3.cpp searches the last . (dot) using strrchr not strchr.

The usrt extension is a proposal for alternative subtitle (utf-8) when you are allready using srt subtitles (in iso).
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #4 littlesat

  • PLi® Core member
  • 57,509 posts

+709
Excellent

Posted 21 October 2012 - 10:37

1. Indeed...
2. Then better find a way to detect/convert them automatically somehow... name them usrt is a dirty work-a-round...

Edited by littlesat, 21 October 2012 - 10:39.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #5 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,604 posts

+62
Good

Posted 21 October 2012 - 16:23

now suppose I have two srt files, one for dutch and one for english. How should this be handled? How do other players do that?
I thought it was something like moviename.subtitlelanguage.srt ...
Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #6 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,604 posts

+62
Good

Posted 21 October 2012 - 16:25

Actually servicemp3.cpp searches the last . (dot) using strrchr not strchr.

I does so to determine the filename extention. But it does not use that to fid a srt filename.
Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #7 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 October 2012 - 17:10

I does so to determine the filename extention. But it does not use that to fid a srt filename.


Exactly!

Chaning the following three lines of str calculation with the use of strlen(ext) instead of the hardcoded 3 will find the correct sr filename.

   strncpy(srt_filename,filename,strlen(filename)-strlen(ext)+1);
   srt_filename[strlen(filename)-strlen(ext)+1] = '\0';
   strcat(srt_filename, "srt");

Now if we want to take the media player a step further, it should use the "Subtitle language selection" from the user preferences.

config.autolanguage.subtitle_autoselect1=ell gre
config.autolanguage.subtitle_autoselect2=eng qaa

Eg since the user selected the Greek and English subtitles, the media player should search the subtitles in the following order.

//PSEUDO CODE
if subtitle_autoselect1 setting EXISTS and srt filename EXISTS then
   USE IT
else if subtitle_autoselect2 setting EXISTS and srt autoselect2 EXISTS then
   USE IT
else if subititle_autoselect3 setting EXISTS and srt autoselect3 EXISTS then
   USE IT
else if subtitle_autoselect3 setting EXISTS and srt autoselect4 EXISTS then
   USE TI
else if srt EXISTS then
   USE IT
end if

Having the above preferences in srt subtitles it would be the ultimate solution! :D

Edited by athoik, 21 October 2012 - 17:14.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #8 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 October 2012 - 18:06

The following property is also interesting:

g_object_set (decodebin, "subtitle-encoding", encoding, NULL);

"subtitle-encoding"

Encoding to assume if input subtitles are not in UTF-8 encoding.
If not set, the GST_SUBTITLE_ENCODING environment variable will be checked for an encoding to use.
If that is not set either, ISO-8859-15 will be assumed.

I will try to export GST_SUBTITLE_ENCODING variable on eniga2 boot and see if non utf-8 encodings are working!


Sources:

http://harmattan-dev...btitle-encoding

http://code.google.c...codebin.c?r=896

Edited by athoik, 21 October 2012 - 18:07.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #9 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,604 posts

+62
Good

Posted 21 October 2012 - 18:06

The fixed length extention assumption should be fixed now. So .ts or divx files with srt files should work.
Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #10 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 October 2012 - 18:16

Indeed, the extension assumption is a bug. The other are features! But nice features :)
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #11 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 21 October 2012 - 20:23

Dear all,

When i am trying to play video from command line using gst-launch, the following command does not work:

gst-launch playbin2 uri=file:///path/to/movie.avi suburi=file:///path/to/movie.srt

(Play an AVI movie with an external text subtitle stream using playbin2)

Any idea how to play subtitles with gst-launch from command line? Without the suburi it works perfectly (but without subs).

The error probably has to do with the textoverlay:
WARNING: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:tbin/GstSubtitleOverlay:suboverlay: Your GStreamer installation is missing a plug-in.
Additional debug info:
gstsubtitleoverlay.c(442): _create_element (): /GstPlayBin2:playbin20/GstPlaySink:playsink0/GstBin:tbin/GstSubtitleOverlay:suboverlay:
no 'textoverlay' plugin found

Debug log: Attached File  gst-launch-suburi.debug.txt   29.74KB   3 downloads

PS1 I have all ready done init 4 and the problem arrives only when i am trying with the suburi parameter.
PS2 I wanted to try GST_SUBTITLE_ENCODING="ISO-8859-7" gst-launch ... and see if iso subtitles are working
PS3 Fix for !=3 leters in extension is allready commited, well done. http://openpli.git.s...b8154f32322304b

Edited by athoik, 21 October 2012 - 20:24.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #12 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 21 October 2012 - 22:10

gstreamer does not access the framebuffer, it relies on e2 to receive the subtitle buffers, and display them.
Perhaps you can find a subtitle rendering element, which renders to the framebuffer (but you'd have to stop e2, to allow the framebuffer to be used by gstreamer)

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #13 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 22 October 2012 - 09:07

Now if we want to take the media player a step further, it should use the "Subtitle language selection" from the user preferences.

config.autolanguage.subtitle_autoselect1=ell gre
config.autolanguage.subtitle_autoselect2=eng qaa

Eg since the user selected the Greek and English subtitles, the media player should search the subtitles in the following order.

//PSEUDO CODE
if subtitle_autoselect1 setting EXISTS and srt filename EXISTS then
   USE IT
else if subtitle_autoselect2 setting EXISTS and srt autoselect2 EXISTS then
   USE IT
else if subititle_autoselect3 setting EXISTS and srt autoselect3 EXISTS then
   USE IT
else if subtitle_autoselect3 setting EXISTS and srt autoselect4 EXISTS then
   USE TI
else if srt EXISTS then
   USE IT
end if

Having the above preferences in srt subtitles it would be the ultimate solution! :D


Dear all,

In order to use the use subtitles preferences we must do something like this:

std::string configvalue;
if (!ePythonConfigQuery::getConfigValue("config.autolanguage.subtitle_autoselect1", configvalue) && configvalue != "None" && accessSubtitle(configvalue))
   useSubtitle(configvalue);
else if (!ePythonConfigQuery::getConfigValue("config.autolanguage.subtitle_autoselect2", configvalue) && configvalue != "None" && accessSubtitle(configvalue))
   useSubtitle(configvalue);
else if (!ePythonConfigQuery::getConfigValue("config.autolanguage.subtitle_autoselect3", configvalue) && configvalue != "None" && accessSubtitle(configvalue))
   useSubtitle(configvalue);
else if (!ePythonConfigQuery::getConfigValue("config.autolanguage.subtitle_autoselect4", configvalue) && configvalue != "None" && accessSubtitle(configvalue))
   useSubtitle(configvalue);
else
{
   // old code for srt subtitle (without lang)
}

...
...

bool accessSubtitle(std::string configvalue)
{
   std::string tmp(filename);
   tmp += ".";
   tmp += configvalue;
   tmp += ".srt"
   if (::access(tmp.c_str(), X_OK) >= 0) return true;
   return false;
}

...
...

void useSubtitle(std::string configvalue)
{
   std::string tmp(filename);
   tmp += ".";
   tmp += configvalue;
   tmp += ".srt"

   eDebug("eServiceMP3::subtitle uri: %s", g_filename_to_uri(tmp.c_str(), NULL, NULL));
   g_object_set (G_OBJECT (m_gst_playbin), "suburi", g_filename_to_uri(tmp.c_str(), NULL, NULL), NULL);

}
...
...

Is someone willing to apply those changes and have the option for user perferences subtitles?

Thanks,
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #14 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,604 posts

+62
Good

Posted 22 October 2012 - 10:15

I think the correct approach is that:

- servicemp3 should collect all MOVIENAME.*.srt files into the subtitle list (it does not do that right now).
- the gui already has code to select a subtitle form this list (audio menu)
- the gui should apply autolanguage settings if wanted. I think it does not do that yet.
Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #15 littlesat

  • PLi® Core member
  • 57,509 posts

+709
Excellent

Posted 22 October 2012 - 11:07

There is no way with srt files to tag a language to it....
You can but subtitles in a stream with language tags .... but when you have a srt you prefer that one....

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #16 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 22 October 2012 - 18:39

I think the correct approach is that:

- servicemp3 should collect all MOVIENAME.*.srt files into the subtitle list (it does not do that right now).
- the gui already has code to select a subtitle form this list (audio menu)
- the gui should apply autolanguage settings if wanted. I think it does not do that yet.


Yes that would be nice mirakels, but i thing it's not possible to add more that one suburi in gstreamer. Probably there are other ways to implement multiple srt subtitles.

There is no way with srt files to tag a language to it....
You can but subtitles in a stream with language tags .... but when you have a srt you prefer that one....


littlesat taking into consideration the language preference, i believe is much better solution for now.

It won't break something (since simple .srt file will always checked) and people can ovveride the default filename.srt with a localized filename.xx.srt

Assuming that autoselect1 has the following value: config.autolanguage.subtitle_autoselect1=ell gre

The ePythonConfigQuery::getConfigValue("config.autolanguage.subtitle_autoselect1", configvalue) what value will return on configvalue? "ell gre" or ell or gre?

Because we might need one more function to return the two letters country code (ISO 3166-1 alpha-2) from three letters county code (ISO 3166-1 alpha-3).

http://en.wikipedia...._3166-1_alpha-2
http://en.wikipedia...._3166-1_alpha-3
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #17 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 24 October 2012 - 21:36

Assuming that autoselect1 has the following value: config.autolanguage.subtitle_autoselect1=ell gre

The ePythonConfigQuery::getConfigValue("config.autolanguage.subtitle_autoselect1", configvalue) what value will return on configvalue? "ell gre" or ell or gre?


Hello guys,


Any news on the possibility to use subtitle autoselect order preferences?


Thanks.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #18 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 28 October 2012 - 19:12

Hello everybody,

I setup a build enviroment on my computer and sucessfully manage to patch servicemp3. Servicemp3 with this patch is able to handle the order of subtitles according to the user preferences .

...
eServiceMP3::construct!
eServiceMP3::playbin2 uri=file:///media/usb/C1n3ma.Parad1s0.Sample.avi
eServiceMP3::searching for subtitle uri: file:///media/usb/C1n3ma.Parad1s0.Sample.el.srt
eServiceMP3::subtitle uri: file:///media/usb/C1n3ma.Parad1s0.Sample.el.srt
eServiceMP3::starting pipeline
...
eServiceMP3::construct!
eServiceMP3::playbin2 uri=file:///media/usb/C1n3ma.Parad1s0.Sample.avi
eServiceMP3::searching for subtitle uri: file:///media/usb/C1n3ma.Parad1s0.Sample.he.srt
eServiceMP3::searching for subtitle uri: file:///media/usb/C1n3ma.Parad1s0.Sample.en.srt
eServiceMP3::unknown subtitle lang: ---
eServiceMP3::searching for subtitle uri: file:///media/usb/C1n3ma.Parad1s0.Sample.zz.srt
eServiceMP3::unknown subtitle lang: ---
eServiceMP3::searching for subtitle uri: file:///media/usb/C1n3ma.Parad1s0.Sample.zz.srt
eServiceMP3::subtitle uri: file:///media/usb/C1n3ma.Parad1s0.Sample.srt
eServiceMP3::starting pipeline
...

The patch file applies to the latest version of servicemp3 Attached File  servicemp3.patch.txt   4.3KB   8 downloads.

Please someone with commit credentials review the patch and apply to the head.

Thanks.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #19 littlesat

  • PLi® Core member
  • 57,509 posts

+709
Excellent

Posted 28 October 2012 - 19:41

I suggest this patch is non-done....

At least this part..... And when you add srt's then I suggest you just add one srt... the one from your own country.... this is not based on any standard....

i understand it works.... and I understand the efford it takes...

The patch also only selects a correct srt in a non standard way with non standard language code something usually will not be used a lot... (then at least start to begin to use the standard iso language tags... - and do not use a subtable....

And subtitles who are normaly in the stream with a standard language tag are not selected at all by default...

+ if(lang == "ara") return "ar";
+ else if(lang == "eus baq") return "eu";
+ else if(lang == "bul") return "bg";
+ else if(lang == "hrv") return "hr";
+ else if(lang == "ces cze") return "cs";
+ else if(lang == "dut ndl") return "nl";
+ else if(lang == "eng qaa") return "en";
+ else if(lang == "est") return "et";
+ else if(lang == "fin") return "fi";
+ else if(lang == "fra fre") return "fr";
+ else if(lang == "deu ger") return "de";
+ else if(lang == "ell gre") return "el";
+ else if(lang == "heb") return "he";
+ else if(lang == "hun") return "hu";
+ else if(lang == "ita") return "it";
+ else if(lang == "lat") return "lv";
+ else if(lang == "lit") return "lt";
+ else if(lang == "ltz") return "lb";
+ else if(lang == "nor") return "no";
+ else if(lang == "pol") return "pl";
+ else if(lang == "por") return "pt";
+ else if(lang == "fas per") return "fa";
+ else if(lang == "ron rum") return "ro";
+ else if(lang == "rus") return "ru";
+ else if(lang == "srp") return "sr";
+ else if(lang == "slk slo") return "sk";
+ else if(lang == "slv") return "sl";
+ else if(lang == "spa") return "es";
+ else if(lang == "swe") return "sv";
+ else if(lang == "tha") return "th";
+ else if(lang == "tur") return "tr";

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Mediaplayer Subtitles Issue (works only with 3 leters extension) #20 Taykun345

  • Senior Member
  • 1,297 posts

+41
Good

Posted 28 October 2012 - 19:52

I agree with Littlesat. This wont be used alot because first you need to have multiple .srt files with different languages (i usually have only one .srt file beside video file, this scenario for sure happens in 95% of cases) and naming needs to be done correctly, otherwise enigma wont detect language. Kinda useless in my opinion.

Is UTF-8 issue still present (havent tested for a long time?)? Enigma should also handle ANSI .srt subtitles not only UTF-8.

Edited by Taykun345, 28 October 2012 - 19:54.

Army MoodBlue HD skin modification by me: https://github.com/T...-MoodBlueHD-mod
Matrix10 MH-HD2 skin modification by me: https://github.com/B...-MX-HD2-OpenPli
MetrixHD skin modification by me: https://github.com/T...xHD-WPstyle-mod
Slovenian translation for OpenPLi E2: https://github.com/T...ion-for-OpenPLi



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users