MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.49k stars 288 forks source link

SSR Won't Run with a pipe/fifo for stdin #951

Open StuartRothrock opened 2 years ago

StuartRothrock commented 2 years ago

Nice product. Thanks for the hard work. I use it often. If I run ssr on my mediaserver as in:

simplescreenrecorder --settingsfile=/home/user/settings.conf --no-systray --start-hidden --start-recording </tmp/fifo >/tmp/ssr.log 2>&1 &

Bit it dies without creating a log. If it worked, I could echo record-save and quit to the fifo for complete operations via ssh or other home automations. Thanks!

MaartenBaert commented 2 years ago

SSR does work with a pipe as stdin, but you have to properly open the pipe for writing and keep it open while SSR is running. Really this is much easier to do in a language like python where you can easily use regular pipes, rather than with named pipes from bash.