Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Easy workaround for mplayer bluescreen
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
odegard
Guru
Guru


Joined: 08 Mar 2003
Posts: 324
Location: Trondheim, NO

PostPosted: Mon Feb 13, 2006 3:57 pm    Post subject: Easy workaround for mplayer bluescreen Reply with quote

For some reason, mplayer will turn all blue while the sound is running as normal after a while. There is a problem with xv, and one solution is to use -vo gl, -vo gl2 etc but for me all these are way to slow.

I read this somewhere, I've forgot where, but what you do is:

    start playing the movie (blue)
    start playing another instance of the movie (not blue!)
    stop the first instance of the movie


et voila!

Now I don't have to restart X :-D
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 341

PostPosted: Mon Feb 13, 2006 7:52 pm    Post subject: Reply with quote

if you're using XV that doesn't sound like something that would work, because when you start the first movie, it uses XV (which is what you want), but when you start the second movie the video overlay is in use, and thus it will fail to connect to the vx-port.
But then again, I've never had a blue screen with mplayer, and if this is a bug with XV it might work... :roll:
_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
Merlin-TC
l33t
l33t


Joined: 16 May 2003
Posts: 603
Location: Germany

PostPosted: Tue Feb 14, 2006 11:28 am    Post subject: Reply with quote

As Da Fox said this doesn't really work.
Since the first player is blocking XV and then when you start a second instance it won't use XV but as fallback X11 which is not hardware accelerated.
Back to top
View user's profile Send private message
FormerSlacker
Guru
Guru


Joined: 11 Mar 2003
Posts: 340
Location: Toronto, ON. Canada

PostPosted: Tue Feb 14, 2006 2:34 pm    Post subject: Reply with quote

Well I find that using the Nvidia control panel, reset to defaults button in XVideo section usually solves any XV problems.

I don't know what it is, but every couple of days my XV refuses to work, but reseting it always does the trick. Better then restarting the entire xserver 8)
Back to top
View user's profile Send private message
odegard
Guru
Guru


Joined: 08 Mar 2003
Posts: 324
Location: Trondheim, NO

PostPosted: Tue Feb 14, 2006 9:43 pm    Post subject: Reply with quote

Merlin-TC wrote:
As Da Fox said this doesn't really work.


Ehh... what? I'm a bit astounded... of course it works, if it didn't, I wouldn't have posted it!

Your setup might differ from mine. If your mplayer jumps to x11 when xv is not available, just specify xv. Yeah, you don't feel particularly intelligent when you do this, but it's much better than restarting X.

You are correct, the two movies will not play at the same time, the second will wait until the first one is finished (or in this case, when you press 'q'). This is a bug in XV and this is just a simple workaround.

I will look into the Nvidia control panel, thanks for the tip. This should be a lot more practical :)
Back to top
View user's profile Send private message
Da Fox
Guru
Guru


Joined: 06 Jul 2005
Posts: 341

PostPosted: Tue Feb 14, 2006 11:11 pm    Post subject: Reply with quote

the second instance of mplayer will not wait for some other application (even mplayer itself) to release the XV port, it will simply tell you that it 'Could not find free Xvideo port - maybe another process is already using it.', and exit.

actual output when trying to run mplayer -vo xv twice:
Code:
Xv: could not grab port 67
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.
Error opening/initializing the selected video_out (-vo) device.

_________________
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
- Rei Ayanami

JGBE, a Java based GameBoy Emulator
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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