SlackwareThis Forum is for the discussion of Slackware Linux.
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'm trying to configure my linux box to be able to do the regular stuff to show my friends that Linux is an alternative for windoze as long as you don't play a lot of computer games.
But I can't get Mplayer to work.
I've recompiled it 3 times because I forgot to install the codecs and to use the --enable-gui option.
I can get it to play it really crappy when I root, but when I'm a user it says:
"Error opening/initializing the selected video_out (-vo) device"
How do I set a a video out device? The card I'm using is an old Riva from Nvidia.
As far as I know I should be using the xvidix vo? But how do I set that?
As I start the program I also get a lot of errors that it can't read config files:
Code:
Linux RTC init error in itoctl (rtc_irqp_set 1024): Permission denied
Can't open input config file /home/ni0wn/.mplayer/input.conf: No such file or directory.
Can't open input config file /usr/local/mplayer/input.conf: No such file or directory
Then it says: No vidix driver name provided, probing available ones!
A lot of drivers with: "Operation not permitted" after each one.
It works if I'm root, but the playback really sucks. The video isn't being "smudged" or what you should call it like it's being in windows, so you won't experience the video as you should.
Anyway, how do I get rid of all those errors, and how to I get it playing under my username?
I've been searching solutions for about an hour or so, but I can't find anything
Everyone seems to just have extracted the package, ./configure, make, make install and then it works.
Anyone have any clues?
Someone should create a slackware package for mplayer or something, that would kick ass.
You can grab a mplayer package from linuxpackages.net.
I think your error "Error opening/initializing the selected video_out (-vo) device" is because you did not change the preferences for your video device. There are like 4 options, and one will work for you. root saves preferences in the .mplayer directory, you need to copy that directory into your users home directory and make it writable for your users to save preferences.
I got it working by copying the mplayer.conf default (along with all other files) to the root and my ni0wn home dir.
I ran a mplayer -vo when my ni0wn user was in su mode, and and then it worked.
But I'm still having problems using the gui, it can't find any skins, I've looked around but I can't find the file where I change the path to the skins directory.
This is what I get when running: "gmplayer LSD-Erik.avi"
Is there any way I can get rid of all these errors?
Code:
bash-2.05b# gmplayer LSD-erik.avi
MPlayer 0.93-3.3.4 (C) 2000-2003 MPlayer Team
CPU: Intel Pentium III Katmai/Pentium III Xeon Tanner (Family: 6, Stepping: 2)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 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: parse error at line 78
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 ).
Originally posted by ni0wn
But I'm still having problems using the gui, it can't find any skins, I've looked around but I can't find the file where I change the path to the skins directory.
[skin] file ( /usr/local/share/mplayer/Skin/default/skin ) not found.
instead of changing the skin directory, why don't you just put a skin in the
/usr/local/share/mplayer/Skin/default/ directory?
you need to make a default skin and then change it later.
just rename the blue directory to default.
I've been tampering with this box for 6-10 hours today. (I've been cleaning my house, had breakfast and dinner you know)
I guess that's why my head is so fooked up atm.
I'll try that tomorrow, now I have to install a GFX card into his familys computer. And since they aren't coming back untill friday, I think I'll install some kickass games and play a lot as well >: )
Thanks for the help! I'll post a reply when I've tried the tip
GAH! Now get the GUI without any problems, but I still have this video out problem.
What do I have to do to get rid of the "Operation not permitted" error?
It should work as a regular user, I shouldn't have to be in su mode to view a video...
Code:
Playing /home/christer/downloads/LSD-erik.avi
AVI file format detected.
Forced NON-INTERLEAVED AVI file format.
VIDEO: [DIV3] 320x240 24bpp 25.00 fps 715.0 kbps (87.3 kbyte/s)
Clip info:
Software: VirtualDubMod 1.4.13
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
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)
==========================================================================
No vidix driver name provided, probing available ones!
[rage128] Error occured during pci scan: Operation not permitted
[pm3] Error occured during pci scan: Operation not permitted
[mga] Error occured during pci scan: Operation not permitted
[radeon] Error occured during pci scan: Operation not permitted
[mach64] Error occured during pci scan: Operation not permitted
[mga] Error occured during pci scan: Operation not permitted
[cyberblade] Error occured during pci scan: Operation not permitted
vosub_vidix: Couldn't find working VIDIX driver
Error opening/initializing the selected video_out (-vo) device.
I tried this instead: gmplayer movie.avi -vo xv
And it plays! YAY!
Now there's only one problem, how do I configure my mplayer so I can open files within the GUI? So I won't have to open up a terminal every time I want to watch something...
Originally posted by ni0wn
Now there's only one problem, how do I configure my mplayer so I can open files within the GUI? So I won't have to open up a terminal every time I want to watch something...
Which window manager / desktop environment are you using?
If you make the config files writeable, you can change the vo device in preferences->video so you don't have to pass -vo xv all the time.
those appear to be due to the fact that mplayer doesn't know what the heck card you have so it tries to poke around the pci bus to find out (which works in root, but, as one might expect, regular users poking around the pci bus is usually a bad sign).
Look back at the MPlayer documentation, specifically the parts about video cards.
You saw how you had to recompile because you forgot --enable-gui? My guess is if you look in documentation you will see that you are also gonna want to compile with something about your video card (for example, something like --enable-tdfxfb or something like that).
Ah, thanks for the tip about looking for compile options, I'll check that one out.
I managed to get it working by putting config file in the home dir
How do I uninstall mplayer? I've searched for some info, but haven't found anything, maybe I wasn't searching that good?
I've compiled and installed it 3 times, plus that I've installed a package as well...
In windows, you just uninstall, reboot and re-install, but it doesn't work that way in Linux...
Do I have to check the install log an delete everytning manually?
If you still have the old build directory around, go into it and do a make uninstall. Otherwise just untar the source and do the same.
Then check into using checkinstall - it may already be on your system.
Next time you compile something, replace the "make install" step w/ checkinstall. This make a slack pkg out of it and you can use pkgtool to remove/upgrade it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.