签署人: Jeffrey McAllister
已发布:01/31/2017 最后更新时间:01/31/2017
Intel hardware accelerated codecs are now accessible via FFmpeg* on Linux* systems where Intel® Media Server Studio is installed. The same OS and platform requirements apply, as the new additions to FFmpeg are simple wrappers to bridge the APIs. For more information on Intel Media Server Studio requirements please see the Release Notes and Getting Started Guide.
To get started:
ffmpeg -i in.mp4 -vcodec h264_qsv out_qsv.mp4
Additional configure info:
The *_qsv codecs are enabled with "configure --enable-libmfx --enable-nonfree".
A few additional steps are required for configure to work with Intel Media Server Studio codecs.
1. copy the mediasdk header files to include/mfx
# mkdir /opt/intel/mediasdk/include/mfx
# cp /opt/intel/mediasdk/include/*.h /opt/intel/mediasdk/include/mfx
2. provide a libmfx.pc file. Same search rules apply as for other pkg-config configurations. A good place to start is the same directory as an already findable config like libdrm.pc, but the PKG_CONFIG_PATH environment variable can be used to customize the search path.
example libmfx.pc file
prefix=/opt/intel/mediasdk
exec_prefix=${prefix}
libdir=${prefix}/lib/lin_x64
includedir=${prefix}/include
Name: libmfx
Description: Intel Media SDK
Version: 16.4.2
Libs: -L${libdir} -lmfx -lva -lstdc++ -ldl -lva-drm -ldrm
Cflags: -I${includedir} -I/usr/include/libdrm
Validation notes:
While this solution is known to work on a wide variety of systems, here are the most tested configurations:
Hardware |
Intel® Xeon® Processors and Intel® Core™ Processors with support for Intel® Quick Sync Video |
OS | CentOS7.2 (3.10.0-327.36.3.el7.x86_64) |
Software | Gold CentOS install of Intel® Media Server Studio 2017 R2 |
性能因用途、配置和其他因素而异。请访问 www.Intel.com/PerformanceIndex 了解更多信息。