You are not logged in.

#1 2012-12-22 04:05:46

skipperx
Member
Registered: 2012-12-09
Posts: 19

Blotchy HD video in web browser on Macbookpro 9,2 with XFCE

I am trying out XFCE in my first arch install on a Macbookpro 9,2. It has an Intel HD4000 video card with 4GB RAM. It plays HD videos from youtube pretty nicely in OSX. However, I have been having a hard time trying to get similar video on the linux side. When I play the same clips, there are patches of slighly off color making the picture look a bit like water color. I have read around and added some xorg conf files and managed to get the correct screen size and dpi. However I cannot fix the blotchy video.

Here is my current situation.

$ more 20-intel.conf
Section "Device"
   Identifier "Intel Graphics"
   Driver     "intel"
   Option     "AccelMethod" "sna"
EndSection
$ more 10-monitor.conf
Section "Monitor"
        Option  "UseEdidDpi"   "false"
        Identifier "Monitor0"
        DisplaySize  286 180
EndSection

Section "Screen"
        Identifier "Screen0"
        Monitor "Monitor0"
EndSection
$ pacman -Qs video-intel
local/xf86-video-intel 2.20.15-1 (xorg-drivers xorg)
    X.org Intel i810/i830/i915/945G/G965+ video drivers
$ xdpyinfo |grep dimension
  dimensions:    1280x800 pixels (288x180 millimeters)
$ xdpyinfo |grep dot
  resolution:    113x113 dots per inch
$ lspci

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
	Subsystem: Apple Inc. Device 00fa
	Flags: bus master, fast devsel, latency 0, IRQ 49
	Memory at a0000000 (64-bit, non-prefetchable) [size=4M]
	Memory at 90000000 (64-bit, prefetchable) [size=256M]
	I/O ports at 2000 [size=64]
	Expansion ROM at <unassigned> [disabled]
	Capabilities: <access denied>
	Kernel driver in use: i915
$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 32767 x 32767
LVDS1 connected 1280x800+0+0 (normal left inverted right x axis y axis) 286mm x 179mm
   1280x800       60.2*+
   1024x768       60.0  
   800x600        60.3     56.2  
   640x480        59.9  
VGA1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)

Is it normal for VGA1 not to be connected? Can this be the cause?

Please let me know if I need to post other information. I would appreciate if anyone can point me in the right direction.

Thank you

Last edited by skipperx (2012-12-22 04:14:25)

Offline

#2 2012-12-22 05:13:32

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Blotchy HD video in web browser on Macbookpro 9,2 with XFCE

If video only looks this way on youtube, it might be a problem with Flash. Do you see this behaviour with a regular video? One test would be seeing if "-vo xv, -vo x11, -vo gl" makes a difference in mplayer.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-12-22 07:19:43

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: Blotchy HD video in web browser on Macbookpro 9,2 with XFCE

From your description, it sounds to me like your color depth is too low.

Offline

#4 2012-12-22 19:08:22

skipperx
Member
Registered: 2012-12-09
Posts: 19

Re: Blotchy HD video in web browser on Macbookpro 9,2 with XFCE

I played 2 clips shot with my 720p camera with mplayer. One .MOV file and one .MTS file. The MOV plays on mplayer without any perceptible defect. The MTS file hangs first time. Then using a tip from an ubuntu site, I replayed with this commnad.

mplayer -demuxer lavf -lavdopts threads=4:fast:skiploopfilter=all:skipframe=none -vf pp=lb filename.MTS

Then it played to the end. But I noticed there are some patches with slightly off color. I am not sure if it helps us.

I also noticed there is often a delay on the screen while I am typing in any window including xterm. Again don't know if they can be related. That is not my main concern for now as I want to fix the video playback first. just mentioning if they are related.

Here is some information from mplayer window and the youtube window on webbrowser.

From the Youtube window on Firefox.

xwininfo: Window id: 0x220008b "Power of Mother Nature 1080p HD -
YouTube - Mozilla Firefox"

  Absolute upper-left X:  49
  Absolute upper-left Y:  57
  Relative upper-left X:  1
  Relative upper-left Y:  22
  Width: 1068
  Height: 725
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +49+57  -163+57  -163-18  +49-18
  -geometry 1068x725+48-14

From Mplayer window playing a MOV file

xwininfo: Window id: 0x2600001 "MPlayer"

  Absolute upper-left X:  1
  Absolute upper-left Y:  22
  Relative upper-left X:  1
  Relative upper-left Y:  22
  Width: 1280
  Height: 720
  Depth: 24
  Visual: 0x20
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x22 (installed)
  Bit Gravity State: ForgetGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners:  +1+22  --1+22  --1-58  +1-58
  -geometry 1280x720+1+22

I had also thought that the color depth might be the problem. But it does not seem like it. Both mplyer and the browser are using depth 24 now. I have also played the same 2 files and the youtube video on another linux desktop with less dpi and depth 24 and they played well I mean without blotchy patches and reasonably good resolution.

I have a stupid question though. How do I use "-vo xv, -vo x11, -vo gl" thing? I search around but no information on how to issue commands.

Thank you for helping.

Offline

#5 2012-12-22 20:29:15

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Blotchy HD video in web browser on Macbookpro 9,2 with XFCE

Oh those are output drivers specified on the command line. You can run "mplayer -vo x11 some_file.mov" from a terminal. Or "mplayer -vo gl some_file.mov". With "-vo help", mplayer lists all of them.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#6 2012-12-23 02:53:07

skipperx
Member
Registered: 2012-12-09
Posts: 19

Re: Blotchy HD video in web browser on Macbookpro 9,2 with XFCE

Thank you. I ran all 3 commands with the MOV file. They all ran and played the clip to the end without any error msgs. The only thing I noticed was a complaint about the sound file, but there was sound.

[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory

I also feel that flash is not happy. I read around and also unchecked the hardware acceleration in flash player, but no difference. There is also some stutter in playing some youtube videos in HD format.

Offline

Board footer

Powered by FluxBB