PDA

View Full Version : [all variants] Mplayer XV Output Produces a Blue Window



purgatori
September 17th, 2009, 02:21 AM
Observe:

http://omploader.org/vMmRiNg/screenshot.png

Output of xvinfo =


X-Video Extension version 2.2
screen #0
Adaptor #0: "Intel(R) Video Overlay"
number of ports: 1
port base: 72
operations supported: PutImage
supported visuals:
depth 24, visualID 0x21
number of attributes: 6
"XV_COLORKEY" (range 0 to 16777215)
client settable attribute
client gettable attribute (current value is 66046)
"XV_BRIGHTNESS" (range -128 to 127)
client settable attribute
client gettable attribute (current value is -19)
"XV_CONTRAST" (range 0 to 255)
client settable attribute
client gettable attribute (current value is 75)
"XV_SATURATION" (range 0 to 1023)
client settable attribute
client gettable attribute (current value is 146)
"XV_DOUBLE_BUFFER" (range 0 to 1)
client settable attribute
client gettable attribute (current value is 1)
"XV_PIPE" (range -1 to 1)
client settable attribute
client gettable attribute (current value is -1)
maximum XvImage size: 1024 x 1088
Number of image formats: 5
id: 0x32595559 (YUY2)
guid: 59555932-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x32315659 (YV12)
guid: 59563132-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x30323449 (I420)
guid: 49343230-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)
id: 0x59565955 (UYVY)
guid: 55595659-0000-0010-8000-00aa00389b71
bits per pixel: 16
number of planes: 1
type: YUV (packed)
id: 0x434d5658 (XVMC)
guid: 58564d43-0000-0010-8000-00aa00389b71
bits per pixel: 12
number of planes: 3
type: YUV (planar)

Xorg.conf:


# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Device"
Identifier "Configured Video Device"
Driver "intel"
Option "AccelMethod" "EXA"
Option "MigrationHeuristic" "greedy"




EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
Endsection

Section "ServerFlags"
Option "DontZap" "false"
EndSection



... any ideas?

Huzudra
March 17th, 2012, 01:16 PM
All of the sudden I have this too. I'll be playing a file and part way into it this happens. Reboot, plays fine for a time then blue again. Different files in the same series do the same thing and even start blue until I reboot. System seems to lag and hang when this happens also but CPU load shows normal.

If I use intel textured video, all is well and normal except for image tearing. No hanging system, no blue screen. Files are avi xvid, and are fairly old. As far as I know, they play fine on a windows PC. I'll try some other files encoded differently and see what happens. Maybe it's just these old xvid that mplayer doesn't like.

andrew.46
March 18th, 2012, 02:18 AM
Try a different -vo perhaps? You can see what is available as follows:



andrew@skamandros~$ mplayer -vo help
MPlayer SVN-r34818-4.6.2 (C) 2000-2012 MPlayer Team
Available video output drivers:
vdpau VDPAU with X11
xv X11/Xv
gl_nosw OpenGL no software rendering
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
gl OpenGL
gl2 X11 (OpenGL) - multiple textures version
dga DGA ( Direct Graphic Access V2.0 )
fbdev Framebuffer Device
fbdev2 Framebuffer Device
svga SVGAlib
matrixview MatrixView (OpenGL)
aa AAlib
caca libcaca
v4l2 V4L2 MPEG Video Decoder Output
xvidix X11 (VIDIX)
cvidix console VIDIX
null Null video output
mpegpes MPEG-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
png PNG file
jpeg JPEG file
gif89a animated GIF output
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
mng MNG file

andrew@skamandros~$


I would suggest that -vo x11 would be a good start.

SeijiSensei
March 18th, 2012, 03:32 PM
Try a different -vo perhaps?

I would suggest that -vo x11 would be a good start.

"-vo gl" can sometimes work well with modern video cards and drivers. It even works on my old Dell notebook with Intel 845 graphics (just tested with files using a couple of different codecs including H.264 which the OP's example is using as well).

Huzudra
April 4th, 2012, 03:07 AM
Any of the other outputs give me lots of video tearing. It seems to happen at random too. I can watch 10 episodes of a show in a row, or get half way through one. I restart and its fine again for whatever length of time.

Huzudra
April 4th, 2012, 04:08 AM
Great example.

Watched 3 eps of Reboot in a row, no issue. 4th ep blue window, restart, finish 4th, start 5th, 3/4 in blue window.

Mplayer also gets sluggish to close or open when this happens.

Huzudra
April 4th, 2012, 04:29 AM
Finished that one, started a new one after a fresh restart, blue screen about 10 minutes into a 20 min episode. Once a blue screen, even other files don't show anything but a blue screen.

Either restart constantly or have horrible video tearing. I love Xubuntu and how snappy it runs on the laptop, but this is getting more frequent and pretty old real fast. Do I need to just use XP for watching videos?

andrew.46
April 4th, 2012, 04:32 AM
That is quite an old copy of MPLayer btw, perhaps hunt up a guide that will allow compilation of a more recent version or download from a PPA?

Huzudra
April 4th, 2012, 04:43 AM
Try a different -vo perhaps? You can see what is available as follows:



andrew@skamandros~$ mplayer -vo help
MPlayer SVN-r34818-4.6.2 (C) 2000-2012 MPlayer Team
Available video output drivers:
vdpau VDPAU with X11
xv X11/Xv
gl_nosw OpenGL no software rendering
x11 X11 ( XImage/Shm )
xover General X11 driver for overlay capable video output drivers
sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
gl OpenGL
gl2 X11 (OpenGL) - multiple textures version
dga DGA ( Direct Graphic Access V2.0 )
fbdev Framebuffer Device
fbdev2 Framebuffer Device
svga SVGAlib
matrixview MatrixView (OpenGL)
aa AAlib
caca libcaca
v4l2 V4L2 MPEG Video Decoder Output
xvidix X11 (VIDIX)
cvidix console VIDIX
null Null video output
mpegpes MPEG-PES to DVB card
yuv4mpeg yuv4mpeg output for mjpegtools
png PNG file
jpeg JPEG file
gif89a animated GIF output
tga Targa output
pnm PPM/PGM/PGMYUV file
md5sum md5sum of each frame
mng MNG file

andrew@skamandros~$


I would suggest that -vo x11 would be a good start.


"-vo gl" can sometimes work well with modern video cards and drivers. It even works on my old Dell notebook with Intel 845 graphics (just tested with files using a couple of different codecs including H.264 which the OP's example is using as well).
x11 is so slow I loose A/V sync with full screen. And it tears.
glnosw is fast enough, but tears a lot and badly

All the others are too slow for full screen. intel video overlay is the only that's fast and doesn't tear.

Huzudra
April 18th, 2012, 03:08 AM
It was fine for 7 episodes of a series, now it's just done it again. Blue screen. 7 episodes without problems, many of them back to back with a nice hot laptop on for hours, or from the cold of sitting over night in a 60 degree room. I seriously doubt it's a hardware issue. I did notice last night that my CPU use was at 100, none of the processes even added together were close to 100, and the player was lagging. I had to reboot to get cpu to normal use. I don't know if that's related.

Huzudra
April 18th, 2012, 03:09 AM
That is quite an old copy of MPLayer btw, perhaps hunt up a guide that will allow compilation of a more recent version or download from a PPA?

I'm running whatever is latest from software center.

andrew.46
April 18th, 2012, 09:42 PM
I'm running whatever is latest from software center.

Latest is here:

Howto: Build the svn MPlayer under the latest release version of Ubuntu
*********************************/mplayer.html

Huzudra
May 26th, 2012, 06:54 PM
I've disabled compositing (fancy effects like shadows and transparency) and that's had no effect. Output still goes blue at what seems like random. I have found that it will come back if I simply suspend and resume it. It may be a problem with X? Suspending the computer would shut down the display and shut down X, then restart it, no? Could it be something running in the background I'm not aware of?

Possibly a hardware problem that suspending fixes since the whole display turns off...but why only with video overlay?

And finally, yes any other video output I've tried is super laggy or has awful tearing.

And lastly, I haven't changed my mplayer version just yet. I'm still running whatever is current in Ubuntu Software center. I haven't tried mplayer on any other PC's here just yet to isolate this is a problem with only this laptop, but I suspect it is since google is scarce with issues like mine.

I'm coming to the realization that since very few people have this problem and I'm using a laptop that's nearing 8 years old so I'm probably just going to have to live with it.


Would upgrading to 12.04 Xubuntu help perhaps? I have a 1.7Ghz Pentium M and 2GB RAM. 11.1 runs well actually, much snappier without any effects enabled. I should have done that ages ago.

Huzudra
May 29th, 2012, 02:59 AM
So, I ran some updates and one was a newer/better video driver. Problem free now since!