Joined: 26 Aug 2002
Location: Kansas City
|Posted: Wed Dec 20, 2006 6:05 pm Post subject: HD Video fix for Intel Graphics
|When I got my shiny new widescreen laptop with a 1440x900 display I obviously wanted to be able to watch 720p HD video content. I was annoyed to find that I couldn't watch any video with a height multiplied by width higher than 650000 (about 1080x600) without mplayer crashing with the following error:
|X11 error: BadAlloc (insufficient resources for operation) |
After searching these forums I couldn't easily find a post that detailed the specific solution for an Intel Graphics card with this problem. However there were solutions for similar problems.
I examined the man file for the i810 video driver. lspci claims that I have a Intel Corporation Mobile 945GM/GMS/940GML
And found this entry:
| Option "CacheLines" "integer"
This allows the user to change the amount of graphics memory used
for 2D acceleration and video. Decreasing this amount leaves more
for 3D textures. Increasing it can improve 2D performance at the
expense of 3D performance. Default: depends on the resolution,
depth, and available video memory. The driver attempts to allocate
at least enough to hold two DVD-sized YUV buffers by default. The
default used for a specific configuration can be found by examining
the Xorg log file.
The solution for me was to add a CacheLine entry to my xorg.conf:
Option "PageFlip" "true"
Option "CacheLines" "2048"
Now I can watch videos with a resolution of 1280x720 without mplayer crashing!
For since in the wisdom of God the world by its wisdom did not know God, God was pleased to save those who believe by the foolishness of preaching.