On Fri, Dec 24, 2010 at 10:46:36PM -0500, Ted Unangst wrote: > This is a laptop with intel video, other systems may be different, but > if you're having any trouble with mplayer video, the gl driver is > worth trying.
I used to notice a lot of tearing on Intel X3100 chipsets (GM965). I don't see any issues anymore, but maybe someone will find this useful anyway. Another tip is to check the output of xvinfo. For example, on a ThinkPad X61s, xvinfo gives the following results. X-Video Extension version 2.2 screen #0 Adaptor #0: "Intel(R) Textured Video" number of ports: 16 port base: 86 operations supported: PutImage supported visuals: depth 24, visualID 0x21 number of attributes: 3 "XV_BRIGHTNESS" (range -128 to 127) client settable attribute client gettable attribute (current value is 0) "XV_CONTRAST" (range 0 to 255) client settable attribute client gettable attribute (current value is 0) "XV_SYNC_TO_VBLANK" (range -1 to 1) client settable attribute client gettable attribute (current value is 1) maximum XvImage size: 2048 x 2048 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) Adaptor #1: "Intel(R) Video Overlay" number of ports: 1 port base: 102 operations supported: PutImage supported visuals: depth 24, visualID 0x21 number of attributes: 11 "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_PIPE" (range -1 to 1) client settable attribute client gettable attribute (current value is -1) "XV_GAMMA0" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 526344) "XV_GAMMA1" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 1052688) "XV_GAMMA2" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 2105376) "XV_GAMMA3" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 4210752) "XV_GAMMA4" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 8421504) "XV_GAMMA5" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 12632256) maximum XvImage size: 2048 x 2048 Number of image formats: 4 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) The "Intel(R) Textured Video" adaptor was absolutely awful and it is with that I would see all of the tearing and sync issues. AFAIK, mplayer uses the first adaptor it comes across if not explicitly specified. Switching to the "Intel(R) Video Overlay", all of my issues just went away (mplayer -vo xv:port=102 ...). So, it might be worth trying different adaptors if more are listed. Just to be clear, though. I don't see any issues anymore with either adaptor on that particular machine.