Gentoo Archives: gentoo-user

From: Jackson <wjiecheng@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] intel HD graphics 4000 and viewing DVDs
Date: Sun, 02 Dec 2012 15:47:55
Message-Id: 50BB7798.1030506@gmail.com
In Reply to: Re: [gentoo-user] intel HD graphics 4000 and viewing DVDs by Allan Gottlieb
1 On 12/02/2012 03:02 AM, Allan Gottlieb wrote:
2 > On Sat, Dec 01 2012, Florian Philipp wrote:
3 >
4 >> Am 28.07.2012 10:22, schrieb Florian Philipp:
5 >>> Am 27.07.2012 22:57, schrieb Michael Mol:
6 >>>> On Fri, Jul 27, 2012 at 4:39 PM, Florian Philipp
7 >>>> <lists@×××××××××××.net> wrote:
8 >>>>> Am 27.07.2012 22:22, schrieb Michael Mol:
9 >>>>>> On Fri, Jul 27, 2012 at 4:10 PM, Allan Gottlieb<gottlieb@×××.edu> wrote:
10 >>>>>>> I am getting a new laptop. (likely dell 6430).
11 >>>>>>> The two graphics options are intel HD 4000 and nvidia NVS 5200M.
12 >>>>>>> Dell is as expected suggesting the 5200M.
13 >>>>>>>
14 >>>>>>> I do not need 3D or fast response. Dell hinted that DVDs might not play
15 >>>>>>> with the intel HD 4000. This seems weird to me as the 4000 is supposed
16 >>>>>>> to be a big improvement over the 3000 and I can't believe dell or others
17 >>>>>>> would have sold laptops that can't play dvds
18 >>>>>>>
19 >>>>>>> Any comments or experiences?
20 >>>>>> My Duron 750MHz was able to decode DVDs in realtime. After that, all
21 >>>>>> you're doing is blitting (or using xv) the frames to the screen. I
22 >>>>>> would be absolutely shocked if the Intel HD 4000 GPU couldn't handle
23 >>>>>> that basic of a 2D acceleration function.
24 >>>>>>
25 >>>>>> Now, DVDs use MPEG2. Blu-Ray uses h.264, which is a much harder beast
26 >>>>>> to decode in realtime. It's possible the HD 4000 GPU can't handle
27 >>>>>> hardware decode of h.264, but I don't know. I've never looked into it.
28 >>>>>> (Software decode of 1080p h.264 on my Phenom 9650 worked somewhat, but
29 >>>>>> highly active scenes would cause frame drops.)
30 >>>>>>
31 >>>>> I've experienced issues playing DVDs on fullscreen with the OSS radeon
32 >>>>> driver. Therefore I'm cautious of assumptions that something works
33 >>>>> simply because the input is easy to decode. Upscaling to large displays
34 >>>>> with high resolutions can be an issue.
35 >>>>>
36 >>>>> I'm not saying the Intel driver cannot handle it. I'm just saying you
37 >>>>> should try it or look for reports.
38 >>>> How high is 'high' resolution? I was upscaling to 1600x1200 using an a
39 >>>> Radeon 9600; that card would now be almost ten years old. A bit later,
40 >>>> I did the same on a 2.4GHz Pentium 4 using an i845-based Intel
41 >>>> graphics card. Here's the line from lspci, as run in May of 2007:
42 >>>>
43 >>>> 00:02.0 VGA compatible controller: Intel Corporation
44 >>>> 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)
45 >>>>
46 >>>> Hardware scaling a 2D image is one of the most trivial
47 >>>> hardware-accelerated options GPUs perform. If someone had difficulties
48 >>>> upscaling a 480p (roughly what DVDs are) to 1080p at 24 or 33fps, I
49 >>>> would be very highly suspicious of a software misconfiguration. That
50 >>>> kind of scaling should even be comfortably doable in software on any
51 >>>> modern x86-derived processor. (With the plausible exclusion of the
52 >>>> Atom CPU)
53 >>>>
54 >>> 1920x1080, on-board Radeon HD 4250. I haven't diagnosed it further
55 >>> (except of playing around with mplayer2 options) as it was easier to use
56 >>> the closed source driver.
57 >>>
58 >>> Regards,
59 >>> Florian Philipp
60 >>
61 >> I realize this thread is pretty stale but since I talked bullshit and
62 >> just now realized it, I want to correct myself:
63 >>
64 >> Since updating the kernel to 3.5 forced me to update the X server beyond
65 >> 1.11 which in turn forced me to update ati-drivers to a version that no
66 >> longer supported my Radeon HD 4250, I had to look into my issues with
67 >> the open source driver.
68 >>
69 >> It turns out, my problems had two reasons:
70 >> - I didn't enable KMS and DRM for radeon in the kernel
71 >> - I didn't have x11-drivers/radeon-ucode installed
72 >>
73 >> Both resulted in a fully functioning X server that
74 >> - could run glxgears just fine
75 >> - could (with some tuning) render videos in DVD quality with opengl output
76 >> - was too slow for videos in any higher resolution
77 >>
78 >> Regards,
79 >> Florian Philipp
80 > Thanks for the response. I should say that I have indeed purchased the
81 > laptop with intel graphics and it works fine with DVDs.
82 >
83 > allan
84 >
85 >
86
87 My laptop HP g4-1057tu of HD 3000 GPU can handle hardware decode of 720P easily with vaapi-mplayer¡«¡«¡«¡«