clapper icon indicating copy to clipboard operation
clapper copied to clipboard

Make it available on Windows and Mac

Open yasharya2901 opened this issue 4 years ago • 4 comments

I know this is an exclusive app for linux but making it available for other platforms can help in widespread adoption and will definitely help in competing with VLC, even though that's not what you want, it will ensure the long time survival of the project you created.

yasharya2901 avatar Jul 19 '21 03:07 yasharya2901

I am not competing with VLC. The only thing I do is make it how I want it and share it. Right now the only linux shells that this project targets are GNOME and Phosh (hence I could use JS to assemble the UI). Other linux desktops can just install it as a flatpak.

Even if ported to said platforms (or even used on a non-GNOME distros) the UI would not look right. It uses GTK as all GNOME apps. It would also be very hard to maintain the compatibility on all these platforms by a single person. Not to mention that we would need Vulkan video decoding in GStreamer and an efficient way of drawing such buffers in GTK4. Unlike OpenGL neither one of those is available at the moment.

Rafostar avatar Jul 19 '21 07:07 Rafostar

I am not competing with VLC. The only thing I do is make it how I want it and share it. Right now the only linux shells that this project targets are GNOME and Phosh (hence I could use JS to assemble the UI). Other linux desktops can just install it as a flatpak.

Even if ported to said platforms (or even used on a non-GNOME distros) the UI would not look right. It uses GTK as all GNOME apps. It would also be very hard to maintain the compatibility on all these platforms by a single person. Not to mention that we would need Vulkan video decoding in GStreamer and an efficient way of drawing such buffers in GTK4. Unlike OpenGL neither one of those is available at the moment.

It seems that GTK supports Windows. https://www.gtk.org/docs/installations/windows

max-hk avatar Jul 29 '21 16:07 max-hk

Once new video sink lands and we port away from GJS, this might actually work.

Rafostar avatar Apr 11 '22 08:04 Rafostar

Its not yet possible to run app as a whole outside of Linux, but the recently merged new sink can be compiled and tried on Windows and probably on macOS too (haven't tried the latter one as I do not have a Mac).

For anyone interested in building sink alone:

meson builddir -Dplayer=false -Dlib=false -Dgst-plugin=enabled -Dgluploader=enabled
cd builddir
meson install

And to test:

 GST_PLUGIN_FEATURE_RANK=d3d11h264dec:300 gst-play-1.0 --videosink=clappersink 'video.mp4'

Eventually replace d3d11h264dec with nvh264dec if you are using Nvidia GPU to test with NVDEC.

Screenshot of working playback: clappersink-win2

Rafostar avatar May 26 '22 11:05 Rafostar