Package Details: ffmpeg-qsv-git 4.3.r94961.g1d86e4b3eb-1

Git Clone URL: (read-only, click to copy)
Package Base: ffmpeg-qsv-git
Description: Complete solution to record, convert and stream audio and video (with Intel Quick Sync Video hardware acceleration, git version)
Upstream URL:
Keywords: hwaccel intel qsv quicksync
Licenses: GPL3
Conflicts: ffmpeg
Provides: ffmpeg, ffmpeg-git, ffmpeg-qsv,,,,,,,,
Submitter: epitron
Maintainer: dbermond
Last Packager: dbermond
Votes: 3
Popularity: 0.000004
First Submitted: 2017-02-22 07:10
Last Updated: 2019-09-18 18:57

Dependencies (55)

Required by (972)

Sources (1)

Latest Comments

TheGentlChainsaw commented on 2019-10-22 03:36

Can you please add as a dependency? Most other ffmpeg PKGBUILDs on the AUR, and even the upstream ffmpeg package in extra, are built against dav1d now, so it seems like a bit of an oversight not to have it here.

dbermond commented on 2019-07-24 20:47

@Schlaefer It looks like that ffmpeg-qsv is currently linking against the wrong file, as it's using libmfx in depends. Its maintainer is already aware of the problem.

This package builds in the correct way. That's because it works for you and ffmpeg-qsv does not.

As you need ffmpeg with multiple additional features, I suggest you to use ffmpeg-full instead of manually editing the PKGBUILD here.

Schlaefer commented on 2019-07-17 20:29


Thanks for your answer (and this package).

For context: I usually use ffmpeg-qsv, which is broken for me currently (I guess because of the latest intel-media-driver update). Whatever the case, I assumed this package will work, and it does, except for audio encoding.

My go-to line is

ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -i <in> -vf hwupload=extra_hw_frames=64,format=qsv' -c:v hevc_qsv -q 22 -c:a libfdk_aac -vbr 5 <out>

but libfkd_aac isn't available and bitrate limiting audio with another encoder (aac) doesn't seem to work, essentially rendering qsv unfeasible if you don't just pass through audio.

PS: Adding "--enable-libfdk_aac" to this PKDBUILD solved my issues.

dbermond commented on 2019-07-16 21:18

@Schlaefer This is not the purpose of the package.

For this type of functionality (support for qsv + fdk_aac codecs), you should use another package like ffmpeg-full-git.

Schlaefer commented on 2019-07-16 09:30

It would be nice if the build would include libfdk-aac.

dbermond commented on 2019-02-06 01:50

@danboid I'm not sure about what you are referring as the 'foss qsv driver'. intel-media-sdk and intel-media-driver are already open source.

Regarding ffmpeg commands, this will work nice to encode something to h264 using qsv:

$ ffmpeg -i <input> -codec:a copy -codec:v h264_qsv -preset:v medium -rdo 1 -qscale:v 5 -look_ahead 0 -pix_fmt nv12 <output>

There are many ffmpeg options that you can use and tweak. Please refer to some specific forum for help on using ffmpeg command line.

danboid commented on 2019-02-04 18:47

Hi dbermond

Thanks for maintaining this PKGBUILD!

Have you considered creating a ffmpeg qsv PKGBUILD that doesn't use intel-media-sdk? Or, how would I modify this PKGBUILD to build ffmpeg using the FOSS qsv driver? I ask because I have read that the FOSS version of the qsv encoder is more forgiving regarding the input files than when using the official intel media libraries.

I'd also be interested to see any example ffmpeg commands for transcoding from one variety of 4K h264 to a qsv encoded 4K h264 file. I'm hoping that in doing so I can save some disk space. Ideally with both the decoding and encoding being qsv accelerated.

A working example of transcoding from 4K h264 to 1080 h264 using qsv would be great too, if you have one, as I think a lot of people would want to do that too.

dbermond commented on 2018-10-05 02:13

Important note:

  • in short: the next time you update your system, use this command: # pacman -Syu intel-media-driver. If you're using intel-media-driver-git you're not affected and you can skip this note.

  • the long story: intel-media-driver is now in the [community] official repository (it is a dependency of intel-media-sdk, which in turn is a dependency of this package). intel-media-driver from the official repository changed the pkgver major number, causing it to be seen as a downgrade by pacman (and AUR helpers of course). This means that pacman will not automatically pull/install intel-media-driver from official repositories when you simply use the usual -Syu. You need to manually specify intel-media-driver alongside with the -Syu command as shown above.

dbermond commented on 2018-05-11 23:53

I've fixed the package. It's now building fine.

VerruckteFuchs commented on 2017-10-19 03:32

There's been a change with hardening-wrapper that you'll need to address so ffmpeg-qsv-git installs properly.