[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
SMPlayer Support Forum • View topic - Subtitle encoding

This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Subtitle encoding

Problems, bugs, suggestions... anything related to SMPlayer.

Subtitle encoding

Postby bentix » Mon Feb 20, 2012 9:57 pm

Hi,

I've got subtitles with different encoding and i'm obliged to switch subtitle encoding (either UTF-8 or Western Eutopean Languages ISO-8859-1) in SMPlayer configuration depending on the video i'm watching. Is it possible to configure SMPlayer to automatically recognize the encoding (UTF-8, ANSI) ?

Here is my configuration:
SMPlayer version: version 0.7.0 SVN r3810
MPlayer version: SVN r33216
SMPlayer configuration: Default encoding is in Western Eutopean Languages ISO-8859-1 and i've activated the autodetection for my language (french).
bentix
 
Posts: 4
Joined: Mon Feb 20, 2012 9:39 pm

Re: Subtitle encoding

Postby reyalpms » Tue Feb 28, 2012 7:23 pm

I have this problem too. My subtitles are encoded in UTF-8, but newer subtitles that I download are encoded in ISO-8859-15, and I have to manually change them to UTF-8. It would be nice to have an option in SMPlayer to automatically detect the encoding of the subtitle file for any language, because right now there is only the default encoding option.

I have thought that the file program could be used to autodetect the subtitles encoding, it is multi-platform and free/open source (BSD license). It seems that it is included in most Linux/BSD distributions. http://www.darwinsys.com/file/

P.D. The language autodetection, for spanish-ES doesn't work for me with srt files.
reyalpms
 

Re: Subtitle encoding

Postby rvm » Tue Feb 28, 2012 10:41 pm

There's an option in preferences -> subtitles for detecting the encoding, but it only works if mplayer was compiled with enca support.

I've just tested mplayer r34747 (linux) with the subtitles sent in and it works wonderfully.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: Subtitle encoding

Postby reyalpms » Thu Mar 01, 2012 4:47 am

reyalpms
 

Re: Subtitle encoding

Postby reyalpms » Thu Mar 01, 2012 5:15 am

reyalpms
 

Re: Subtitle encoding

Postby bentix » Sat Mar 03, 2012 4:51 pm

rvm said that it seems to work with mplayer r34747 (linux), but i'm not on linux, i'm using windows7. I've downloaded the latest build of mplayer2 (http://www.mplayer2.org/), replaced the executable mplayer.exe by mplayer2.exe (and renamed it after in mplayer.exe) and now it works. Thanks for your suggestion rvm !

Version where it doesn't work: Mplayer SVN r33216
Version where it works: Mplayer2 d44435a
bentix
 
Posts: 4
Joined: Mon Feb 20, 2012 9:39 pm

Re: Subtitle encoding

Postby bentix » Sat Mar 03, 2012 5:20 pm

I forgot that i tried a more recent build of mplayer (SVN 34780, found here: http://sourceforge.net/projects/smplaye ... z/download) and same problem, only got it to work with mplayer2.
bentix
 
Posts: 4
Joined: Mon Feb 20, 2012 9:39 pm


Return to General

Who is online

Users browsing this forum: No registered users and 28 guests