LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 06-12-2007, 11:56 AM   #1
Supreme1012
LQ Newbie
 
Registered: Jun 2007
Location: Florida, USA
Distribution: Ubuntu 7.04, Kubuntu 7.04, Kubuntu 7.10
Posts: 22

Rep: Reputation: 15
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

Last edited by Supreme1012; 06-12-2007 at 11:58 AM.
 
Old 06-12-2007, 12:48 PM   #2
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
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.
 
Old 06-12-2007, 03:49 PM   #3
Supreme1012
LQ Newbie
 
Registered: Jun 2007
Location: Florida, USA
Distribution: Ubuntu 7.04, Kubuntu 7.04, Kubuntu 7.10
Posts: 22

Original Poster
Rep: Reputation: 15
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"
vo_driver = "dxr3"
vo_panscan = "0.000000"
vo_doublebuffering = "yes"
vo_direct_render = "no"
vo_dxr3_device = "/dev/em8300"
v_framedrop = "0"
v_flip = "-1"
v_ni = "no"
v_idx = "-1"
v_vfm = "no"
a_afm = "no"
vf_pp = "no"
vf_autoq = "0"
vf_lavc = "yes"
ao_driver = "mpegpes"
ao_volnorm = "no"
softvol = "no"
ao_surround = "no"
ao_extra_stereo = "no"
ao_extra_stereo_coefficient = "1.000000"
dvd_device = "/dev/dvd"
cdrom_device = "/dev/cdrom"
osd_level = "1"
sub_auto_load = "yes"
sub_unicode = "no"
sub_pos = "100"
sub_overlap = "no"
sub_cp = "unicode"
font_factor = "0.750000"
font_text_scale = "5.000000"
font_osd_scale = "6.000000"
font_blur = "2.000000"
font_outline = "2.000000"
font_autoscale = "3"
cache = "no"
cache_size = "2048"
playbar = "no"
load_fullscreen = "no"
show_videowin = "yes"
stopxscreensaver = "no"
autosync = "no"
autosync_size = "0"
gui_skin = "default"
gui_save_pos = "yes"
gui_main_pos_x = "643"
gui_main_pos_y = "652"
gui_video_out_pos_x = "326"
gui_video_out_pos_y = "241"
equ_band_00 = "0.000000"
equ_band_01 = "0.000000"
equ_band_02 = "0.000000"
equ_band_03 = "0.000000"
equ_band_04 = "0.000000"
equ_band_05 = "0.000000"
equ_band_06 = "0.000000"
equ_band_07 = "0.000000"
equ_band_08 = "0.000000"
equ_band_09 = "0.000000"
equ_band_10 = "0.000000"
equ_band_11 = "0.000000"
equ_band_12 = "0.000000"
equ_band_13 = "0.000000"
equ_band_14 = "0.000000"
equ_band_15 = "0.000000"
equ_band_16 = "0.000000"
equ_band_17 = "0.000000"
equ_band_18 = "0.000000"
equ_band_19 = "0.000000"
equ_band_20 = "0.000000"
equ_band_21 = "0.000000"
equ_band_22 = "0.000000"
equ_band_23 = "0.000000"
equ_band_24 = "0.000000"
equ_band_25 = "0.000000"
equ_band_26 = "0.000000"
equ_band_27 = "0.000000"
equ_band_28 = "0.000000"
equ_band_29 = "0.000000"
equ_band_30 = "0.000000"
equ_band_31 = "0.000000"
equ_band_32 = "0.000000"
equ_band_33 = "0.000000"
equ_band_34 = "0.000000"
equ_band_35 = "0.000000"
equ_band_36 = "0.000000"
equ_band_37 = "0.000000"
equ_band_38 = "0.000000"
equ_band_39 = "0.000000"
equ_band_40 = "0.000000"
equ_band_41 = "0.000000"
equ_band_42 = "0.000000"
equ_band_43 = "0.000000"
equ_band_44 = "0.000000"
equ_band_45 = "0.000000"
equ_band_46 = "0.000000"
equ_band_47 = "0.000000"
equ_band_48 = "0.000000"
equ_band_49 = "0.000000"
equ_band_50 = "0.000000"
equ_band_51 = "0.000000"
equ_band_52 = "0.000000"
equ_band_53 = "0.000000"
equ_band_54 = "0.000000"
equ_band_55 = "0.000000"
equ_band_56 = "0.000000"
equ_band_57 = "0.000000"
equ_band_58 = "0.000000"
equ_band_59 = "0.000000"
EDIT: Also I figured out that I could use Synaptic package manager to completely delete leftover config files from uninstalled packages

Last edited by Supreme1012; 06-12-2007 at 03:51 PM.
 
Old 06-13-2007, 12:48 AM   #4
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
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.
 
Old 06-13-2007, 03:30 PM   #5
Supreme1012
LQ Newbie
 
Registered: Jun 2007
Location: Florida, USA
Distribution: Ubuntu 7.04, Kubuntu 7.04, Kubuntu 7.10
Posts: 22

Original Poster
Rep: Reputation: 15
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.
Close all video applications, and try again. If that does not help,
see 'mplayer -vo help' for other (non-xv) video out drivers.
So I got that figured out. But now Id like to know how to have these set as different ports so that I can run them both at the same time if possible. And thanks again for your help SkyEye.

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
MPlayer 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.93GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 3.mpg.
MPEG-PS file format detected.
VIDEO:  MPEG1  320x240  (aspect 1)  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 320x240 => 320x240 Planar YV12 
Cannot sync MAD frame:  0.002 ct:  0.051 716/716  2%  0%  1.6% 1 0 
Cannot sync MAD frame
Cannot sync MAD frame:  0.004 ct:  0.051 717/717  2%  0%  1.6% 1 0 
Cannot sync MAD frame:  0.007 ct:  0.051 718/718  2%  0%  1.6% 1 0 
Cannot sync MAD frame:  0.010 ct:  0.051 719/719  2%  0%  1.6% 1 0 
Cannot sync MAD frame:  0.012 ct:  0.051 720/720  2%  0%  1.6% 1 0 
Cannot sync MAD frame: -0.006 ct:  0.050 721/721  2%  0%  1.6% 1 0 
Cannot sync MAD frame: -0.004 ct:  0.049 722/722  2%  0%  1.6% 1 0 
Cannot sync MAD frame: -0.001 ct:  0.048 723/723  2%  0%  1.6% 1 0 
Cannot sync MAD frame: -0.011 ct:  0.046 724/724  2%  0%  1.6% 1 0 
Cannot sync MAD frame: -0.051 ct:  0.042 725/725  2%  0%  1.6% 1 0 
A:  28.9 V:  28.9 A-V: -0.051 ct:  0.038 725/725  2%  0%  1.6% 1 0 

Exiting... (End of file)

Last edited by Supreme1012; 06-13-2007 at 04:00 PM.
 
Old 06-13-2007, 04:45 PM   #6
Supreme1012
LQ Newbie
 
Registered: Jun 2007
Location: Florida, USA
Distribution: Ubuntu 7.04, Kubuntu 7.04, Kubuntu 7.10
Posts: 22

Original Poster
Rep: Reputation: 15
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.
 
Old 06-18-2007, 02:54 PM   #7
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
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.
 
Old 08-02-2007, 11:44 PM   #8
Moonrise
LQ Newbie
 
Registered: Aug 2007
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
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.
 
Old 08-03-2007, 01:19 AM   #9
SkyEye
Member
 
Registered: Sep 2005
Location: Sri Lanka
Distribution: Fedora (workstations), CentOS (servers), Arch, Mint, Ubuntu, and a few more.
Posts: 441

Rep: Reputation: 40
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:
Originally Posted by Moonrise
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.
If you are getting a permission denied message, most probably it's not related to MPlayer. I guess it has to do with file permissions. And you need to edit ~/.mplayer/gui.conf to set things for GUI (gmplayer) mode. Still you would be able to use it without the GUI
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.
 
Old 08-03-2007, 02:13 AM   #10
Moonrise
LQ Newbie
 
Registered: Aug 2007
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply

Tags
error, mplayer, port, xvideo



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer error opening/initializing the selected video_out (-vo) device caulfiek Slackware 9 04-06-2010 05:15 AM
MPlayer Error Message - Error Opening/Initializing Video Out Device Harpo Linux - Newbie 12 12-29-2009 11:26 PM
error opening mplayer harys Linux - Newbie 1 04-05-2006 05:04 AM
i/o error while opening vcd files hari78 Linux - Newbie 3 12-28-2005 06:50 AM
mplayer error opening/initializing what? GT_Onizuka Linux - Software 5 10-20-2003 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration