Sudo apt-get -y install autoconf automake build-essential libass-dev libtool pkg-config texinfo zlib1g-dev libva-dev cmake mercurial libdrm-dev libvorbis-dev libogg-dev git libx11-dev libperl-dev libpciaccess-dev libpciaccess0 xorg-dev intel-gpu-tools libwayland-dev xutils-dev libssl-dev Sudo apt update & sudo apt -y upgrade & sudo apt -y dist-upgrade I noticed that you're on Ubuntu 18.04 LTS, so these instructions will do: I'll document the steps needed to derive an FFmpeg build with the features you require (QuickSync) with support for extra codecs as may be needed, with extra notes on using the correct driver below: The correct driver should be set to the intel media driver, iHD, as you're using the Media SDK for QuickSync and not the VAAPI-based encoders. That occurs because you're using the wrong VAAPI driver for QuickSync. Pay attention to the output from the console: VAAPI driver: Intel i965 driver for Intel(R) Skylake - 2.1.0. mpeg2_qsv MPEG-2 video (Intel Quick Sync Video acceleration) (codec mpeg2video) mjpeg_qsv MJPEG (Intel Quick Sync Video acceleration) (codec mjpeg) hevc_qsv HEVC (Intel Quick Sync Video acceleration) (codec hevc) h264_qsv H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264) If I do ffmpeg -encoders | grep qsv I get the following: V. Using this processor: model name : Intel(R) Xeon(R) CPU E3-1578L v5 2.00GHz Useful info about my ffmpeg build: ffmpeg version N-93636-g6829c3c Copyright (c) 2000-2019 the FFmpeg developersīuilt with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)Ĭonfiguration: -prefix=/root/ffmpeg_build -pkg-config-flags=-static -extra-cflags=-I/root/ffmpeg_build/include -extra-ldflags=-L/root/ffmpeg_build/lib -extra-libs='-lpthread -lm' -bindir=/root/bin -enable-gpl -enable-libass -enable-libfdk-aac -enable-libfreetype -enable-libmp3lame -enable-libopus -enable-libvorbis -enable-libvpx -enable-libx264 -enable-libx265 -enable-libmfx -enable-nonfree I was expecting ffmpeg to encode my video using a hw accelerated h264 encoder via Intel QuickSync. Error initializing an MFX session: -3.įailed to set value 'qsv=hw' for option 'init_hw_device': Unknown error occurredĮrror parsing global options: Unknown error occurred Driver not found in known nonstandard list, using standard behaviour. VAAPI driver: Intel i965 driver for Intel(R) Skylake - 2.1.0. Initialised VAAPI connection: version 1.1 libva: Found init function _vaDriverInit_1_1 libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so Opened VA display via DRM device /dev/dri/renderD128. matched as output url.Īpplying option loglevel (set logging level) with argument debug.Īpplying option init_hw_device (initialise hardware device) with argument qsv=hw. matched as AVOption 'framerate' with argument '30'. matched as option 'b' (video bitrate (please use -b:v)) with argument '15M'. matched as option 'vf' (set video filters) with argument '-c:v'. matched as input url with argument 'normal-desktop-use-1440p.mkv'. matched as option 's' (set frame size (WxH or abbreviation)) with argument '2560x1440'. matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'. matched as option 'f' (force format) with argument 'rawvideo'. matched as option 'filter_hw_device' (set hardware device used when filtering) with argument 'hw'. matched as option 'init_hw_device' (initialise hardware device) with argument 'qsv=hw'. matched as option 'loglevel' (set logging level) with argument 'debug'. I get the following error: Splitting the commandline. Ffmpeg -init_hw_device qsv=hw -filter_hw_device -f rawvideo -pix_fmt yuv420p -s:v 2560x1440 -i normal-desktop-use-1440p.mkv -c:v h264_qsv.
0 Comments
Leave a Reply. |