[Libva] Multiple vaapi context

Varun Dua varundua007 at gmail.com
Wed Jan 19 04:43:39 PST 2011


Hi

I am using FFMpeg and libva for getting hardware acceleration for my h.264
videos. With one H.264 stream everything is fine, but with two parallel
H.264 stream videos I am having a problem. I am creating two FFMpeg contexts
(AVCodecContext, AVFormatContext etc) and two vaapi context but I am having
problem with that. The errors that come are:

VdpOutputSurfaceCreate(): status 25: A catch-all error, used when no other
error code applies.

vdpau_video: VdpPresentationQueueBlockUntilSurfaceIdle(): status 3: An
invalid handle value was provided.

Can anybody tell me how to use two vaapi context with ffmpeg ? or is there
any restriction that two context cannot work ?

Also is there any way before we can know whether these error will come or
not, actual decoding the frame (i.e. before calling avcodec_decode_video2 or
calling vaPutSurface)

Thanks
Varun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20110119/9bd87a2a/attachment.html>


More information about the Libva mailing list