[FFmpeg-user] Hi, I want to ask a question about ffmpeg using dxva2 with multithreads

Roger Pack rogerdpack2 at gmail.com
Tue Jun 19 15:36:29 CEST 2012


> I seem find the problem,but I don't know how to fix it.
> I create dxva2 object for every thread.But when I run it,I don't know how
> to make the dxva2 object to communicate with each other.For example:
>
> Thread 0 has decoded a frame,then next frame I use thread 1,but the thread
> 1 maybe use preframe to decode.I don't know how to fix it.


So you've implemented your own codec that uses dxva2? That's cool.
You should submit it to the dev team :)

Anyway, so your problem is that thread 1 must use data created from
thread 0?  That sounds single threaded to me [?]

Does anybody know where to read up on how to implement threading
within a codec?  I know there's either slice based or frame based, but
I don't see even that mentioned in documentation anywhere...
-r


More information about the ffmpeg-user mailing list