Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 01-13-10, 08:37 PM   #1
mobrien
Registered User
 
Join Date: Sep 2004
Posts: 5
Angry mencoder error using vdpau

Hi!

I just got a GT 220 a couple of days ago and discovered this *great* feature called VDPAU! So, I thought I would give it a spin at backing up a DVD I own to my media server and, actually, since my roommate has the same movie and it is a dual core processor, run a double encode simultaneously, one using VDPAU and the other using software decoders and see what the delta is in time!

Anyway, I am getting this freaky error that I can't get past.

I can run "mplayer -dvd-device /dev/sr0 dvd:// -vo vdpau -vc ffmpeg12vdpau" and the video pops up using about 3% CPU. Omitting the last two parameters, it uses about 7% CPU.

Also, using mencoder to software decode and rip the video works no problem by running "mencoder -dvd-device /dev/sr0 dvd:// -ovc xvid -xvidencopts pass=1 -alang en -oac mp3lame -lameopts vol=6 -o AmGang2.XviD.avi".

However, when I try to add "-vc ffmpeg12vdpau" as a parameter, I get a very cryptic error
Code:
[mpegvideo_vdpau @ 0x7f9f5e789880]get_buffer() failed (-1 0 0 (nil))
Error while decoding frame!
I have attached my STDOUT, STDERR and nvidia-bug-report.log for reference. Please let me know if you have any suggestions!

Thanks!!!

--mobrien118
Attached Files
File Type: txt mencoder-STDERR.txt (1.9 KB, 129 views)
File Type: txt mencoder-STDOUT.txt (4.5 KB, 125 views)
File Type: log nvidia-bug-report.log (128.8 KB, 120 views)
mobrien is offline   Reply With Quote
Old 01-13-10, 09:33 PM   #2
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: mencoder error using vdpau

I don't think mencoder supports using VDPAU at this time.
AaronP is offline   Reply With Quote
Old 01-13-10, 09:58 PM   #3
mobrien
Registered User
 
Join Date: Sep 2004
Posts: 5
Red face Re: mencoder error using vdpau

Quote:
Originally Posted by AaronP View Post
I don't think mencoder supports using VDPAU at this time.
Oh! That is one thing I forgot to mention...

I am using the version of mencoder provided by the nvidia-vdpau ppa for Karmic. It is supposed to be compiled with VDPAU support. Also, I experienced the same results with both the 190 drivers and the 195 beta drivers (both provided through the same ppa).

Whether it works or not, you would know better than me. Has anyone gotten this to work? Or have I just wasted 4 hours trying to find some solution (well, I guess I would have just wasted the time on something else anyway :-))

Thanks again!!

--mobrien118
mobrien is offline   Reply With Quote
Old 01-14-10, 12:06 AM   #4
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: mencoder error using vdpau

Compiling the MPlayer source tree creates both the mplayer and mencoder binary. The nvidia-vdpau PPA includes both binaries from the build simply because that's how MPlayer is typically packaged. However, only MPlayer actually supports VDPAU, mencoder doesn't.
Stephen Warren is offline   Reply With Quote
Old 01-14-10, 07:14 AM   #5
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: mencoder error using vdpau

Quote:
Originally Posted by mobrien View Post
I just got a GT 220 a couple of days ago and discovered this *great* feature called VDPAU! So, I thought I would give it a spin at backing up a DVD I own to my media server and, actually, since my roommate has the same movie and it is a dual core processor, run a double encode simultaneously, one using VDPAU and the other using software decoders and see what the delta is in time!
As said, mencoder does not support VDPAU.
Note that mencoder is mostly unmaintained, so the application you would normally want to use is ffmpeg (which also does not support VDPAU yet and does not support decrypting DVD's). Additionally, is is unlikely that you could beat a fast dual-core processor at decoding MPEG-2 using VDPAU (at least not significantly).

Carl Eugen
cehoyos is offline   Reply With Quote
Old 01-14-10, 10:10 AM   #6
mobrien
Registered User
 
Join Date: Sep 2004
Posts: 5
Cool Re: mencoder error using vdpau

Quote:
Originally Posted by cehoyos View Post
As said, mencoder does not support VDPAU.
Note that mencoder is mostly unmaintained, so the application you would normally want to use is ffmpeg (which also does not support VDPAU yet and does not support decrypting DVD's). Additionally, is is unlikely that you could beat a fast dual-core processor at decoding MPEG-2 using VDPAU (at least not significantly).
Well, I can't say that I'm not a little sad to hear this. I only have a 1.86 GHz Core2 Duo processor, and as I indicated with my test using MPlayer, there was a CPU savings. I mostly was interrested in actually finding out what the difference would be. I find the possibility of offloading video processing to the GPU to be fascinating and just want to learn about how it works and of the potential.

Also, you probably know better than me, but I thought MEncoder pretty much used the same "code" as MPlayer, only instead of directing the output to a video frame, it sends it to an encoder library to create a file. That said, how can it be that mencoder is unmaintained?

Anyway, I hope that some day (soon) mencoder will be able to grab the vdpau output. Not necessarily for a huge cost savings, but just "for fun" maybe.

Thanks, all, for the info. Very interesting topic!

--mobrien118
mobrien is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:34 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.