mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.5k stars 2.92k forks source link

PipeWire video graph stream input/output? #12687

Open mxmilkiib opened 1 year ago

mxmilkiib commented 1 year ago

Expected behavior of the wanted feature

The ability for mpv to input and output PipeWire video streams would allow its involvement in the PipeWire [video] graph for various kinds of creative endeavour.

Related:

v4u6h4n commented 6 months ago

Hey this would be great, is this implemented since requested?

stellarpower commented 3 months ago

@mxmilkiib Do you happen to know if there are any other video players out there that support pipewire as a video backend? I'm googling it but struggling to see any. I assume that I could probably load a file into something like OBS but looking for a lightweight solution as I need to preserve battery life. Also reading that weston has implemented some support.

mxmilkiib commented 3 months ago

I haven't done a deep dive more recently but guess there's the new thing of using PipeWire to connect a camera to multiple apps

https://youtu.be/LUbF-d77lAs

They show a graph using a camera and OBS. Only skimmed but it's short n sums it up.

There's few longer con talks available on yt about the specifics from the last year. I don't have the time to watch but probably those mention other applications too

stellarpower commented 3 months ago

Thanks! I have had a bit of a play since your reply, I have had some success with this gist (comment on local use at the bottom) https://gist.github.com/digitalsignalperson/ef81c1afdc04d49f5ae3f6f97b2d29af

As application support is somewhat limited, I was hoping to try some sort of setup with a headless weston using a pipewire backend and then viewing the video through my normal compositor via mpv and friends. Will keep you posted.