On 23/01/18 05:05, Li, Zhong wrote: >> From: libav-devel [mailto:[email protected]] On Behalf Of Mark >> Thompson >> Sent: Monday, January 22, 2018 9:19 PM >> To: [email protected] >> Subject: Re: [libav-devel] qsv: How about replace software parsers with >> MFXVideoDECODE_DecodeHeader >> >> ... >> >> PS: Feel free to ignore anything I say about qsvdec - I regard qsvdec as >> deprecated, because nowadays I find that using the platform API hwaccels >> (DXVA2/VAAPI) and mapping back if necessary is just more flexible and better >> supported. (Though it would be nice if libmfx encode supported D3D11 >> array textures too...) > > Thanks very much for your detail reply and I'm appreciated for your comments. > IIUC, surface sharing between libmfx and vaapi hasn't be supported, and I'm > not sure it can be done since the release version of MSDK is using a private > libva (instead of upstream libva.)
This interop already works and has done so for a while with the proprietary drivers. I'm not next to a suitable machine so this command may be subtly wrong, but on Linux with proprietary Media SDK you can do things like: avconv -hwaccel vaapi -hwaccel_output_format vaapi -i input.mp4 -vf 'scale_vaapi=1280:720,hwmap=derive_device=qsv,format=qsv' -c:v h264_qsv -b:v 5M output.mp4 On Windows, there is similarly: avconv -hwaccel dxva2 -hwaccel_output_format dxva2_vld -i input.mp4 -vf 'hwmap=derive_device=qsv,format=qsv' -c:v h264_qsv -b:v 5M output.mp4 (There aren't any generic filters for D3D9, though.) OpenCL interop also works on both platforms for intermediate processing. > The good news is opensource MSDK on github has been updated with upstream > libva (and iHD driver has removed the dependency for linux kernel patches), > but still needs time to make sure it is stable. Yeah, I've looked at it and done some investigation (and sent some patches), but indeed it does need a bit more time to clean up all of the setup to work as well as the i965 driver. The fact that it doesn't work on any current-generation machines (Kaby Lake / Coffee Lake) is also something of a pain. - Mark _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
