celluloid
celluloid copied to clipboard
[MPRIS] Show filename instead of "Unknown".
Currently, celluloid shows "Unknown" when a file (like a video recording or screen recording) doesn't have any title metadata. It would be nice if it instead displayed the filename.
This is something that needs to be implemented in your MPRIS client.
We actually don't export the title at all if it's not available. This allows MPRIS clients to detect files that don't have titles. Some clients (e.g. Mpris Indicator Button) already do what you're suggesting and will display the filename if the title is unavailable.
The track-list does indeed show the filename but the player just says "Celluloid" fo me even in Indicator. Ill create an issue with KDEConnect/GSConnect as well for this nonetheless.
the player just says "Celluloid" fo me even in Indicator.
This is a regression, possibly due to a change in mpv. I'm looking into it.
@rohmishra the one thats shown as unknown is the Title field in metadata of the file. mpv needs to change from accessing metadata to displaying the actual file name. Even i face the issue when taking screenshots or using kde or gsconnect
This issue makes the use of applications like Tundra impossible with Celluloid.
I've found a temporary workaround for this issue. I'm leaving it here in case anyone wants to follow.
You can use https://github.com/hoyon/mpv-mpris/releases to add mpris support without using the built-in implementation. Simply add the mpris.so file as a plugin through the preferences window. Make sure to also disable the built-in mpris support and the media keys support from the preferences window.
If you got celluloid from flatpak you may have to give it ownership of the org.mpris.MediaPlayer2.mpv.*
session bus path. You can do this with Flatseal.
Using the answer of @AbrarSL as workaround for https://github.com/celluloid-player/celluloid/issues/889, though I would prefer Celluloid to support this functionality out of the box.
Edit: Forgot to disable built-in mpris support first :) Seems to work out of the box with version 0.26 now