[MPlayer-users] Messed up charset in a file identification
Ivan Doležal
ivan.dolezal at vsb.cz
Tue Jul 15 11:21:38 CEST 2003
Hello,
I want to get metadata (name, author, copyright) of a WMA stream.
Unfortunately, when the metadata are displayed, a Czech diacritics is
completely messed up. Some Czech characters are replaced with other,
nosense characters from Latin alphabet (Ř into Y for example) so there
is no way to hack that with some tr/// . A famous Czech testing sentence
that is a Clip name: "PŘÍLIŠ ŽLUŤOUČKÝ KŮŇ ÚPĚL ĎÁBELSKÉ ÓDY" Author:
"příliš žluťoučký kůň úpěl ďábelské ódy" has been destroyed into...
$ mplayer -nocache -identify
mms://server1.streaming.cesnet.cz/others/ols/czech.wma | hexdump -c
[...snip...]
0000660 n a m e : P X 315 L I ` } L U
0000670 d O U \f K 335 K n G 332 P 032 L
0000680 016 301 B E L S K 311 323 D Y \n a u
0000690 t h o r : p Y 355 l i a ~ l u
00006a0 e o u \r k 375 k o H 372 p 033 l
00006b0 017 341 b e l s k 351 363 d y \n c o
00006c0 p y r i g h t : \n c o m m e
... no matter how LANG/LC_ALL was set...
$ export LC_ALL=en_US.ISO-8859-1 ; export LANG=en_US.ISO-8859-1
$ export LC_ALL=en_US.ISO-8859-2 ; export LANG=en_US.ISO-8859-2
$ export LC_ALL=en_US.UTF-8 ; export LANG=en_US.UTF-8
When I try to play the stream in the Windows Media Player, the
characters are displayed correctly.
What am I doing wrong? Even if you don't know the answer, please try to
check your installation and let me know... the stream address above is
good point to test.
Thank you in advance for any kind of response!
Ivan Dolezal
PS: all tests were done on out-of-the-box Red Hat 9 and prepackaged mplayer:
$ mplayer --version
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MPlayer 0.90-RPM-3.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Intel Pentium MMX P55C (new) (Family: 5, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/dol72/.mplayer/config
$ uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 16:42:56 EST 2003
i586 i586 i386 GNU/Linux
$ ls -l /lib/libc[.-]*
-rwxr-xr-x 1 root root 1465640 Mar 14 00:30 /lib/libc-2.3.2.so
lrwxrwxrwx 1 root root 13 Jun 13 16:46 /lib/libc.so.6
-> libc-2.3.2.so
$ /sbin/lsmod
[...snip...]
Module Size Used by Not tainted
nls_iso8859-2 4060 0 (unused)
nls_iso8859-1 3484 1 (autoclean)
nls_cp1250 4572 1 (autoclean)
More information about the MPlayer-users
mailing list