jschx / uguush

Moved to GitLab
https://gitlab.com/jschx/uguush
MIT License
69 stars 16 forks source link

Suggestion to include video screen recording. #16

Closed alusion closed 9 years ago

alusion commented 9 years ago

Using maim / slop http://tuxdiary.com/2014/10/17/maim-slop/ Have a flag to record video of a window or select rectangle and automatically upload to pomf.

example code: eval $(slop); ffmpeg -f x11grab -s "$W"x"$H" -i :0.0+$X,$Y -f alsa -i pulse ~/.recording/slop$(date "+%Y-%m-%d%H:%M:%V").webm

jschx commented 9 years ago

Usually the best way to record your screen is to record it to a normal video format (I use mkv) and then convert it to webm afterwards. It takes a while to do this conversion, that's why you're probably only getting a few FPS, it's trying to encode it on the fly. This is just my personal experience, I'm probably using the wrong terminology. I've had bad experiences just trying to record to webm, though.

Not sure if I could write a one-size-fits-all way to do this in the script though. People have different resolutions and will want to record at different bitrates, etc, and I don't know if there's a way I could implement this easily and without a lot of autodetection(?) stuff that I don't know anything about.

I'm open to the idea, though, I'd like to use this feature myself.