Hi all,
I have been working on this issue now for some time, and hope that someone can help. I am trying to use the pp::VideoDecoder API in hardware accelerated mode (PP_HARDWAREACCELERATION_ONLY) in a pnacl application - I already have it working well with PP_HARDWAREACCELERATION_WITHFALLBACK, however it always seems to fall back to SW mode on.
On Windows, with PP_HARDWAREACCELERATION_ONLY set everything works as expected - I have hardware accelerated h.264 decode working perfectly on every machine I have tried. I am supplying the Decode() call with complete start-code prefixed (AnnexB) NALs.
On Linux, OS X and ChromeOS, the Decode call returns PP_ERROR_RESOURCE_FAILED after ingest of anywhere between 5 and 15 NALs, and no decoded frames are ever returned. I have read in other posts that OS X in particular has some requirements for supplying the SPS/PPS NALs together with the first I-Frame/IDR. I have tried this approach and it doesn't seem to make any difference - Windows again is fine with these NALs delivered in a single Decode call. Are there other datastream requirements to get this to work on all platforms? And if anyone knows of any other documentation on this it would be much appreciated.
Thanks,
Andrew