1. Install the LINXU version of Intel Media Server Studio
Operating system: CentOS Linux release 7.2.1511 (Core) Download Intel Media Server Studio 2017, refer to Media Server Studio Getting Started guide using I nstall_sdk_centos.sh for installation; Test with Vainfo, test with sample, and install if error-free 2. Install the compilation FFmpegDownload FFmpeg, requires a version of 2.8 to support Intel Quick Sync Video Installation Reference Document Quicksync-video-ffmpeg-install-valid configuration ffmpeg (–enable-libmfx– Enable-nonfree), compile, install: You need to copy the header file to the/opt/intel/mediasdk/include/mfx directory, and add the libmfx.pc file. Installing LIBPCIACCESS:APT install *pciaccess* reload libdrm and LIBVA to see if the compilation was successful: Ffmpeg-codecs | grep QSV uses H264_QSV for transcoding debugging:
Ffmpeg-hwaccel qsv-c:v h264_qsv-vsync 0-i udp://224.2.2.2:9000-look_ahead 0-pix_fmt nv12-c:v h264_qsv-c:a copy-b: V 2m-preset veryfast-f Mpegts udp://127.0.0.1:10000
2.QSV codec in FFmpeg
2.1. Command
Ffmpeg-codecs | grep QSV
2.2.decoders
H264_QSV supported pixel formats:nv12 p010le QSV
hevc_qsv supported pixel formats:nv12 p010le
qsv MPEG2_QSV supported pixel formats:nv12 qsv
vc1_qsv supported pixel formats:nv12 QSV
2.3.encoders
H264_QSV supported pixel formats:nv12 qsv
hevc_qsv supported pixel formats:nv12 qsv
mpeg2_qsv Supported Pixel FORMATS:NV12 QSV
2.4.pixel Formats
Yv12:yuv420planar,y,v (CR), U (CB) occupies 3 planar, the first v after U
iyuv,i420:yuv420planar,y,u (CB), V (CR) occupies 3 planes in turn, the opposite of the YV12 U, v plane order , first u after V;
nv12:yuv420 Semi Planar, Y,u (Cb) V (Cr) occupies 2 planes in turn, followed by UV occupy a plane, first U again V staggered a plane.
nv21:yuv420 Semi Planar, Y,v (Cr) U (Cb) occupies 2 planes in turn, in contrast to the UV interleaving order in the NV12 UV interleaving plane, which is followed by Vu occupying a plane, first V and then U staggered.
Reference
Intel_media_developers_guide
Integrating-intel-media-sdk-with-ffmpeg-for-muxdemuxing-and-audio-encodedecode-usages
Cloud-computing-quicksync-video-ffmpeg-white-paper
Quicksync-video-ffmpeg-install-valid