I'm using Media SDK 126.96.36.19971 on a Sandybridge machine.
I can get sample_encode h264 -i in.yuv -o out.264 to work. However, I get an error if I append the -hw argument, as described in this earlier thread
Return on error : .\\src\\pipeline_encode.cpp 638
Return on error : .\\src\\sample_encode.cpp 281
I've already tried reinstalling the SDK, and I noticed that there is no libmfxhw64-*.dll under .\\bin\\x64. Is it supposed to be there? How can I get -hw working?
Sorry that you are still having trouble enabling hardware acceleration. Here are a few more things to try:
1. Are you running the pre-built samples? Alternately, are your builds from unmodified sample code? Changes to the version settings in CEncodingPipeline::Init (pipeline_encode.cpp)could cause behavior like you are seeing.
2. Have you double checked in the Device Manager that there is only one display adapter? There are some scenarios where the presence of additional adapters might not be obvious.
3.Whichversion of Windowsare you using? Is the OS 64 or 32 bit? How about the driver and Media SDK? If you are building the samples in a 64 bit environment, do Win32 and x64 buildsboth have problems starting the hardware implementation?
4. Though the driver you have is probably OK, a newer version is available via the Intel Download Center (http://downloadcenter.intel.com/default.aspx).
To manually verify that the hardware library for MSDK 3 Beta 2 is installed (assuming 64 bit)
- Check HKEY_LOCAL_MACHINE\SOFTWARE\Intel\MediaSDK\Dispatch\hw64-??-?. There may be a similar 32 bit entry under Wow6432Node.
- The Path key should point to a subdirectory of C:\Program Files\Common Files\Intel\Media SDK. This subdirectory should contain the hardware library (i.e. libmfxhw64-i1.dll). You should also see DLLs for H.264 and mpeg2 decode/encode, as well as VC-1 decode and VPP.
Keep in mind thatMSDK 3is a beta preview, not intended for production use. This information maynot be valid forfuture releases.
Please let us know what you find.
I've tried both prebuilt samples and builds from unmodified sample code. For compiling I use Visual Studio 2010, which converted the VS projects into a newer format.
Device manager shows only one display adapter - Intel HD Graphics Family.
I'm using the 64-bit version of Windows 7.
In the registry,under HKLM\SOFTWARE\Intel\MediaSDK, there is only one folder ...\MediaSDK\3.0.332.30303. I cannot find ...\MediaSDK\Dispatch.
Also, during installation of the Media SDK, I got an error that said something about the installer unable to set DSHOW_BASECLASSES_PATH variable in the system environment. Not sure if it is related..
Thanks for all the help so far.