[FFmpeg-devel] GPU Hardware Acceleration [was Re: openCL support]

compn tempn at twmi.rr.com
Thu Mar 15 23:05:05 CET 2012


On Thu, 15 Mar 2012 22:45:24 +0100 (CET), Patrick Shirkey wrote:
>Is there anything simple that would have a good overall purpose and lead
>in the right direction?

i think the stepping stone would be write a small api / wrapper to
opencl in ffmpeg which is used by one codec/filter to do one thing.

that will:
a) show whats required to integrate ffmpeg with opencl (how to copy
data into the gpu, how to handle mem/buffer etc)

b) show devels they can start hacking at codec gpu integration, like
DCT/frame paralellization instead of working on api.

basically i think people are unmotivated to work on it because api's in
ffmpeg are bikeshedded to death, instead of just coded.

which is true about anything in ffmpeg. michael has said time and time
again its quicker to just code something than to talk about it for 3
months and 400 replies about which is the _right_ way to do it. if we
come to a blocking issue, lets deal with it down the road, not discuss
first and code later.

things to be done (note i have no experience in what i'm saying):

0. talk to nvidia, ati, intel, and whomever you can into getting some
specs, api, reference encoders, code snippets, help, or anything that
can possibly help speed things up.

0.1. write api in ffmpeg git branch repo. or send patch.

1. write api howto like codec howto and demuxer howto on multimedia
wiki.

2. compile list of other projects which use opencl and gpu accel. (so we
can reuse code, like x264, that jp2k project and vlc?)

3. make news entry that you are looking for sponsors to sponsor gpu
accel for codecs.

4. send proprosals to ffmtech for funding requests.

5. write news entry asking for talented programmers to write code for
sponsored money. start with small bounties and small code to find
good programmers.

6. ???

7. profit.

-compn


More information about the ffmpeg-devel mailing list