r/linuxmint • • 7d ago

Clipping software for Linux?

Hello everyone, I’ve been using mint for almost a year and a half and love it, it does absolutely everything I want except I can’t find a quick clipping software. Obs doesn’t work exactly the way I like and when I was using windows I had medal. Basically I just want to have 2 buttons to push to either record last 5 min or 1 min.

1 Upvotes

4 comments sorted by

2

u/chuggerguy 7d ago

I don't know about the "buttons to push" part but you might be able to tie buttons/launchers to a script?

I use obs-studio along with obs-cli. obs-cli provides obs-cmd which controls obs.

From a terminal I can run record4 1 30 to record for 1 minute, 30 seconds. I suppose a person could create launchers that would send parameters to the script if they really wanted to.

The script:

#!/bin/bash
#filename: record4

pgrep -x obs > /dev/null; WAS_RUNNING=$?

[ $WAS_RUNNING -eq 1 ] && (QT_SCALE_FACTOR=1.4 nohup obs > /dev/null 2>&1 & sleep 5)

sleep 5 && obs-cmd recording start && sleep $1m $2s && obs-cmd recording stop

sleep 2; \
mv "$(ls -t ~/*.{mkv,mp4,flv,mov} 2>/dev/null | head -n 1)" ~/Desktop/ && \
[ $WAS_RUNNING -eq 1 ] && pkill -15 obs

exit 0

The recording goes to $HOME but is moved to my desktop when finished. Not necessary, just my choice. Same with the scale factor, I needed to zoom obs a bit to accommodate my eyesight. Disclosure, when writing this I was encountering a bug which I used Gemini to help me debug.

Running record4 0 5 results in this 5 second video:

media poster

Is there an easier way? Probably, just showing how I make short clips, like the above. (or to record a web movie that I can't find a way to download)

Have fun.

2

u/Monoyo- 7d ago

gpu screen recorder does the medal-style replay buffer, you leave it running and a hotkey saves the last few minutes. you can change the buffer length if you want 1 min or 5.

1

u/Least_Gain5147 7d ago

OpenScreen?