-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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 libplacebo #197979
ffmpeg: add libplacebo #197979
Conversation
c574cd2
to
fe596f9
Compare
fe596f9
to
c6cf67d
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/1812 |
@@ -86,6 +86,7 @@ | |||
, libogg ? null # Ogg container used by vorbis & theora | |||
, libopenmpt ? null # Tracked music files decoder | |||
, libopus ? null # Opus de/encoder | |||
, libplacebo ? null # libplacebo video processing library |
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.
Please do not add new variants of inputs that use null to be disabled.
c6cf67d
to
a77904a
Compare
Rebased on top of the recent ffmpeg changes. |
How can I test this? |
Here's a simple gamma correction example that works for me: $ ffmpeg -y -i INFILE.mp4 -init_hw_device vulkan -vf hwupload,libplacebo=gamma=2,hwdownload,format=yuv420p out.mp4 My input is H264 inside an MP4 container; hardware is AMD Ryzen 7 4750U. |
a77904a
to
4e4fb2c
Compare
Please rebase after the major ffmpeg refactor |
4e4fb2c
to
59d2de7
Compare
This PR rebuilds a lot of packages which means we must target staging. Please follow the contributing guide to not potentially ping a lot of people. |
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 was able to set gamma to something stupid using the command above.
Please target staging though as @SuperSandro2000 mentioned.
The base commit was in staging already, I could simply change the base. |
Description of changes
Enables libplacebo support for
ffmpeg-full
5.0 and up.Tested via a pre-release version of Jellyfin via jellyfin-ffmpeg: libplacebo-based filtering added in jellyfin/jellyfin#7708 seems to work as expected.
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes