View previous topic :: View next topic |
Author |
Message |
Bluey_the_dog n00b
Joined: 13 Oct 2002 Posts: 54 Location: Perth, Australia
|
Posted: Mon Dec 07, 2009 1:14 pm Post subject: [SOLVED]mplayer won't go full screen |
|
|
Hi all,
Recently did a big emerge world on my media player. A lot of stuff was rebuilt and subsequently the front end, freevo, is now stuffed. Whilst trying to work out what's wrong, I ran mplayer, which my freevoinstall uses as the media player, from the command line and found something interesting.
The command line is meant to use xv for the graphics and go full screen:
Code: | mplayer -vo xv -fs mediaFile.avi |
Instead of firing up and going full screen, I get a wireframe of a window, I think I'm using Openbox or Fluxbox, which follows the mouse around as I move the mouse. When I left click the mouse, another wireframe window appears, bigger than the first, which I then position in the top left hand corner and left click again. This time I get a fullscreen output of the video file.
Does anyone know what's wrong here, as to why I'm getting this mouse behaviour instead of mplayer just going fullscreen, without any intervention and displaying my media?
Any thoughts, greatly appreciated,
Andrew
Last edited by Bluey_the_dog on Wed Dec 09, 2009 1:17 am; edited 1 time in total |
|
Back to top |
|
|
causality Apprentice
Joined: 03 Jun 2006 Posts: 236
|
Posted: Mon Dec 07, 2009 7:08 pm Post subject: |
|
|
The option "-vo xv" is using the XVideo extension of your X server as its video driver. There are multiple video drivers available to Mplayer (see its manpage under the section titled "VIDEO OUTPUT DRIVERS"). The ones that you can use depend on what has been set up for your system. Not all of them will work for a particular computer.
You probably have a working OpenGL implementation. You definitely have this if you are using an nVidia or ATI graphics card with the binary drivers. You probably have this with other cards if the driver supports 3D acceleration. Even if you have none of those, you should have at least a software implementation of OpenGL, in which case you won't benefit from hardware acceleration but it should still work.
If you try changing the "-vo xv" option to "-vo gl" or "-vo gl2" to use the OpenGL drivers, does it work for you then? If nothing else you can also try "-vo x11"; the man page describes this as one that "works whenever X11 is present." That "-vo x11" driver never benefits from hardware acceleration so it's inferior to the others, but it should still be able to play video, albeit with higher CPU utilization.
Also, if you omit the "-fs" option for fullscreen, does mplayer successfully play the video in a window? |
|
Back to top |
|
|
taipan67 l33t
Joined: 04 Dec 2004 Posts: 866 Location: England (i'm told...)
|
Posted: Tue Dec 08, 2009 4:07 pm Post subject: |
|
|
causality wrote: | ...There are multiple video drivers available to Mplayer... |
The simplest way to determine which drivers you have available from your build is:-
...But the problem sounds more 'window-manager' related to me... Bluey_the_dog wrote: | ...I think I'm using Openbox or Fluxbox... |
Either of those can be configured to manipulate different windows in different ways, with this behaviour matched to the appropriate window via any of it's attributes. The reason i mention this is that MPlayer sends the window-manager an "undecorate" message when it gets switched to full-screen, and it occured to me that you might get a conflict if the window-manager was expecting to undecorate any window running that app. In Fluxbox this is very easy to do by right-clicking a window's title-bar, changing some values and "remembering" those values for all future instances - the settings are then stored in the ~/.fluxbox/apps file (which can also be edited manually).
Openbox does similar things through it's ~/.config/openbox/rc.xml file, in the "applications" section near the bottom...
...So which window-manager do you have, and is it set up to "undecorate" windows with an 'MPlayer' attribute..?
If that's all totally useless, the other thing that usually buggers up video-playback for me is 'compositing' - do you have 'xcompmgr' or anything similar running? _________________ "Anyone who goes to see a psychiatrist should have their head examined!" |
|
Back to top |
|
|
Bluey_the_dog n00b
Joined: 13 Oct 2002 Posts: 54 Location: Perth, Australia
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|