Package Details: ffmpeg-v4l2-request-git 2:6.0.r329749-2

Git Clone URL: (read-only, click to copy)
Package Base: ffmpeg-v4l2-request-git
Description: FFmpeg with v4l2-request and drmprime
Upstream URL:
Licenses: GPL3
Conflicts: ffmpeg
Provides: ffmpeg,,,,,,,,
Submitter: AndreVallestero
Maintainer: ericwoud (yatli)
Last Packager: ericwoud
Votes: 2
Popularity: 0.145469
First Submitted: 2020-02-14 18:09 (UTC)
Last Updated: 2023-06-03 09:12 (UTC)

Required by (1848)

Sources (2)

Latest Comments

1 2 Next › Last »

ericwoud commented on 2023-06-03 09:15 (UTC)

@yatli Thanks a lot. I've implemented your changes and added the separate 4.4 package. Also added deinterlace to the 4.4 version. I added your name as contributor if you do not mind.

yatli commented on 2023-05-03 10:08 (UTC)

@ericwoud good news, the official ffmpeg (v6) and ffmpeg4.4 can now coexist. See my pkgbuilds here:

yatli commented on 2022-12-17 13:19 (UTC)

@ericwoud The versioning problem stems from ALARM having packages that depending on ffmpeg vs. ffmpeg4. They're essentially both ffmpeg but ffmpeg package has higher epoch value so you cannot have them side-by-side. When you pull in a package that depends on ffmpeg4, the dep solver will decide to uninstall ffmpeg-v4l2-request-git.

currently my PKGBUILD looks like this:

provides=('' '' '' ''
          '' '' '' ''

I first install ffmpeg, and then ffmpeg-v4l2-request-git and allow it to overwrite the libraries. The system is then tricked to believe that both ffmpeg and ffmpeg4 are installed. Hacky hacky!

I mainly tested with mpv and moonlight (game streaming), but there are also a few other packages (sublime music, VLC etc.) that depends on ffmpeg (v5) but work fine with this b uild.

mpv has to be built locally because it statically links with some ffmpeg stuff.

Guess it's similar for chromium, but I haven't successfully build it yet, after a few trials.

ericwoud commented on 2022-12-16 11:15 (UTC)

I've noticed there are also new branches:

  • v4l2-request-n5.1.2
  • v4l2-drmprime-n5.1.2

Which one could edit in the pkgbuild and try it. I have not yet tested this version, so for now I leave the PKGBUILD as it is at 4.4.1

ericwoud commented on 2022-12-16 11:07 (UTC) (edited on 2022-12-16 11:35 (UTC) by ericwoud)


I only have experience using this ffmpeg from command line and using it together with kodi. I've added kodi-ext-git to the AUR, it uses all libraries externally, including ffmpeg. That kodi package will therefore use this ffmpeg package.

What do you exactly suggest changing about the ffmpeg4 provides? I have been running in to dependency problems also myself, but have not created so many packages, so I'm not sure what I'm missing there.

I think it may work better if I use the following for pkgver (from: ffmpeg-git AUR package) or at least something similar, as there are 2 branches joined

pkgver() {
    printf '%s.r%s.g%s' "$(git -C ffmpeg describe --tags --long | awk -F'-' '{ sub(/^n/, "", $1); print $1 }')" \
                        "$(git -C ffmpeg describe --tags --match 'N' | awk -F'-' '{ print $2 }')" \
                        "$(git -C ffmpeg rev-parse --short HEAD)"

Then it should show up as version 4.

yatli commented on 2022-12-16 06:56 (UTC)

Hi Eric,

Are you referring to the chromium OS? I was talking about the browser and not sure what was the 'kernel' you mentioned. :)

If I understand this correctly, chromium browser can leverage this the same way video players like mpv does it, right? Currently chromium only does gpu-based decoding. It seems there's also V4L2 driver for Chromium: -- but I think that's a different approach, not through ffmpeg.

Also, may I suggest this package also provides ffmpeg4? A few other packages depend on that but I have tested them against this version and it works.

ericwoud commented on 2022-12-11 11:42 (UTC)

The source is specifically written for mainline kernel. Chromium kernel is very different on this part.

yatli commented on 2022-12-11 04:55 (UTC)

Any ideas how to build chromium against this and enable hardware decoding?

ericwoud commented on 2022-09-27 07:25 (UTC)

Thanks to Jernej Škrabec for the patched ffmpeg on github. This is the same source from where LibreElec builds it's ffmpeg for kodi.

This version of FFmpeg can play on RockChip devices with HW support, using only mainline Linux kernel.

ericwoud commented on 2022-09-26 06:23 (UTC)

Moved on to new github repo.

Merged with the drmprime branch, as you need this also for use with Kodi.