-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
ffmpeg: add avs2/3 options #337010
base: staging
Are you sure you want to change the base?
ffmpeg: add avs2/3 options #337010
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to submit this review... ^^'
postInstall = lib.optionalString (!stdenv.hostPlatform.isStatic) '' | ||
rm $lib/lib/*.a | ||
''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we normally delete static libraries entirely like this? I thought isStatic
was about whether executables were linked statically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it was about both static libraries and executables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff LGTM and I think everything past this point is isn't effort well spent.
cd build/linux | ||
|
||
# When setting this over `env.AS` it gets ignored | ||
export AS=${lib.getExe buildPackages.nasm} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add nasm
to nativeBuildInputs
instead, and then unset AS
here. This worked in my local testing.
Note that nasm will probably only work for x86/x86_64 systems, so perhaps guard this behind stdenv.hostPlatform.isx86
The reason why env.AS
didn't work, is that stdenv sets its own value during build/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prior art:
nixpkgs/pkgs/by-name/x2/x264/package.nix
Lines 34 to 36 in f17c1d5
preConfigure = lib.optionalString stdenv.hostPlatform.isx86 '' | |
# `AS' is set to the binutils assembler, but we need nasm | |
unset AS |
# When setting this over `env.AS` it gets ignored | ||
export AS=${lib.getExe buildPackages.nasm} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Description of changes
Adds support for de-/encoding of avs2 and decoding of avs3.
Can be tested with the following commands.
Samples can be found at https://github.com/xatabhk/avs2-avs3-video-samples
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.