[Mplayer-cvslog] CVS: main Makefile, 1.286, 1.287 configure, 1.861, 1.862 subreader.c, 1.130, 1.131 subreader.h, 1.31, 1.32

Jindrich Makovicka makovick at kmlinux.fjfi.cvut.cz
Tue May 11 20:38:50 CEST 2004


Diego Biurrun wrote:
> Jindrich Makovicka writes:
> 
>>Diego Biurrun wrote:
>>
>>>Jindrich Makovicka CVS writes:
>>>
>>>>ENCA support (http://trific.ath.cx/software/enca/)
>>>
>>>Could you explain what this is good for (automatic encoding detection
>>>IIUC).
>>
>>Yes, it is able to detect the encoding, you just have to specify the 
>>language used. I have occasionally seen folks using enca commandline 
>>utility with mplayer, so I thought it would be useful to add optional 
>>support for their API.
> 
> 
> OK, but what does it do?

It guesses the subtitle charset :) Eg. for Czech it can automagically 
select win1250, iso8859-2 or utf8. I would commit the manpage change, 
but the docs CVS appears to be locked.

Index: mplayer.1
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/man/en/mplayer.1,v
retrieving revision 1.587
diff -u -b -B -r1.587 mplayer.1
--- mplayer.1	5 May 2004 16:30:32 -0000	1.587
+++ mplayer.1	11 May 2004 18:35:18 -0000
@@ -1364,6 +1364,26 @@
  .PD 1
  .
  .TP
+.B \-subcp enca:<language>:<fallback codepage> (ENCA only)
+If MPlayer has been compiled with ENCA charset autodetection library,
+you can specify your language using two letter language code. If
+unsure, enter anything and watch mplayer -v output for available
+languages. Fallback codepage specifies the codepage to use, when the
+autodetection fails.
+
+.I EXAMPLE:
+.PD 0
+.RSs
+.IPs "\-subcp enca:cs:latin2"
+guess the encoding, assuming the subtitles are Czech, fall back for
+latin 2, if the detection fails
+.br
+.IPs "\-subcp enca:pl:cp1250"
+guess the encoding for Polish, fall back for cp1250
+.RE
+.PD 1
+.
+.TP
  .B \-subdelay <sec>
  Delays subtitles by <sec> seconds.
  Can be negative.


-- 
Jindrich Makovicka




More information about the MPlayer-cvslog mailing list