Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I installed mplayer and it works perfect. But my problem is subtitles. I do have subtitle files but -sub <file name> stuff just doesnt show subtitles. What would be the problem. What should I try?
Hi perdesiz,
try looking at the output (running the program in terminal).
There might be a problem with fonts (or another error for that matter).
If you cant make sense of it, post it here, I will be glad to help.
I solved the problem on redhat linux 8.0 machine by adjusting fonts, but mdk 9.1 system I do have at my home still doesnt work it out.Here is the output
I will go on trying,but if you find the fault beforre me please send me feedback,thanx again
[root@localhost sukru]# mplayer -fs -sub /root/.mplayer/subfont.ttf /mnt/cdrom2/Butterfly\ Effect.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MPlayer 0.90rc1-3.2.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)
CPU: Intel Pentium 4 Xeon Foster (Family: 8, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading config file /usr/local/etc/mplayer/mplayer.confReading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 123 video codecs
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz)
Playing /mnt/cdrom2/Butterfly Effect.avi
Detected AVI file format!
VIDEO: [XVID] 576x320 12bpp 25.00 fps 884.4 kbps (108.0 kbyte/s)
Clip info:
Software: Nandub v1.0rc2
SUB: Detected subtitle file format: subviewer 2.0
SUB: Read 0 subtitles.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Disabling DPMS
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Start playing...
This file was encoded with XviD build 9
VDec: vo config request - 576 x 320 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.80:1 - prescaling to correct movie aspect.
VO: [xv] 576x320 => 576x320 Planar YV12 [fs]
Hi perdesiz,
from the output you posted: font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
mplayer does not seem to find your fonts. (you can test this by pressing "o" in mplayer while watching a video. This should display information on the time the video has been running. If it doesnt, there is no font installed.)
Have you tried downloading and installing a font for your subtitles? If so, mplayer seems to have problems recognizing / finding it.
From what I can tell, this should solve your problem. Post back if there is still anything not working.
Hm, yes, I didnt even notice that.
XavierP is of course right. Not only is this dangerous and the typical yada-yada, but it may also be part of your problem. Try running mplayer as a normal user (as you always should). solving the problem for root may not solve it for everyday use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.