Skip to content

nixos/epgstation: add a new option 'ffmpeg'#187120

Closed
midchildan wants to merge 1 commit intoNixOS:masterfrom
midchildan:feat/add-epgstation-ffmpeg-option
Closed

nixos/epgstation: add a new option 'ffmpeg'#187120
midchildan wants to merge 1 commit intoNixOS:masterfrom
midchildan:feat/add-epgstation-ffmpeg-option

Conversation

@midchildan
Copy link
Member

Description of changes

This option sets the preferred ffmpeg package for use by the epgstation module.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Aug 17, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Aug 17, 2022
};

ffmpeg = lib.mkOption {
default = pkgs.ffmpeg-full;
Copy link
Member

@mweinelt mweinelt May 20, 2023

Choose a reason for hiding this comment

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

Does it require ffmpeg-full or could it do with e.g. ffmpeg-headless?

The closure size difference is striking. 1.05 GB vs 169 MB.

Copy link
Member Author

Choose a reason for hiding this comment

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

Practically, it's required for performance reasons. EPGStation streams videos, so it needs hardware accelerated encoding to get acceptable performance. ffmpeg-headless drops support for those, which is a deal breaker for this use case.

Copy link
Member

Choose a reason for hiding this comment

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

Hardware acceleration usually comes via VAAPI or VDPAU/NVENC/NVDEC, all of which are support by ffmpeg-headless, so I'm not sure what you are missing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I missed that. Last time I checked, ffmpeg-headless didn't support libmfx and I misremembered that as not having support for hardware acceleration in general.

I'll fix it in #233053.

Copy link
Member

Choose a reason for hiding this comment

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

This should use mkPackageOption

@midchildan midchildan marked this pull request as draft May 20, 2023 22:38
@midchildan
Copy link
Member Author

I turned this PR to draft because it's now included in #233053.

@SuperSandro2000
Copy link
Member

Since the PRs already exist, I think all PRs would be merged faster if you wouldn't have combined them, keeping the scope of each one a bit smaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants