Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Lee__Jun-ki
Beginner
200 Views

How do I use QSV by ffmpeg

 

Hello.

I get an error using 'qsv'.

 

-----------------------------------------
ffmpeg -i input.mp4 -vcodec h264_qsv output.mp4
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-16)
  configuration: --prefix=/usr/service --extra-cflags=-I/home/junkl/test/ffmpeg_build/include --extra-ldflags='-fopenmp -L/home/junkl/test/ffmpeg_build/lib -L/usr/lib64' --extra-libs='-lgomp -lgpg-error' --pkg-config-flags=--static --optflags='-O2 -g' --enable-gpl --enable-nonfree --enable-version3 --disable-stripping --enable-frei0r --enable-gmp --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-libsnappy --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-iconv --enable-libxvid --enable-lzma --enable-zlib --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp --enable-libsoxr --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages
XXXXXXXXXX(skip message)
[h264_qsv @ 0x4b93420] No device available for encoder (device type qsv for codec h264_qsv).
[h264_qsv @ 0x4b93420] Error initializing an internal MFX session: unsupported (-3)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0x4c79f40] Qavg: 39017.027
[aac @ 0x4c79f40] 2 frames left in the queue on closing
Conversion failed!
-----------------------------------------

Please teach me step by step.

My system info is ....

CPU : Intel(R) Xeon(R) CPU E3-1275 v6 @ 3.80GHz
VGA :
    00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591d] (rev 04)
    01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106GL [Quadro P2000] [10de:1c30] (rev a1)
OS: LINUX (CentOS Linux release 7.4.1708 (Core))
    Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
MOD: (not found module. by command (lsmod | grep i915) )
ETC: (omitted devel package list)
    libmfx-1.21
    libva-1.2.1
    libdrm-2.4.74
    cairo-1.14.8
    intel-gpu-tools-2.99.917
    xorg-x11-drv-intel
    xorg-x11-drv-intel-2.99.917
    gstreamer1-vaapi-0.6.1

--------------------------------------
# vainfo
error: can't connect to X server!
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit
---------------------------------------

 

PS. 
    How do install MediaServerStudioEssentials2017R3 on CentOS7.4.1708 (not centos 7.2)
    Dose QSV is require X-server?

 

0 Kudos
0 Replies
Reply