Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added libvmaf + support for it in ffmpeg-full #70797

Merged
merged 5 commits into from Oct 25, 2019
Merged

Conversation

cfsmp3
Copy link

@cfsmp3 cfsmp3 commented Oct 8, 2019

#70593 #### Things done

  • Created package libvmaf (Netflix's video quality library)
  • Added myself as a mantainer for it
  • Added libvmaf support to ffmpeg-full

Tested on Ubuntu Linux. Nothing fancy here though, all quite standard.

Notify maintainers

cc @jonringer @Fuuzetsu

@jonringer
Copy link
Contributor

@GrahamcOfBorg build libvmaf ffmpeg-full

@cfsmp3
Copy link
Author

cfsmp3 commented Oct 10, 2019

@jonringer Fuuzetsu Anything else needed from me? (or is there another reviewer I should tag)

@jonringer
Copy link
Contributor

LGTM, I've just been busy. Sorry @marsam does it look good to you?

Copy link
Contributor

@marsam marsam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please disable libvmaf for ffmpeg-full on darwin

diff --git i/pkgs/top-level/all-packages.nix w/pkgs/top-level/all-packages.nix
index 70bd668e4af..7cb69f15a40 100644
--- i/pkgs/top-level/all-packages.nix
+++ w/pkgs/top-level/all-packages.nix
@@ -10802,6 +10802,7 @@ in
     game-music-emu = if stdenv.isDarwin then null else game-music-emu;
     libjack2 = if stdenv.isDarwin then null else libjack2;
     libmodplug = if stdenv.isDarwin then null else libmodplug;
+    libvmaf = if stdenv.isDarwin then null else libvmaf;
     openal = if stdenv.isDarwin then null else openal;
     libmfx = if stdenv.isDarwin then null else intel-media-sdk;
     libpulseaudio = if stdenv.isDarwin then null else libpulseaudio;

Besides that, LTGM

doCheck = true;

makeFlags = [ "INSTALL_PREFIX=${placeholder "out"}" ];

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you need to add:

  postFixup = ''
    substituteInPlace "$dev/lib/pkgconfig/libvmaf.pc" \
      --replace "includedir=/usr/local/include" "includedir=$dev"
  '';

for pkgconfig to find libvmaf


meta = with stdenv.lib; {
homepage = "https://github.com/Netflix/vmaf";
description = "Perceptual video quality assessment based on multi-method fusion (VMAF).";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description should not include a period at the end:

Suggested change
description = "Perceptual video quality assessment based on multi-method fusion (VMAF).";
description = "Perceptual video quality assessment based on multi-method fusion (VMAF)";

@cfsmp3
Copy link
Author

cfsmp3 commented Oct 22, 2019

@marsam sorry for the delay in fixing these things, I've been away a few days. All done.

@marsam
Copy link
Contributor

marsam commented Oct 23, 2019

@GrahamcOfBorg build libvmaf ffmpeg-full

@cfsmp3
Copy link
Author

cfsmp3 commented Oct 25, 2019

@marsam if it looks good, could you merge? thanks

@marsam
Copy link
Contributor

marsam commented Oct 25, 2019

Sorry for the delay. I've disabled ffmpeg-full with libvmaf for aarch64, I hope you don't mind

@GrahamcOfBorg build libvmaf ffmpeg-full

@marsam
Copy link
Contributor

marsam commented Oct 25, 2019

@GrahamcOfBorg build ffmpeg-full

@marsam marsam merged commit 77a5bf5 into NixOS:master Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants