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 package libvmaf. #70692

Closed
wants to merge 8 commits into from
Closed

Added package libvmaf. #70692

wants to merge 8 commits into from

Conversation

cfsmp3
Copy link

@cfsmp3 cfsmp3 commented Oct 8, 2019

Motivation for this change

VMAF is netflix's video quality scoring library.
FFmpeg supports it as a build option. This is the first of two PR - the 2nd being of course for FFmpeg itself.

Things done

Created package file. Tested on Linux (Ubuntu). It's a standard build though, nothing fancy here.

Nothing pre-existing depends on this package, but I've tested of course that FFmpeg builds with it when the relevant option is enabled.

Added myself as a maintainer.

Followed the contribution guide as best as I could.

@jonringer
Copy link
Contributor

please refactor the addition of you as a maintainer into a separate commit :)
should be:

maintainers: add cfsmp3
libvmaf: init at <version>
ffmpeg-full: Add lbvmaf support

Comment on lines +15 to +17
installPhase = ''
make INSTALL_PREFIX=$out install
'';
Copy link
Contributor

Choose a reason for hiding this comment

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

this is the default install phase, you can remove

Copy link
Author

Choose a reason for hiding this comment

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

@jonringer Are you sure? Without passing that INSTALL_PREFIX as a parameter to make like that it installs in /usr/local

Copy link
Contributor

@jonringer jonringer Oct 8, 2019

Choose a reason for hiding this comment

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

I apologize, make PREFIX=${placeholder "out"}" install is the default installPhase. what I meant was

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

pkgs/development/libraries/libvmaf/default.nix Outdated Show resolved Hide resolved
sha256="13ajbcidngjvgl0rr7l0mb43h651p5pqj3d1linrfk9c222b9fs3";
};

buildInputs = [ autoconf automake intltool libtool pkgconfig ];
Copy link
Contributor

Choose a reason for hiding this comment

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

if they are just needed for the build, then they should be nativeBuildInputs. buildInputs is usually for package that you need to link against for runtime.

Suggested change
buildInputs = [ autoconf automake intltool libtool pkgconfig ];
nativeBuildInputs = [ autoconf automake intltool libtool pkgconfig ];

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, you could probably replace all of that with [ autoreconfHook pkgconfig ];

pkgs/development/libraries/libvmaf/default.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/libvmaf/default.nix Outdated Show resolved Hide resolved
rev = "v${version}";
sha256="13ajbcidngjvgl0rr7l0mb43h651p5pqj3d1linrfk9c222b9fs3";
};

Copy link
Contributor

Choose a reason for hiding this comment

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

not a big deal, but i would also add multiple outputs

  outputs = [ "out" "dev" ];

cleans up the outputs a bit, but not by much

cfsmp3 and others added 3 commits October 8, 2019 08:06
Co-Authored-By: Jon <jonringer@users.noreply.github.com>
libvmaf: init at 1.3.15
ffmpeg-full: Add libvmaf support

Co-Authored-By: Jon <jonringer@users.noreply.github.com>
@cfsmp3
Copy link
Author

cfsmp3 commented Oct 8, 2019

I'll create a new one shortly - this is becoming a mess

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