LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mplayer works in command but I can't get it in GUI (https://www.linuxquestions.org/questions/linux-newbie-8/mplayer-works-in-command-but-i-cant-get-it-in-gui-128367/)

jsandro7 12-23-2003 09:50 AM

mplayer works in command but I can't get it in GUI
 
Hi, well I did configure the GUI version of mplayer and have got the contens of the fonts and skin out and put it in /usr/local/share/mplayer/skins and fonts, but when I start the gmplayer it give me this error
MPlayer 1.0pre3-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1999 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
[cfg] read config file: /root/.mplayer/gui.conf
Reading config file /root/.mplayer/gui.conf: No such file or directory
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
SKIN dir 1: '/root/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'
[skin] file ( /usr/local/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).
You have new mail in /var/spool/mail/root

It's seems it can't find the file codecs.conf. I did download the codecs and place them where am I going wrong? The command line mplayer works perfectly fine. Please help

Thanks

rberry88 12-23-2003 10:07 AM

It's telling you that you do not have a /root/.mplayer/codecs.conf or a /usr/local/etc/mplayer/codecs.conf directory where it wants the codecs stored.

<----- This little area that has your username and info can be really helpful if you fill in your distro since you failed to give it in your post.

Each distro (major) had different ways to install/compile/build programs and not knowing which one you are using or how you are installing/compiling/building something it is really hard for anyone to help.

rberry88

trickykid 12-23-2003 10:19 AM

On a side note: Why are you attempting to run mplayer as root? Bad security practice.

How are you attempting to launch the gui portion of mplayer? Like, gmplayer or what? And your certain you enabled the gui during the ./configure portion when installing?

jsandro7 12-23-2003 10:27 AM

Yes the Gui portion has been enable, and I am using the the command like gmplayer to attampt to launch the player, however even after I created the directory codecs.conf in the /usr/local/etc/mplayer it still gives me this error message
[root@localhost Music online]# gmplayer
MPlayer 1.0pre3-3.2.2 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1998 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
[cfg] read config file: /root/.mplayer/gui.conf
Reading config file /root/.mplayer/gui.conf: No such file or directory
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: font: can't open file: /root/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
SKIN dir 1: '/root/.mplayer/Skin'
SKIN dir 2: '/usr/local/share/mplayer/Skin'
[skin] file ( /usr/local/share/mplayer/Skin/default/skin ) not found.
Skin not found (default).

so what should I do, try to reconfigure it with ./configure --gui and hope it works than? or is there an another way. I am running as root right now because I am configure my system. If you could help I would appriatte it.

Thanks

XavierP 12-23-2003 10:31 AM

I had the exact same problem and was unable to get around it. Unfortunately, soon after I had to remove Linux and add Win2K (for work - new work laptop arrives next month. woo yay, only took 3 months. But I digress).

I think several people have had this problem and I haven't found a solution. I do hope there is one out there. I wonder if it's worth posting a bug to MPlayer.

trickykid 12-23-2003 10:31 AM

./configure --enable-gui

And its sometimes best to install any additional codecs and skins, then configure mplayer.

trickykid 12-23-2003 10:33 AM

Quote:

Originally posted by XavierP
I think several people have had this problem and I haven't found a solution. I do hope there is one out there. I wonder if it's worth posting a bug to MPlayer.
I wouldn't bother, its not a bug and I'm sure the mplayer team will just redirect you to read the man pages and INSTALL/README files in a rude fashion. But I really don't blame them, their docs are very detailed and well written, with all the information you could ever need really... ;)

jsandro7 12-23-2003 10:35 AM

do I have to run make and make install again?

trickykid 12-23-2003 10:36 AM

Quote:

Originally posted by jsandro7
do I have to run make and make install again?
Of course, if not you just creating a new make file from ./configure which will never get used.. ;)

XavierP 12-23-2003 10:38 AM

Quote:

...its sometimes best to install any additional codecs and skins, then configure mplayer.
Doing it that way around never even occured to me. Once I get my laptop returned totally to me, I will have to give that a go. I'm currently planning to reinstall either Slackware or SuSE, leaning towards Slack, so I'll have to get used to some probs with the ./configure option.

JSandro7 - if you try Trickykid's codec first, mplayer second method, could you post back and let us know how you got on.

Thanks.

jsandro7 12-23-2003 10:47 AM

ok, thanks I ran the make and make install place the skin in the skin folder and the fonts in the fonts folder, but when I run make install it reports this.
[root@localhost MPlayer-1.0pre3]# make install
make[1]: Entering directory `/root/mplayer/MPlayer-1.0pre3/libdha'
mkdir -p /usr/local/lib
install -m 755 -s -p libdha.so.0.1 /usr/local/lib/libdha.so.0.1
rm -f /usr/local/lib/libdha.so
ln -sf libdha.so.0.1 /usr/local/lib/libdha.so.0
ldconfig
make[1]: Leaving directory `/root/mplayer/MPlayer-1.0pre3/libdha'
make[1]: Entering directory `/root/mplayer/MPlayer-1.0pre3/vidix'
make[2]: Entering directory `/root/mplayer/MPlayer-1.0pre3/vidix/drivers'
mkdir -p /usr/local/lib/mplayer/vidix
install -m 755 -s -p *.so /usr/local/lib/mplayer/vidix
make[2]: Leaving directory `/root/mplayer/MPlayer-1.0pre3/vidix/drivers'
make[1]: Leaving directory `/root/mplayer/MPlayer-1.0pre3/vidix'
if test ! -d /usr/local/bin ; then mkdir -p /usr/local/bin ; fi
install -m 755 -s mplayer /usr/local/bin/mplayer
ln -sf mplayer /usr/local/bin/gmplayer
if test ! -d /usr/local/man/man1 ; then mkdir -p /usr/local/man/man1; fi
for i in en; do \
if test "$i" = en ; then \
install -c -m 644 DOCS/man/en/mplayer.1 /usr/local/man/man1/mplayer.1 ; \
else \
mkdir -p /usr/local/man/$i/man1 ; \
install -c -m 644 DOCS/man/$i/mplayer.1 /usr/local/man/$i/man1/mplayer.1 ; \
fi ; \
done
install -m 755 -s mencoder /usr/local/bin/mencoder
for i in en; do \
if test "$i" = en ; then \
ln -sf mplayer.1 /usr/local/man/man1/mencoder.1 ; \
else \
ln -sf mplayer.1 /usr/local/man/$i/man1/mencoder.1 ; \
fi ; \
done
*** Download skin(s) at http://www.mplayerhq.hu/homepage/dload.html
*** for GUI, and extract to /usr/local/share/mplayer/Skin/
even thoe I have place the contest on a skin in the folder what does it mean, and the gmplayer is still reporting the same error, most likely do to this. Can you help, I know you are smart, I am just begging to learn the linux :)
Thanks

jsandro7 12-23-2003 11:22 AM

ok, I got it working execellent. Here is what the problem was, nobody told me about it, but my command sense finally kick in. In the Skin folder when you extract the default skin folder which you have downloaded you still have to rename the folder to default otherwise it will not work. All the trouble for as simple rename task. LOL. I feel kinda stupid now, but learning can be this way. Thanks Trickykid and XavierP if this help you great, if you still have questions I might now be able to answer them, I think I got the finally.

XavierP 12-23-2003 11:39 AM

I did try this originally - it took me a while to figure it out (LOL at me).

Unfortunately, as per my above post, I have no way of actually trying it out yet, so I'll have to hold off on my own installation experimentation.

Glad to hear you got it sorted - don't forget to click the button which shows you got the question answered.

Regards and Merry Christmas.


All times are GMT -5. The time now is 03:03 PM.