Sandy Bridge i3-2120T Video Help (VaAPI?)

Help with using MiniMyth (except Booting)

Moderator: Pablo

Fmstrat
New Member
Posts: 1
Joined: Sun Jan 22, 2012 7:49 pm

Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by Fmstrat » Sun Jan 22, 2012 7:51 pm

Hi all,

What is the proper way to get a Sandy Bridge i3-2120T on-board video configured for minimyth? I've tried a number of different settings, but video playback is stuttering no matter what I do. Is there something I need to change in minimyth.conf specifically for this chipset?

Thanks,
Ben

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Wed Feb 01, 2012 9:54 pm

Hello,

Unfortunately, I don't yet have a Sandy Bridge based machine.

On the mythtv mailing list, there has been a lot of discussion in the last 2 weeks regarding Sandy Bridge as a low powered front end.

There were several suggestions as to a 1 line patch ( Mesa I believe ), which playback profiles to use, etc.

If you find that patch, Maybe Pablo could add it in the next release of MiniMyth. The patch doesn't affect playback performance, but rather just stability.

M

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by Pablo » Sat Apr 14, 2012 11:24 pm

I have added VA-API support to MiniMyth. However, I have yet to buy hardware to test it, so it may not work.

While NVIDIA provides great support for their binary blob, I would rather use drivers that provide source code so that I can more easily isolate problems. Therefore, I have been considering switching to Intel for my MythTV frontends.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Sun Apr 15, 2012 12:37 am

I have a new motherboard, memory, etc to build a new Sandy Bridge frontend. The CPU should be here early next week.

I had purchased a fanless 430 GT card to go in it, but I am more than happy to test it with the software decoders and/or VAAPI once I upgrade to 0.25.

From looking at the release notes and the mailing list, my impression was VAAPI was still pretty new and not well tested in general.

Did you happen to include the one line patch for the Mesa libraries I referenced above? If you aren't sure about the patch I can go find a link to it.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by Pablo » Sun Apr 15, 2012 11:20 pm

m_theredhead wrote:Did you happen to include the one line patch for the Mesa libraries I referenced above? If you aren't sure about the patch I can go find a link to it.
Thank you. The link would be great.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Sun Apr 15, 2012 11:36 pm

Here is a link to the patch: http://cgit.freedesktop.org/mesa/mesa/c ... 3ef2f06a01

It was initially for Mesa 7.11.2, but I am not sure what version is currently in Minimyth.

With that patch, a coworker has myth running well on Sandy Bridge but without using VAAPI.

Michael

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by Pablo » Wed Apr 18, 2012 4:33 am

Thank you for the pointer. I have committed the patch to MiniMyth (r9058). It will be in the next build.
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Wed Apr 18, 2012 5:33 am

Thanks,

My Sandy Bridge CPU has arrived and the box is built.

Currently I have an NVIDIA GT 430 fanless card in it. This weekend when I have some time, I will pull that card out and get some idea how things are in the current state with the onboard video.


Michael

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Sat Apr 21, 2012 5:30 pm

My testing this morning has been promising but also very disappointing.

The good news:

1) Minimyth boots under Sandy Bridge w/ onboard video over HDMI.
2) HD audio was detected and seems to be working over HDMI
3) My frontend will now go to sleep and wake up successfully as long as I don't use the LCD. (different thread)

The bad news:

1) Bootup in the fb section gets a little messed up. Right after I see the DHCP messages, the screen goes into this weird split screen. See this link:

http://www.kmaclub.com/IMG_1847.JPG

Ignore the message in the image. I have resolved that issue. The machine does continue on to boot. Once X starts, the screen looks fine.

2) Video playback is unwatchable. Pauses in the video every second. The CPU is using 90+% CPU and mythfrontend is using about 40+%cpu on another core. I tried software and opengl renders. When configured to use opengl, I see these messages in the logs.

Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.703842 I Clearing OpenGL painter cache.
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791237 E VDPAU: Error at mythrender_vdpau.cpp:1539 (#1, Unknown)
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791247 E VDPAU: Failed to create VDPAU device.
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791252 E VDPAU: No VDPAU device
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791256 E VDPAU: Failed to create VDPAU render device.
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791263 E VidOutVDPAU: Failed to initialise VDPAU
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791484 E VideoOutput: Not compiled with any useable video output method.
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791498 E Player(0): Couldn't create VideoOutput instance. Exiting..
Apr 21 09:09:01 mythliv mythfrontend: 2012-04-21 09:09:01.791511 E Player(0): Unable to initialize video.
Apr 21 09:09:21 mythliv mythfrontend: 2012-04-21 09:09:21.845784 E playCtx: StartPlaying() Failed

This makes think the nvidia libraries have replaced libraries in Mesa that are necessary for opengl.

It doesn't seem like it should be trying VDPAU when using opengl.

So far, good progress, but it still isn't usable.

I do have a friend who is using Sandy Bridge w/ mythtv under Ubuntu using opengl. He is just using opengl and sees about 50% cpu utilization.

Michael

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Sat Apr 21, 2012 5:51 pm

I should have mentioned, setting the renderer to VAAPI has very similar VDPAU messages.

Pablo
Site Admin
Posts: 4182
Joined: Tue Dec 14, 2004 2:13 am
Location: La Jolla
Contact:

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by Pablo » Sun Apr 22, 2012 10:29 am

What are the contents of /etc/conf.d/minimyth?
MiniMyth running on an Acer ApireRevo 3610 and a Zotac ZBOX-ID80-U. Find out more at my MythTV page.

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Sun Apr 22, 2012 4:17 pm


WorldOfHurt
New Member
Posts: 2
Joined: Fri May 25, 2012 2:25 pm

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by WorldOfHurt » Wed Jun 06, 2012 10:57 pm

I've tried and failed - couldn't get ANY video playback to work on my i3-2100T, with or without a VAAPI video profile. Audio is fine, video is like watching a flick-book on pretty much any video profile, others just show a green screen.

MythBuntu works out of the box (non-VAAPI) so it's presumably just some driver issue and I really want to use MiniMyth so I can keep the box diskless.

i3 2100T, gigabyte GA-H61N-USB3 motherboard, 4GB.

Can't imagine what is breaking CPU video rendering. Any ideas?

m_theredhead
Contributor
Posts: 170
Joined: Thu Apr 27, 2006 7:00 pm
Location: Arizona

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by m_theredhead » Thu Jun 07, 2012 12:17 am

I don't have a solution for you. I am having the same issue.

Are you able to capture some debug logs during playback? that may help pinpoint the problem.

Michael

WorldOfHurt
New Member
Posts: 2
Joined: Fri May 25, 2012 2:25 pm

Re: Sandy Bridge i3-2120T Video Help (VaAPI?)

Post by WorldOfHurt » Fri Jun 08, 2012 10:38 am

I'll have a look this weekend. Which logs in particular are going to be of interest?

Post Reply