Getting FFmpeg QSV Intel ARC Video Card Working: A Comprehensive Guide
If you're looking to compress videos but find that GUI tools like Handbrake or StaxRip software encoding take too long, you might want to consider using FFmpeg with Intel's Quick Sync Video (QSV) technology on your ARC video card. In this guide, we'll show you how to get FFmpeg QSV working on your Intel ARC video card for faster video compression.
What is FFmpeg QSV?
FFmpeg is a powerful, open-source multimedia framework that can handle a wide range of video and audio formats. QSV is a hardware-accelerated video encoding and decoding technology developed by Intel. By using FFmpeg with QSV, you can offload the video encoding process to your Intel ARC video card, resulting in faster compression times.
Setting Up FFmpeg QSV on Intel ARC Video Card
To get started, you'll need to make sure that your system meets the following requirements:
- Intel ARC video card with QSV support
- FFmpeg build with QSV support
- Intel Media SDK
Once you've confirmed that your system meets the requirements, you can follow these steps to set up FFmpeg QSV on your Intel ARC video card:
- Download and install the latest version of the Intel Media SDK from the Intel website.
- Download a FFmpeg build with QSV support from FFmpeg's download page. Make sure to choose a build that matches your system's architecture (32-bit or 64-bit).
- Extract the FFmpeg build to a directory of your choice.
- Open a command prompt and navigate to the directory where you extracted FFmpeg.
- Run the following command to verify that FFmpeg can detect your Intel ARC video card:
ffmpeg -hwaccel_device 0 -hwaccel qsv -f lavfi -i testsrc=duration=10 -If FFmpeg can detect your Intel ARC video card, you should see a message similar to the following:
[graph 0 input from stream 0:0 @ 0000026b8d8c5fc0] Setting 'pix\_fmt' to 'nv12'Compressing Videos with FFmpeg QSV
Now that you've set up FFmpeg QSV on your Intel ARC video card, you can use it to compress videos. Here's an example command that you can use to compress a video using FFmpeg QSV:
ffmpeg -hwaccel qsv -i input.mp4 -c:v h264\_qsv -preset slow -crf 23 output.mp4In this command, the
-hwaccel qsvoption enables QSV hardware acceleration, the-i input.mp4option specifies the input video file, the-c:v h264\_qsvoption specifies the H.264 QSV codec, the-preset slowoption sets the encoding preset to slow (resulting in better compression), and the-crf 23option sets the constant rate factor to 23 (resulting in a balance between compression and quality).In this article, we've covered the basics of FFmpeg QSV and how to use it to compress videos on an Intel ARC video card. By using FFmpeg QSV, you can take advantage of your video card's hardware acceleration capabilities to speed up the video compression process.
References