Help to set Celluloid on streamlink twitch gui

Anyone knows if this is possible ? i tried putting the launcher patch but did not work
i am using this one from aur which is gtk3
https://aur.archlinux.org/packages/celluloid-linuxmint

i get this at the end of the error when trying to launch any livestream:

Closing currently open stream…
error: Failed to start player: /usr/bin/celluloid (Process exited prematurely)

Try adding these lines to your ~/.config/mpv/mpv.conf:

[frontend]
client=celluloid

Or

[frontend]
client=celluloid
celluloid-binary=/path/to/celluloid-executable

Or

[global]
mpv-frontend=celluloid

so i created the mpv.conf config but still nothing, celluloid still crash when trying to launch it on the streamlink twitch gui, could be the path i used on the program or maybe the player just isnt compatible

I don’t know, really. I used to use Celluloid, but I found that using MPV directly is often simpler and faster, so I uninstalled Celluloid.

Does it work with MPV directly?

There are things you can add to MPV to make it look and feel more like a regular player.

  1. Thumbfast to show thumbnails when you hover: https://github.com/po5/thumbfast

  2. Example mpv.conf:

volume=25
volume-max=300
audio-normalize-downmix=yes
replaygain=no
auto-window-resize=no
geometry=800x480
keepaspect=yes
keepaspect-window=no
--loop-playlist=inf
--screenshot-template="%F_%wH-%wM-%wS-%wT"
--screenshot-format=jpg
--osd-font-size=24
screenshot-directory=/path/to/screenshots/folder/

# Enable hardware decoding for NVIDIA
#hwdec=nvdec

# Use GPU-accelerated video output
#vo=gpu

# Enable high-quality GPU profile
#profile=gpu-hq

# Enable video sync to display
#video-sync=display-resample

# Enable interpolation for smoother playback
#interpolation
  1. Example input.conf:
WHEEL_UP        add volume 5
WHEEL_DOWN      add volume -5
WHEEL_LEFT      ignore
WHEEL_RIGHT     ignore
shift+s         screenshot each-frame
ctrl+RIGHT      frame-step
ctrl+LEFT       frame-back-step
ctrl+UP         playlist-shuffle
ctrl+DOWN       playlist-unshuffle
n               playlist-next
p               playlist-prev

All of these features can be found here: https://mpv.io/manual/stable/. But you could also use AI to ask about certain features, which is how I found out about thumbfast and the commented lines in my mpv.conf. The rest I found myself by checking the manual.

Since mpv is a celluloid dependancy, why not trying with mpv first ?
I mean the player preset is for mpv.

mpv works fine, the only reason i’d like to have it working with celluloid is due to the gtk3 theme i have installed, streamlink twitch gui only gives 2 options for presets:

Considering that MPV doesn’t care about GTK or Qt and just uses whatever is default, you don’t need to worry about it looking out-of-place, if it’s just about the visuals.

In other words, it will have GTK borders and controls around it in a GTK environment and Qt borders and controls in a Qt environment.


EDIT: Just found something.
See if you can access this link. It’s an AI generated “fix”. Maybe it works.

The idea is, that you need to add the file path or site URL at the end like this:
/usr/bin/celluloid /path/to/file/file.mp4
or
/usr/bin/celluloid https://site.com/video/url/

Link: https://www.perplexity.ai/search/help-to-set-celluloid-on-strea-NbjKaMTsTuS8H1KQ7RGqLA

Source info can be found here:
[1] https://github.com/AkiraJkr/Streamlink-Twitch-GUI-Setup-Guide
[2] https://community.chocolatey.org/packages/streamlink-twitch-gui
[3] https://www.linode.com/docs/guides/streamlink-twitch-gui-install-and-configure/
[4] https://www.reddit.com/r/Streamlink/comments/5h1ezj/streamlink_twitch_gui_installation_guide_vlc/
[5] https://streamlink.github.io/streamlink-twitch-gui/
[6] https://www.youtube.com/watch?v=XoM-d6QueFg
[7] https://www.youtube.com/watch?v=l2SQIjp5we8
[8] https://github.com/streamlink/streamlink-twitch-gui/wiki/installation

In case you can’t access the link, here’s the output.


To set up Celluloid as the player for Streamlink Twitch GUI, follow these steps:

  1. Open Streamlink Twitch GUI and go to the Settings menu.

  2. Navigate to the “Player” tab in the settings.

  3. In the “Player preset” dropdown, select “Custom”.

  4. For the “Player input” field, enter the following:

    /usr/bin/celluloid {filename}
    
  5. Make sure the path to Celluloid is correct. If it’s installed in a different location, adjust the path accordingly.

  6. Click “Apply” to save the changes.

If you’re still encountering the “Failed to start player” error, try these troubleshooting steps:

  1. Verify Celluloid is installed correctly by running it from the terminal:

    celluloid
    
  2. Check if Celluloid has the necessary permissions to be executed by Streamlink Twitch GUI.

  3. Ensure there are no conflicting configurations in your Streamlink configuration file (usually located at ~/.config/streamlink/config).

  4. Try using the full path to the stream instead of just {filename}:

    /usr/bin/celluloid {url}
    
  5. If the issue persists, you can try adding the --player-continuous-http option to the Streamlink parameters in the GUI settings. This might help with certain player compatibility issues.

If you’re still having trouble, you may want to check the Streamlink Twitch GUI logs for more detailed error information. The logs are typically located in the application’s data directory.

i tried that and helped a bit, the paramater helped too, it keeps saying it cant find the player executable

Found matching plugin twitch for URL twitch.tv/rocketleague
Available streams: audio_only, 160p (worst), 360p, 480p, 720p, 720p60, 1080p60 (best)
Opening stream: 1080p60 (hls)
Starting player: /usr/share/applications/io.github.celluloid_player.Celluloid.desktop
Will skip ad segments
Closing currently open stream…
error: Failed to start player: /usr/share/applications/io.github.celluloid_player.Celluloid.desktop (Player executable not found)

there’s no custom player preset so i chose “no preset” instead:


i get error trying this too

/usr/bin/celluloid {url}

Try replacing {url} with an actual URL. Have you tried this?

did not work, i’ll just go back using vlc for it instead, that’s the player i was using before for streamlink twitch gui

Okay. Not seeing why you don’t just use MPV. As far as look and feel is concerned, you can make VLC look more similar to your GTK theme by following the Uniform Look Guide.

https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications

Basically, install qt5ct, qt6ct, kvantum, and the Qt version of your GTK theme or a similar theme, and voila!

PS: Kvantum alone may be all you need.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.