ffmpeg: switch to ffmpeg_5#156705
Conversation
* Keep opencv{2,3,4} on ffmpeg_4 as upstream hasn't updated yet.
See [1].
* Remove libavresample from ffmpeg-full, as it was removed in 5.0.
[1]: opencv/opencv#21455
For the DASH and IMF demuxers.
|
ping on this? |
|
Looks like it broke at least |
|
In the case of |
|
Submitted for |
|
Also |
|
My naive grep shows that at least the following ~220 attributes use ffmpeg directly. Trying to build them against
|
|
I suspect that it's a bit early to switch the default to 5, meaning that it might need lots of work to fix everything.
|
|
Collected full list of failures i could find: ~75 packages: #156705 (comment) |
|
I'm likely to revert the default bump, tired of going through failing builds and pinning the build to 4 |
|
The better upgrade path will likely be to just bump ffmpeg to major version which upstream supports |
|
I partially reverted this in 4861bef In the future, packages which link against ffmpeg should probably be pinned to a major version. It doesn't make sense having broken builds when wanting to increment ffmpeg |
Probably for the best. In that case, can I suggest we have a so users can always have the latest version of the command line tool? Then tools that only need the CLI (e.g. youtube-dl and navidrome) can just use that. |
can we document this in {
ffmpeg_4 = callPackage ../development/libraries/ffmpeg/4.nix {
inherit (darwin.apple_sdk.frameworks) Cocoa CoreMedia VideoToolbox;
};
ffmpeg_5 = callPackage ../development/libraries/ffmpeg/5.nix {
inherit (darwin.apple_sdk.frameworks) Cocoa CoreMedia VideoToolbox;
};
# Aliases
# Please make sure this is updated to the latest version on the next major
# update to ffmpeg
# Packages which use ffmpeg as a library, should pin to the relevant major
# version number which the upstream support.
ffmpeg = ffmpeg_4; |
Motivation for this change
Switching to FFmpeg 5.0
Things done
sandbox = trueset 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.shto update generated release notes