[suggestion] CUDA 4 audio encoding

Discussing about advanced video encoding techniques including GPU encoding, distributive encoding and segmental encoding. Topics are not limited to MediaCoder.
Post Reply
User avatar
forart.eu
Modest
Modest
Posts: 133
Joined: Wed Jan 24, 2007 9:00 pm
Location: Italy

[suggestion] CUDA 4 audio encoding

Post by forart.eu » Thu Sep 10, 2009 7:35 pm

Seems that someone is trying to take advantage of CUDA for audio encoding...
Gregory S. Chudov wrote: Here is good news.

An alfa version of flac encoder for GPU.

I only tested it on GTS 250, so i'm eager to hear from people with other cards.
FlaCuda.rar ( 79.94K )

Just a question: can't be possible to have a "CUDA engine" to speedup *any* a/v encodings ?
>>Forward Agency
In progress we (always) trust.

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Re: [suggestion] CUDA 4 audio encoding

Post by stanley » Thu Sep 10, 2009 10:29 pm

Is that for encoding FLAC?
There is no universal way. Each decoder/encoder/filter has to be ported to GPU-friendly in order to get any noticeable speedup, unless they share a common base library.
When things work together, things work.

User avatar
forart.eu
Modest
Modest
Posts: 133
Joined: Wed Jan 24, 2007 9:00 pm
Location: Italy

Re: [suggestion] CUDA 4 audio encoding

Post by forart.eu » Fri Sep 11, 2009 5:09 pm

Yup, it's a CUDA-flac encoder (keep in touch with Gregory S. Chudov, its author).

About the "engine" idea: don't you think possible to have something like liboil but for GPU ?
Liboil is a library of simple functions that are optimized for various CPUs. These functions are generally loops implementing simple algorithms, such as converting an array of N integers to floating-point numbers or multiplying and summing an array of N numbers. Such functions are candidates for significant optimization using various techniques, especially by using extended instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).

Many multimedia applications and libraries already do similar things internally. The goal of this project is to consolidate some of the code used by various multimedia projects, and also make optimizations easier to use by a broader range of applications.
:roll:
>>Forward Agency
In progress we (always) trust.

User avatar
forart.eu
Modest
Modest
Posts: 133
Joined: Wed Jan 24, 2007 9:00 pm
Location: Italy

Re: [suggestion] CUDA 4 audio encoding

Post by forart.eu » Wed Dec 02, 2009 10:42 pm

Official homepage

...and a very interesting comparison vs. A multicore FLAC encoder @ HA's forums.
Results from test #2:

original FLAC encoder (-8 compression) = 1 minute, 07 seconds
and George FP's encoder (-8 compression) = 21 seconds

just for kicks I tried flaCUDA...

flaCUDA encoder (-11 compression) = 58 seconds
flaCUDA encoder (-8 compression) = 16 seconds
>>Forward Agency
In progress we (always) trust.

Post Reply