Hi<br><br>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: <br>

<br>VdpOutputSurfaceCreate(): status 25: A catch-all error, used when no other error code applies.<br><br>vdpau_video: VdpPresentationQueueBlockUntilSurfaceIdle(): status 3: An invalid handle value was provided.<br><br>Can anybody tell me how to use two vaapi context with ffmpeg ? or is there any restriction that two context cannot work ?<br>

<br>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)<br><br>Thanks<br>Varun<br>