intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

Add extra threads to a session #103

Closed llin60 closed 10 months ago

llin60 commented 11 months ago

Hi, I've been using oneVPL to do some video processing tasks, and I found that in some cases when I connect a decode session with a vpp session, the MFXVideoCORE_SyncOperation function in the vpp session takes a long time to execute, leading to a slow overall processing speed. Based on my understanding, this MFXVideoCORE_SyncOperation calls the internal scheduler to run the existing awaiting tasks, I'm guessing the slow processing speed is probably caused by the limited thread number assigned to the scheduler in the session, so I wonder if there is any code I can refer to to manually add some extra threads to a session. I'm using API version>2.0 by the way. Thanks in advance.

shepark commented 11 months ago

Yes, there's AsyncDepth, https://spec.oneapi.io/versions/latest/search.html?q=AsyncDepth Please review sample_decode tool under tools/legacy/sample_decode folder for the proper implementation for that case. And command line option is -async.

akwrobel commented 10 months ago

@llin60 do you have any remaining questions post the comment above?

llin60 commented 10 months ago

Thanks for the reply, I don't have further question. I'll close this issue.