wf-recorder icon indicating copy to clipboard operation
wf-recorder copied to clipboard

Question: How to use wf-recorder (with ffmpeg) to create a srt:// stream?

Open ObiWahn opened this issue 3 years ago • 1 comments

Hi,

I think it would be super useful if you could add some notes on how use wf-recorder to create a stream of your desktop or slurped parts of it that you can share with friends or co-workers. Most tools (zoom, skype, discord) do not work properly for me with sway.

ObiWahn avatar Sep 29 '22 09:09 ObiWahn

if you want to create an SRT stream, this is the command line I do to generate one

wf-recorder -g "$(slurp)" --codec=libx264 -p preset-veryfast -r 60 -m matroska -f "srt://127.0.0.1:9999?mode=caller" and replace the IP with the server of the IP you need.

for testing purpose you can run mpv "srt://127.0.0.1:9999?mode=listener" to start MPV listing to an srt stream, then run wf-recorder. its important to note that the listener needs to start first

Quackdoc avatar Nov 12 '22 20:11 Quackdoc