PDA

View Full Version : mythtv 0.22-trunk and VDPAU??


mbobak
August 19th, 2009, 01:47 AM
Hi,

I'm running myth 0.22 trunk from the Mythbuntu weekly builds on Ubuntu 9.04.

I was previously running myth 0.21 with VDPAU patch backported, and had no problems.

With 0.22, I can't seem to get VDPAU working. As a result, my CPU gets hit pretty hard, and when things get busy, I get some skips and dropouts, etc.

Is anyone else running 0.22 trunk? Got VDPAU working?

I created a new Video Playback profile, and all it has is:

if rez > 0 0 -> vdpau & vdpau

and, I still get no VDPAU on playback.

Any thoughts or suggestions are welcome.

Thanks,

-Mark

superm1
August 19th, 2009, 09:51 AM
Make sure you have a fairly current NV driver loaded with it, 185 or higher probably...

mbobak
August 19th, 2009, 02:20 PM
Not at home now, but it's the latest NVIDIA driver, 180.44, I think. It's whatever is current for Jaunty. I don't think it's the 185.* series.

Whatever the driver is, it worked w/ 0.21-fixes and JAvenard's VDPAU patch. VDPAU was running great on that. I bumped up to 0.22-trunk, cause I hope to pick up an HD-PVR soon, but, I want to first make sure it's stable, and that I can get VDPAU working.

Thanks,

-Mark

mbobak
August 19th, 2009, 08:16 PM
I'm at home now. I just confirmed that my NVIDIA driver is at 180.44, which is the most up-to-date driver available in Jaunty right now.

-Mark

jyavenard
August 20th, 2009, 10:26 AM
I'm at home now. I just confirmed that my NVIDIA driver is at 180.44, which is the most up-to-date driver available in Jaunty right now.

-Mark

running mythfrontend.real -v playback

what does it show when starting playback ?

Normally upgrading from 0.21-fixes with my backport to 0.22 with trunk requires no modification to the video profile ; it's fully compatible.

However, I've seen cases where it wouldn't be recognised. The easy fix is simply deleting the profile and recreating one.

mbobak
August 20th, 2009, 06:36 PM
running mythfrontend.real -v playback

what does it show when starting playback ?

Normally upgrading from 0.21-fixes with my backport to 0.22 with trunk requires no modification to the video profile ; it's fully compatible.

However, I've seen cases where it wouldn't be recognised. The easy fix is simply deleting the profile and recreating one.

Hi Jean-Yves,

Actually, I should have been clearer. For unrelated reasons, I did a complete O/S re-install between 0.21-fixes and 0.22-trunk.

So, there were no remnants of the old 0.21-fixes stuff anywhere.

I did, however, use your guidelines at:
http://www.avenard.org/media/MythTV_%26_VDPAU/MythTV_%26_VDPAU.html

to help me define the profile. I have a 9500GT, so, as it outlined, I did:
if rez > 0 0 -> vdpau & vdpau

Any other thoughts?

Thanks,

-Mark

jyavenard
August 20th, 2009, 06:43 PM
Hi Jean-Yves,

Actually, I should have been clearer. For unrelated reasons, I did a complete O/S re-install between 0.21-fixes and 0.22-trunk.

So, there were no remnants of the old 0.21-fixes stuff anywhere.

I did, however, use your guidelines at:
http://www.avenard.org/media/MythTV_%26_VDPAU/MythTV_%26_VDPAU.html

to help me define the profile. I have a 9500GT, so, as it outlined, I did:
if rez > 0 0 -> vdpau & vdpau

Any other thoughts?

Thanks,

-Mark

Then post the result of mythfrontend.real -v playback when you start playback of a recording...
to see what's happening.

mbobak
August 21st, 2009, 08:52 AM
Then post the result of mythfrontend.real -v playback when you start playback of a recording...
to see what's happening.

Will do, as soon as I get home. Had a LUG meeting last night, got home late, forgot to do that. I'll be sure to do it tonight!

-Mark

mbobak
August 22nd, 2009, 01:11 AM
Well, ok, either I'm an idiot, or I changed something without realizing it. VDPAU playback seems to be fine now.....

Sorry I bothered you all.

I did notice, though, that with the default level of logging, mythfrontend shows:
2009-08-22 01:03:16.358 AFD: Opened codec 0xb461030, id(MPEG2VIDEO) type(Video)

which is what I used to see in 0.21, when VDPAU was broken.
(In 0.21, when VDPAU was working, I'd see something like "(MPEG2VDPAUVIDEO)", or something like that.

In 0.22, when running w/ '-v playback', I was able to see lots of VDPAU related log messages, but with default logging, there's no trace that VDPAU is enabled.

Also, CPU usage is way down, and playback is much smoother as a result, so I definitely have VDPAU working now, and I'm fairly certain it was not working as recently as Wednesday.

Anyhow, guess we can consider this closed, even if I don't know what actually resolved it.

Thanks,

-Mark

hades_wi
August 23rd, 2009, 12:08 AM
Hi superm1 (http://ubuntuforums.org/member.php?u=44239), I'd be interested to know how I can have 185 series of nvidia drivers with mythbuntu weekly builds (trunk)?

VDPAU for my video card (zotac ION) does not appear to work with the 180 series. Problem is that then I try to apt-get mythtv-frontend, it wants 180 series drivers, not 185 and hence will not install.

Wayne

jyavenard
August 23rd, 2009, 09:49 PM
Well, ok, either I'm an idiot, or I changed something without realizing it. VDPAU playback seems to be fine now.....

Sorry I bothered you all.

I did notice, though, that with the default level of logging, mythfrontend shows:
2009-08-22 01:03:16.358 AFD: Opened codec 0xb461030, id(MPEG2VIDEO) type(Video)

which is what I used to see in 0.21, when VDPAU was broken.
(In 0.21, when VDPAU was working, I'd see something like "(MPEG2VDPAUVIDEO)", or something like that.


That's how the newer ffmpeg works.
Previously, mythtv was based on an early ffmpeg patch released by nvidia. They created a different video codec for all vdpau accelerated codecs.
so MPEG2VIDEO had a corresponding MPEG2VIDEOVDPAU

The latest mythtv trunk used the official ffmpeg vdpau support, it doesn't have that distinction anymore ; all codecs have the same name (no more vdpau specific codecs)

You do get however in the log, some traces that vdpau is being used, not the same one as the 0.21 backport however where it was very clear.

mbobak
August 24th, 2009, 08:04 AM
Thanks for the explanation, Jean-Yves.

Now that I've got 0.22 stable and VDPAU working, I'm just waiting for Dell (or someone) to discount the HD-PVR and I can say good bye to my annoying Comcast DVR.

-Mark