Hi<br><br>I am working on an application where I am receiving two independent stream of H.264 encoded frames and I have to decode them using FFmpeg. I create two FFMpeg context, one for each of the stream. Everything is working fine when I am using only software decoding, but with using vaapi, The second stream is not getting decoded. I create seperate context, surfaces and config for the streams.<br>

<br>I am getting these errors, <br>[h264 @ 0x826ebc0]hardware accelerator failed to decode picture (in the function avcodec_decode_video/avcodec_decode_video2)<br>vdpau_video: WARNING: unknown VdpStatus 3: An invalid handle value was provided. (in the function vaPutSurface)<br>

<br>Is there a limitation that we can&#39;t create more than one vaapi context to decode.<br><br>The same issue comes when I create 3 surfaces for the hardware context using vaCreateSurfaces and with one encoded stream<br>

<br>Mplayer-Vaapi creates 21 frames and is having the same issue<br><br>My Graphics card is Quadro FX 380 with 16 cuda cores<br><br>Thanks<br>Varun<br>