PDA

View Full Version : 9.10b VDPAU Working?



scovel
October 9th, 2009, 04:45 PM
I'm trying to get VDPAU working. I have an EPIA SP13000 and a shiny new GeForce 9400 GT as a frontend. I've been trying to get VDPAU working using the various drivers/PPAs/Repositories. Haven't got anything to work reliably.

I did get MPlayer/MythTV going at one point after a bunch of installs/reinstalls, only to have it all stop working after a reboot! Can't figure out what combination works. It was pretty and clean and used about 20% CPU when it worked.

Does the 9.10 Beta have VDPAU working out of the box? I'm willing to do a clean install if necessary.

In the process I upgraded my backend to MythTV .22 so that is a limiting factor.

Thanks,

Sean

dmfrey
October 9th, 2009, 06:33 PM
Did you setup a VDPAU playback profile?

tgm4883
October 9th, 2009, 06:41 PM
I'm trying to get VDPAU working. I have an EPIA SP13000 and a shiny new GeForce 9400 GT as a frontend. I've been trying to get VDPAU working using the various drivers/PPAs/Repositories. Haven't got anything to work reliably.

I did get MPlayer/MythTV going at one point after a bunch of installs/reinstalls, only to have it all stop working after a reboot! Can't figure out what combination works. It was pretty and clean and used about 20% CPU when it worked.

Does the 9.10 Beta have VDPAU working out of the box? I'm willing to do a clean install if necessary.

In the process I upgraded my backend to MythTV .22 so that is a limiting factor.

Thanks,

Sean

Yes VDPAU should work. There will be a little bit of setup, you will need to install the proprietary and setup the playback profiles for VDPAU

scovel
October 9th, 2009, 06:49 PM
Yes, I did setup a profile, using VDPAU, with and without Deinterlacers. Turned off all the OpenGL stuff, played with the audio buffering, all those things. Been reading all the forums for tips.

The more basic issue seems to be video corruption and stuttering, and depending on what versions I had installed, the "Display Pre-Empted" errors.

Lately I've just been trying to get MPlayer working first. I was running 9.04 with some PPA stuff. I upgraded to 9.10A6, then 9.10B. Tried the "Nvidia Team PPA."

The only thing I haven't done, yet, is a clean install. I was wondering if anyone had done a clean install of 9.10 Beta, and if it was working for them. It looks like it has MythTV .22 with VDPAU.

Sean

scovel
October 11th, 2009, 04:23 PM
I installed Mythbuntu 9.10 Beta. I then did apt-get update apt-get upgrade. LOTS of packages came down.

Tried Mplayer after adding the VDPAU settings to mplayer.conf. Video froze instantly, audio was choppy.

Tried MythTV on the same MPEG2 recording. Video froze, then flashed every few seconds. Audio was choppy. Then mythfrontend.real locked up using 99% cpu. Had to reboot.

MPlayer


MPlayer SVN-r29237-4.4.1 (C) 2000-2009 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing 1052_20091009235800.mpg.
MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 2) 29.970 fps 6000.0 kbps (750.0 kbyte/s)
================================================== ========================
Forced video codec: ffmpeg12vdpau
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Unsupported PixelFormat -1
Selected video codec: [ffmpeg12vdpau] vfm: ffmpeg (FFmpeg MPEG-1/2 (VDPAU))
================================================== ========================
================================================== ========================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
================================================== ========================
[pulse] working around probably broken pause functionality,
see http://www.pulseaudio.org/ticket/440
waitpid(): No child processes
AO: [pulse] Init failed: Internal error
Failed to initialize audio driver 'pulse'
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[VD_FFMPEG] XVMC-accelerated MPEG-2.
VDec: vo config request - 720 x 480 (preferred colorspace: MPEG2 VDPAU acceleration)
VDec: using MPEG2 VDPAU acceleration as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 720x480 => 720x540 MPEG2 VDPAU acceleration [fs]
A: 0.6 V: 0.4 A-V: 0.234 ct: -0.010 3/ 3 ??% ??% ??,?% 2 0
A: 0.7 V: 0.5 A-V: 0.185 ct: -0.020 7/ 7 ??% ??% ??,?% 5 0
A: 0.7 V: 0.6 A-V: 0.107 ct: -0.033 11/ 11 ??% ??% ??,?% 8 0
[vdpau] Error when calling vdp_presentation_queue_block_until_surface_idle: The display was pre-empted, or a fatal error occurred.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Error when calling vdp_presentation_queue_display: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_presentation_queue_block_until_surface_idle: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Error when calling vdp_presentation_queue_display: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_presentation_queue_block_until_surface_idle: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Error when calling vdp_presentation_queue_display: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
[vdpau] Error when calling vdp_presentation_queue_block_until_surface_idle: An invalid handle value was provided.
[vdpau] Error when calling vdp_video_mixer_render: An invalid handle value was provided.
[vdpau] Error when calling vdp_presentation_queue_display: An invalid handle value was provided.
[vdpau] Failed VDPAU decoder rendering: An invalid handle value was provided.
MythTV



2009-10-10 22:29:48.149 TV: Attempting to change from None to Watching WatchingPreRecorded
2009-10-10 22:29:48.432 TV: StartPlayer(0, Watching WatchingPreRecorded, main) -- begin
2009-10-10 22:29:50.465 AFD: Opened codec 0xb39ae10, id(MPEG2VIDEO) type(Video)
2009-10-10 22:29:50.466 AFD: codec MP2 has 2 channels
2009-10-10 22:29:50.467 AFD: Opened codec 0xb39b1c0, id(MP2) type(Audio)
2009-10-10 22:29:50.558 Opening audio device 'default'. ch 2(2) sr 48000
2009-10-10 22:29:50.559 Opening ALSA audio device 'default'.
2009-10-10 22:29:50.791 mixer unable to find control Master 1
2009-10-10 22:29:52.331 NVP(0): Forcing decode extra audio option on (Video method requires it).
2009-10-10 22:29:52.352 OSD Theme Dimensions W: 640 H: 480
2009-10-10 22:29:52.879 Unknown font: descriptfont in textarea: description
2009-10-10 22:29:54.949 TV: StartPlayer(0, Watching WatchingPreRecorded, main) -- end ok
2009-10-10 22:29:54.956 TV: Changing from None to Watching WatchingPreRecorded
2009-10-10 22:29:54.957 New DB connection, total: 3
2009-10-10 22:29:54.969 Realtime priority would require SUID as root.
2009-10-10 22:29:54.972 Connected to database 'mythconverg' at host: 10.10.20.20
2009-10-10 22:29:54.984 Video timing method: USleep with busy wait
2009-10-10 22:29:55.012 ScreenSaverX11Private: DPMS Deactivated 1
2009-10-10 22:29:55.118 NVP(0): prebuffering pause
2009-10-10 22:29:55.161 NVP(0): prebuffering pause
2009-10-10 22:29:55.175 NVP(0): prebuffering pause
2009-10-10 22:29:56.296 VDPAU Error: DISPLAY PRE-EMPTED. Aborting playback.
2009-10-10 22:29:56.296 VidOutVDPAU Error: IsErrored() is true in Show()
2009-10-10 22:29:56.297 NVP: Error condition detected in videoOutput after Show(), aborting playback.
Nvidia 185.18.36
MythTV profile set to VDPAU
all OpenGL stuff set to off.

Any help?

Sean

scovel
October 12th, 2009, 02:50 PM
Thought I'd better update this for some poor soul looking for the same answer. Yes, it appears that VDPAU is working right out of the box for 9.10 Beta.

Turns out the problem I'm having isn't VDPAU related. It's Ubuntu related.

To recap, I have a Via Epia SP13000 with a Via C3 Eden processor. It has an embedded CN400 Unichrome Pro video card that supports XvMC MPEG2 accelleration.

I was running Gentoo on it with XvMC working, but compiling on that beast was SLOW, so I decided to upgrade to Ubuntu.

I couldn't get XvMC to work properly on Ubuntu. I tried LOTS of things. Getting XvMC and the Unichrome driver working had been a royal pain in the past, so I gave up and ordered a shiny new GeForce 9400 GT so I could give VDPAU a shot.

I couldn't get VDPAU working either. In hind-sight, I was seeing the exact same types of issues. Stuttering video and audio. CPU utilization was lower than software rending (80-90% for software, 20% with XvMC and VDPAU) so I was pretty sure it was enabled, but it was unusable.

So, in the process of tracking down some other messages I was getting in dmesg, I discovered a fix...

The key was switching to Ubuntu.

I did not know it, but the Via C3 processor supports CPU Frequency scaling (throttling). This is a power-saving feature. Ubuntu supports frequency scaling With Prejudice. From reading up on it, the way it's setup in Ubuntu, it waits till the CPU Utilization is 90% before increasing the clock speed. This is too late!

So, I installed rcconf (sudo apt-get install rcconf) and then ran it (sudo rcconf). This brings up the Debian Runlevel Configuration tool. I turned off 2 services: laptop-mode and ondemand. The effectively turned off frequency scaling.

Now, when I play videos using VDPAU, it's nice and solid. I probably DIDN'T NEED to get the GeForce 9400 GT. XvMC would probably have worked just fine after turning off CPU Frequency Scaling.

Hope this helps someone else.

Sean

nickrout
October 13th, 2009, 12:10 AM
yes frequency throttling/vdpau is a known issue, with other processors too. I'd almost guarantee that the nVidia 9400 will give far nicer results than the VIA stuff, having seem both.

gator
October 13th, 2009, 01:04 AM
i had throttling probs after installing powernowd. the answer is to edit /etc/default/powernowd
changed the options to this
OPTIONS="-q -m 0 -u 50 -l 20"
all is well now with cpu scaling. Scale up if cpu > 50% and scaledown if < 20%
restart the powernowd: sudo service powernowd restart

Also edited xorg.conf and added these options to Screen

Option "UseEvents" "True"

also added this to the bottom of the file

Section "Extensions"
Option "Composite" "Disable"
EndSection
this should help
My current playback profile is Decoder: ffmpeg, Renderer: OpenGL, Deinterlacer: Interlaced ( 2X HW )
This alows my Panasonic Plasma to deinterlace for me. It looks pretty good

scovel
October 14th, 2009, 03:05 AM
It does seem nicer than the Chrome XvMC card. CPU utilization is low, 25-35%, despite the slow CPU. Jump forward and back are FAST now. It may be just me, but the quality looks better. I haven't even turned on a deinterlacer yet.

I basically turned off scaling completely. Are there safe settings? The box is idle much of the time. Saving a little power would be nice.

The governor appears to be set to "Performance" now:


scovel@mythbuntu:~$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
My understanding is that with "ondemand" there are some thresholds that could make it more workable: http://www.pantz.org/software/cpufreq/usingcpufreqonlinux.html

Kids will kill me if I break it again. I'd better not play with those settings until things die down around here...


Sean

jyavenard
October 14th, 2009, 09:26 AM
Also edited xorg.conf and added these options to Screen

Option "UseEvents" "True"



Will have no effect with default nvidia drivers 185.xx , and will crash with 190.xx




also added this to the bottom of the file

Section "Extensions"
Option "Composite" "Disable"
EndSection
this should help


It won't... Disabling Composite is not necessary with nvidia drivers >= 185.0

SiHa
October 15th, 2009, 02:05 PM
Installed 9.10 Beta (i386), said 'yes' to proprietary drivers during install.
Setup DVB-S card
Create new playback profile (>0 0 VDPAU & VDPAU).
Temporal Deinterlacer
BBC-HD using 18% (was 166% prior to enabling VDPAU)

...and the whole thing (Gigabyte GA-M85M-US2H with integrated nVidia 8200, Athlon II 250 (3GHz, 65w) 2.5in HDD) pulls a meagre 50w when doing it!

Chuffed to little mintballs.

Until I acidentally knocked the power cord, and now can't watch TV. Will try database repair later.