[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
Page 1 of 1

Subtitle encoding

PostPosted: Mon Feb 20, 2012 9:57 pm
by bentix
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).

Re: Subtitle encoding

PostPosted: Tue Feb 28, 2012 7:23 pm
by reyalpms
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.

Re: Subtitle encoding

PostPosted: Tue Feb 28, 2012 10:41 pm
by rvm
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.

Re: Subtitle encoding

PostPosted: Thu Mar 01, 2012 4:47 am
by reyalpms

Re: Subtitle encoding

PostPosted: Thu Mar 01, 2012 5:15 am
by reyalpms

Re: Subtitle encoding

PostPosted: Sat Mar 03, 2012 4:51 pm
by bentix
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

Re: Subtitle encoding

PostPosted: Sat Mar 03, 2012 5:20 pm
by bentix
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.