-
-
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
mpv: build with ffmpeg-full #289984
mpv: build with ffmpeg-full #289984
Conversation
This enables support for smb (and possibly other protocols) that mpv advertises native support for, which kio takes it up on.
The primary feature that's missing is Samba support. I'm not sure if enabling it in ffmpeg(-not-full) will work because Samba is GPLv3 poison. |
Currently all ffmpeg variants that we have are build with GPLv3 enabled. |
Should I change this to enabling Samba on ffmpeg-not-full then? |
Should check by how much the closure size increases by enabling samba and if that is not to large, enable it for the small variant of ffmpeg |
oof |
Python3 isn't too bad because that'll be in the closure of most users anyways. I don't know about samba though. Would it be in a typical desktop closure? (i.e. GNOME ISO). If so, that'd probably be fine. |
As for this PR's goal: MPV has a wrapper anyways right? Would it not be possible to build in a mechanism to supply your desired ffmpeg there? If someone needed smb support in MPV for some odd reason, they'd be able to just select ffmpeg-full themselves. |
For Plasma, yes. For GNOME, can't really say. |
No, it uses ffmpeg as a library. We could have an mpvFull though. |
As a user of MPV myself, I really wouldn't want mpv to depend on ffmpeg-full by default. As a maintainer of ffmpeg, I'm wary of closure size increases for niche features. I checked Arch's ffmpeg and it also doesn't include samba support. Given its niche, I don't think it's reasonable to have in the small variant. I'd rather see this solution or adding smb support in default ffmpeg as last resorts if other (more appropriate) solutions aren't workable:
|
Another option would be to just patch the .desktop file to make it not claim smb support. |
That way, kio will run the file through a FUSE filesystem instead of passing a direct smb:// URL to mpv, which will be slower, but hopefully not by much? |
Done that: #290009 |
This enables support for smb (and possibly other protocols) that mpv advertises native support for, which kio takes it up on.
Description of changes
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.