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

Newegg Daily Deals

View Poll Results: Would you like to use your GPU for faster Video Editing/Transcoding?
Yes. 18 100.00%
No. 0 0%
Voters: 18. You may not vote on this poll

Reply
 
Thread Tools
Old 02-09-09, 12:56 PM   #1
djtm
Registered User
 
Join Date: Feb 2009
Posts: 3
Question VDPAU:Support Plain Decoding in ffmpeg Patches for Transcoding and Video Editing Apps

Thanks for the great work!

The Task
I would like to use VDPAU to (more quickly) transcode my 1080i AVCHD home videos to 720p h264.

The Problem
Unfortunately the VDPAU ffmpeg/mplayer patches are currently written in a way that only video output is possible. They are currently not compatible with mencoder for plain decoding. The people in #mplayer said that it is currently implemented as a "vo" not a "vc" (even though you use -vc ... to activate the codec).

The Fix
As I was told VDPAU API lets youget the decoded image from the video and copy it to the system ramto write the support as "vc", as plain decoding compatible with mencoder. That would be really nice, because then I could use the GPU for the decoding part and speed up the process a lot. Also more flexible processing in mplayer and speed ups in other video encoding applications would be possible.

Last edited by djtm; 02-10-09 at 03:15 AM. Reason: make clear it's not a VDPAU feature, but a VDPAU ffmpeg patch feature
djtm is offline   Reply With Quote
Old 02-09-09, 01:11 PM   #2
Dragoran
Registered User
 
Join Date: May 2004
Posts: 711
Default Re: VDPAU feature request: Support Plain Decoding for Transcoding and Video Editing A

This pool is useless, why should anybody vote "no" ?

For transcoding a CUDA/OPENCL based approach would be better suited (and more flexible).
Dragoran is offline   Reply With Quote
Old 02-09-09, 01:23 PM   #3
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default Re: VDPAU feature request: Support Plain Decoding for Transcoding and Video Editing A

Quote:
Originally Posted by Dragoran View Post
For transcoding a CUDA/OPENCL based approach would be better suited (and more flexible).
It wouldn't. The current CUDA encoders produce crap quality and are no faster than x264. And according to one x264 developer, this won't change in the near future.
Gusar is offline   Reply With Quote
Old 02-09-09, 03:56 PM   #4
Stephen Warren
Moderator
 
Stephen Warren's Avatar
 
Join Date: Aug 2005
Posts: 1,327
Default Re: VDPAU feature request: Support Plain Decoding for Transcoding and Video Editing A

This isn't a VDPAU feature request; it's an ffmpeg feature request.

With the pending integration of VAAPI into ffmpeg, the ffmpeg authors are investigating whether to move video decoding entirely within ffmpeg, along with unifying how VDPAU and VAAPI integrate with ffmpeg, which would then probably achieve what you want.
Stephen Warren is offline   Reply With Quote
Old 02-10-09, 03:05 AM   #5
djtm
Registered User
 
Join Date: Feb 2009
Posts: 3
Default Re: VDPAU feature request: Support Plain Decoding for Transcoding and Video Editing A

Quote:
Originally Posted by Stephen Warren View Post
This isn't a VDPAU feature request; it's an ffmpeg feature request.
Yes, true. As I said it's not about the VDPAU API or anything, but about the patches to ffmpeg/mplayer, which were written mainly by NVIDIA afaik. So I thought you might be the right people to ask about this.
djtm is offline   Reply With Quote
Old 02-10-09, 03:12 AM   #6
djtm
Registered User
 
Join Date: Feb 2009
Posts: 3
Default Re: VDPAU feature request: Support Plain Decoding for Transcoding and Video Editing A

Quote:
Originally Posted by Gusar View Post
The current CUDA encoders produce crap quality and are no faster than x264.
True, x264 is quite fast and scales well. On a simple dual-core I can already reach the limits of the ffmpeg software AVCHD decoder, which unfortunately does not scale well, hence slowing down x264 transcoding.

And the problem about CUDA is that it is pretty hard to implement, which I think is the reason the encoders are still low quality. Also it works only on one platform (nvidia gpus), so I think OpenCL will be better suited for that in the future. Hopefully we'll see some open source encoders which support OpenCL.

But until then, why not use the hardware decoders, which are of fine quality already?
djtm is offline   Reply With Quote
Old 12-29-09, 03:24 AM   #7
misse
Registered User
 
Join Date: Dec 2009
Posts: 1
Default Re: VDPAU feature request: Support Plain Decoding for Transcoding and Video Editing A

Hi,

Sorry to bump this thread, but I just want to know what's the current status is, since I can't find any information on whether it's possible to use mencoder to transcode with vdpau.

Is it a possible feature? If so, is there anyone developing it and is there any usable code to test?

I've got myself an Asrock 330 ION for christmas and would really like to use it to transcode 1080p material to my PS3, but the CPU doesn't have the power to do so.

With XBMC and VDPAU however it does it without even breaking a sweat.
misse is offline   Reply With Quote
Old 12-29-09, 07:22 AM   #8
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default Re: VDPAU feature request: Support Plain Decoding for Transcoding and Video Editing A

Quote:
Originally Posted by misse View Post
Is it a possible feature?
Yes.

Quote:
Originally Posted by misse View Post
If so, is there anyone developing it and is there any usable code to test?
No.

Quote:
Originally Posted by misse View Post
I've got myself an Asrock 330 ION for christmas and would really like to use it to transcode 1080p material to my PS3, but the CPU doesn't have the power to do so.
Encoding will still be done by the CPU, so you'll still be extremely limited by it. For fast encoding, get a beast of a CPU with as much cores as possible - like Core i7 (eight logical cores). It's the only way.
Gusar 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 02:37 PM.


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