this post was submitted on 25 Jun 2024
38 points (97.5% liked)

Linux

48061 readers
699 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hello guys! sometimes I watch movies with friends over jitsi meet, and in order to share just a single window with just its own audio I use chromium, that has the "share tab" option. However, I'd like a more general solution (I cannot play mkv files on browser, for example). I'd like a compact way that creates a virtual device sharing the window (even if the window gets minimized or hidden behind other windows!) and its audio, without the audio of all other windows (I don't want my notification sounds to be shared too). a quick online search gave me only "complex" answers, that I'll try only if a more convenient way is not available.

[I'm running EndeavourOS KDE Wayland]

Thank to everyone in advance!

all 25 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 4 months ago (3 children)

I've never done this myself but if you want to keep it simple and be able to play all video formats, why not just stream from VLC?

I'm happy to be corrected on this, but it seems the simplest solution to a potentially complex problem. Everybody uses VLC, right?

[–] [email protected] 5 points 4 months ago (2 children)

Uhm this could be a good workaround, I'll look into it, thanks! It would solve the movies problem, but not any other screen sharing problem

Thank you!

[–] [email protected] 2 points 4 months ago

No, of course not. I thought the movie sharing was your primary concern, sorry if I misunderstood. Hope this solves at least part of your problem.

[–] [email protected] 1 points 4 months ago

VLC can capture desktop video

[–] [email protected] 5 points 4 months ago

This is your best option. I did do movie nights with friends during the pandemic in a similar way, but I used OBS Studio to create the stream and Monaserver to stream it to all users. I did not know VLC can handle the streaming to users directly, making this dead simple to setup without additional software. You just need to know how to configure your router to allow the needed port forwarding.

[–] [email protected] 0 points 4 months ago

This won't work if host is behind CGNAT

[–] [email protected] 9 points 4 months ago (1 children)

You use Jitsi meet, their free service, to watch movies???

You can use OBS to do that, it looks like a lot but it is the best tool for that. Dont know if it has some ffplay/MPV plugin to internally play videos but I think so

[–] [email protected] 4 points 4 months ago (1 children)

Jellyfin has a watch-together function but to set all that up will probably be even more complex than the "complex" options ...

[–] [email protected] 4 points 4 months ago

If OP gets Jellyfin working they can just share the tab or window that the Jellyfin web interface is running in. Jellyfin will take care of the playback. No need for the other people to use Jellyfin too.

[–] [email protected] 4 points 4 months ago (2 children)

A bit less simple, but for a great solution, you could host a jellyfin server and give each friend their own user account in order to then use the syncplay feature.

[–] [email protected] 4 points 4 months ago (1 children)

I already have a jellyfin instance, but syncplay didn't works very reliably for me, some users experienced freezing, jumps and other problems

Thanks for the suggestion anyway!

[–] [email protected] 1 points 4 months ago* (last edited 4 months ago)

Why not just open the movie with Jellyfin in a tab and share that tab like you do now?

[–] [email protected] 3 points 4 months ago

I love the idea of that feature, but it is not at all reliable in my experience.

[–] [email protected] 4 points 4 months ago (2 children)

gave me only "complex" answers

It is a complex question, even if you try so hard to deny that :-)

One sender only? Or how many possible senders?

How many Receivers?

Do they need to talk back or send back anything?

How far away are they (in terms of network)?

[–] [email protected] 1 points 4 months ago

It would be just me sharing to everybody else on the internet (no more than 6 people)

Jitsi meet works great, the only problem is being able to share only "a portion" of what it currently does

[–] [email protected] 1 points 4 months ago

My assumption:

  • Hell be the host, hell control the stream and no one else. So one sender with no internal communication (coz they might have discord or something setup for their conversations)
  • according to google, the average no of friends is 5. So may be around 5 receivers
[–] [email protected] 3 points 4 months ago

maybe vdo.ninja? it uses webrtc and has not given me performance issues thus far

[–] [email protected] 1 points 4 months ago (2 children)
[–] [email protected] 1 points 4 months ago (1 children)

I think the problem is not something related to jitsi, meet, discord or matrix, but rather to the OS screensharing capabilities

[–] [email protected] 2 points 4 months ago (1 children)

Your half right. It's not really the OS's fault but rather the fault of the browsers and app-frameworks that use the browser in the background (electron). Because neither Firefox nor chrome have this feature implemented for Linux. The official Discord client doesn't do it either but other ones such as Sunroof do. It's possible that at least one Matrix client has learnt to share the screen with sound on Linux but I don't know of any (I also don't use Matrix a lot so don't pay too much attention to my experience on that)

[–] [email protected] 4 points 4 months ago

On KDE Plasma 6 + Firefox (both Wayland) I can share a window and workaround audio sharing by routing desktop audio to microphone. Vesktop (Discord alternative) supports screenshare w/ audio.