Mplayer error opening files
Getting an error every time I try to open a file with MPlayer.(wmv,avi,mpg is all I've tried)
Fatal Error! Error Opening/Initializing the selected video_out (-vo) device. I just yesterday installed Linux and have been looking for a good media player that handles wmv and mpg formats well. The default Totem Media Player seems to mess up alot. I installed the gstreamer codec plugins, but is using Xine better? I would use VLC but I couldnt get the damned thing to save my settings(volume control mostly). One thing I noticed is that if I uninstall something it still saves its settings. Like, the MPlayer worked when I first installed it but after reinstalling it kept the same settings. Also are the graphics always worse on Linux than for WinXP? EDIT: Im using the latest Ubuntu distro |
Welcome to LQ!
The problem with MPlayer might be framedrop being set to "hard" (I assume you are using MPlayer with GUI). I cannot be totally positive about this, but on certain configurations MPlayer crashes when you set framedrop mode to 'hard'. You traverse through framedrop setting (enable, hard, disable) by pressing the key 'd'. Once you set it the settings will be written to '~/.mplayer/config' file or any relevant file in the directory ~/.mplayer. This is the default behavior in the GUI mode. Open the ~/.mplayer/config (or the relevant) fie and remove or comment-out the line saying framedrop set to hard. Save the file and restart MPlayer. This should solve it. And MPlayer installations have configurations in ~/.mplayer/ directory. So if you don't want to keep the settings just delete the config files in there. You can save any of your setting in the config files. For example I have vf=screenshot in ~/.mplayer/config And graphics aren't worse on Linux. You just have to know how to use them (and vendors have to provide drivers, too) :) I'm using lot of multimedia apps on Linux including MPlayer without GUI(most of the time), VLC, Totem, Amarok (Audio manager), etc. |
Thanks for the reply. I found Framedrop in the gui.conf file but Im not completely sure how to handle it(showed v_framedrop = "0"). Ive tried completely deleting the whole line, commenting it out, and changing it to a different number. Nothing works correctly. Theres also a Config file but its blank besides saying "# Write your default config options here!". Ill post the GUI.conf and hopefully you'll see whats wrong.
~/.mplayer/gui.conf Code:
enable_audio_equ = "no" |
It seems like you fuond the correct config file. :) I didn't remember about a gui.conf file 'cus I'm not using one.
Try using "xv" as the vo driver. This may not be the correct setting because it depends on your hardware and software configuration. But normally the default vo is xv. If this is the case you might want to remove (or better to comment out) the other things related to dxr3. This is a quick and dirty way to find whether "xv" works for you. Open a terminal and cd into a dir with videos. Then give mplayer -vo xv your_vid.mpg where your_vid.mpg is the name of your video file. If this plays fine (and can run in fullscreen [key 'f'] too) probably you should use xv as your default vo in the config file. |
well I didnt know what the terminal was but I read up some on it and figured a few things out. For one, which solves the big problem of why it wasnt working, is that I was running Rythmbox 24/7 and apparently they wont run together since they use the same video port.
Code:
Could not find free Xvideo port - maybe another process is already using it. EDIT: When I dont run it in the terminal it doesnt have any audio and it goes faster than it should. When I run it in the terminal it works perfect. Code:
Linux:~$ mplayer 3.mpg |
Hope no one minds me double posting. I fixed it and thought itd be better to make another post instead of editing my old one.
well I had the list of all the -vo types to use and so I went through them all. GL seemed to work great and so I put vo=gl in the previously blank config file and it seems to have forced it to some settings and its working perfectly now. Even with running my music at the same time. |
Congratz! So you are getting hold of MPlayer. That's good to hear. As I said earlier the optimal solution would be configuration specific and in Supreme1012s case GL worked best. :)
|
For some reason, I keep getting the "permission denied" message when I go to edit the gui.conf.
I suppose I should point out that I too am getting the error listed, although for some reason my video players have no problem playing .mkv and .avi files other than these two in particular. To be honest, I'm not exactly sure why either. If that is an unrelated problem, I would like to know if there is a way to fix it. |
I have to say your problem is not clear by reading your post. :) Please try to give more info so that a LQ members could understand your problem correctly.
Quote:
Eg: mplayer your_file.avi If still you are getting the problem, you can try different -vo in command line as Supereme1012 did, to find a suitable vo for you. At any rate please give more info to understand your problem. I still can't figure what issue you are facing, from your post. :) |
I'm facing the same issue that the thread creator is facing (hence the reason I didn't make a new topic). I uninstalled gmplayer so I'm now working out of the terminal, but I still get errors when trying to play this one specific video. It isn't the filetype, because I have no problems playing .mkv videos other than the one in question.
The error message tells me "Error Opening/Initializing the selected video_out (-vo) device." so I know that I need to change the -vo device in order to make it work. However, I'm not allowed to make any changes for some reason. |
All times are GMT -5. The time now is 09:39 PM. |