Merge ~soumyadghosh/mpv-snap:main into mpv-snap:main

Proposed by Soumyadeep Ghosh
Status: Work in progress
Proposed branch: ~soumyadghosh/mpv-snap:main
Merge into: mpv-snap:main
Diff against target: 357 lines (+147/-130)
2 files modified
mpris.patch (+13/-0)
snapcraft.yaml (+134/-130)
Reviewer Review Type Date Requested Status
Sameer Sharma Needs Information
Review via email: mp+453775@code.qastaging.launchpad.net

Commit message

Enhancements to mpv snap.

Description of the change

The changes are listed below

1. Using ffmpeg-sdk for ffmpeg
2. Removed the dependence of mesa-core22 as not needed
3. Added support for mpris
4. Added support for screen inhibit control in gnome-wayland(previously missing)

Tested in 2 different machines with gnome and xfce in both the machines. Works perfectly.

To post a comment you must log in.
Revision history for this message
Soumyadeep Ghosh (soumyadghosh) wrote :

Will add shaderc asap.

Revision history for this message
Sameer Sharma (capecrusader-121) wrote (last edit ):

Hey there thanks for checking out, i have briefly checked this MR and here is my conclusion.

1) -1 from me for using the external ffmpeg content snap for now as i believe its just an extra 62 mb on the snap plus i believe it needs more time to get mature and get community attention, also having it under snapcrafters community etc. would have been desirable.

Currently i believe ffmpeg can be bundled with snap itself and i can overlook it although i do appreciate the incentive for a common ffmpeg-sdk for snaps.

2) Can you explain the patches you have applied ? I am generally not comfortable with downstream tweaking of upstream code as it just increases maintenance & responsibility overload and isn't desirable.

3) I do agree that we can drop reliance on mesa-content snap but i believe i will do it separately to let this MR remain open for consideration in the future.

4) Also the snap has screen-inhibit-plug already applied i am not sure what you meant to say in the 4th point, can you explain it a bit , i mean why the snapcraft plug won't work in gnome-wayland ?

https://git.launchpad.net/mpv-snap/tree/snapcraft.yaml?h=main#n56

5) I do agree that the mpris currently doesn't work in mpv as confirmed by playerctl, and hence i will look it ASAP in the future.

Overall this MR brings some hostile changes and hence needs more scrutiny.

P.S. I think this MR may also fit for celluloid snap too since it's also based upon mpv, maybe ?

review: Needs Information
Revision history for this message
Soumyadeep Ghosh (soumyadghosh) wrote :

2) It's the patch make to mpris work with the snap desktop file, as the desktop file name in the snap is not mpv but mpv_mpv just same as any other snap.

4) "This is needed because neither mpv supports GNOME's inhibition protocol, nor GNOME supports the standard inhibition protocol (yet)."
https://github.com/Guldoman/mpv_inhibit_gnome#mpv_inhibit_gnome

Revision history for this message
Sameer Sharma (capecrusader-121) wrote :

Hey there currently the mpris fix seems a must-fix, can you please create a new MR containing only the mpris related changes ?

P.S. Do ensure to avoid any other changes other than the mpris one so that i can fast-track its merge.

If a new MR can't be done, do care to DM me the patch.

Thanks. 🙂

Revision history for this message
Sameer Sharma (capecrusader-121) wrote :

> 2) It's the patch make to mpris work with the snap desktop file, as the
> desktop file name in the snap is not mpv but mpv_mpv just same as any other
> snap.
>
> 4) "This is needed because neither mpv supports GNOME's inhibition protocol,
> nor GNOME supports the standard inhibition protocol (yet)."
> https://github.com/Guldoman/mpv_inhibit_gnome#mpv_inhibit_gnome

👍

Revision history for this message
Soumyadeep Ghosh (soumyadghosh) wrote :

Regarding separate PR, I am sorry, but can't bother myself with that. It needs to build the mpris.so file from source. Kindly copy the patch from my repo, you have access to it as much I know.

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches