Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dotheevo/screen-capture-general
bash scripts for screenshots, gif recording, video recording
https://github.com/dotheevo/screen-capture-general
Last synced: 3 days ago
JSON representation
bash scripts for screenshots, gif recording, video recording
- Host: GitHub
- URL: https://github.com/dotheevo/screen-capture-general
- Owner: DoTheEvo
- Created: 2015-08-19T15:38:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T01:53:10.000Z (over 7 years ago)
- Last Synced: 2023-02-27T21:15:41.672Z (over 1 year ago)
- Language: C
- Size: 206 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# make_screenshot.sh
Simple screenshot scripts that choses jpg or png depending on file size
#### dependencies
* `maim` for making screenshots
* `slop` to allow maim area screnshots
* `xdotool` to allow active window screenshots
* `imagemagick` for converting png to jpg
* `sox` for playing the shutter soundClicking on an active window of an application or a dekstop will select it whole, dragging rectangle will pick that selection
Pictures are saved in to `~/Pictures/screenshots` with the file name being always unique based on the epoch time(seconds since 1970) - for example `144008968.png`
Imagemagick is then used to create a jpg version of the file. One of the files gets deleted based on the size `(( pngsize < 3 * jpgsize ))`
* jpg file is kept if it is considerably smaller than the png file, which is the case if screenshot contains a movie still or a photograph
* png file is kept in cases of bland text and uniform color use, like websites or desktop/filemanager screenshotsAfter screenshot is done, sox plays ~/media/shutter.ogg
##### run it
* recommended to bind this script to the PrtScr button
___
# make_gif.sh
Records small size gif of the selected area
#### dependencies
* `byzanz` for recording the gif
* `slop` for getting the recording area coordinates, dimensions
* `sox` for playing the shutter soundThe scripts uses project `byzanz` for recording the gif. It might be problem getting it, Arch users have currently working [AUR package](https://aur.archlinux.org/packages/byzanz-git/?comments=all).
Clicking on an active window of an application or a dekstop will select it whole, dragging rectangle will pick that selection
gifs are saved in to `~/Pictures/screenshots` with the file name starting with "gif_" followed by epoch time(seconds since 1970), for example `gif_1440011339.gif`
##### run it
* `make_gif.sh` - records gif for 10 seconds
* `make_gif.sh 19` - records gif for 19 seconds
* `make_gif.sh 120 test` - recording for 2 minutes and the gif name is test.gifsox plays ~/media/shutter.ogg at the start and at the end of recording
___
# make_video.sh
Makes webm recording of selected area
### dependencies
* `ffmpeg` - for recording the video and coverting to webm
* `slop` for getting the recording area coordinates, dimensions
* `sox` for playing the shutter soundClicking on an active window of an application or a dekstop will select it whole, dragging rectangle will pick that selection
For performance benefit, video is recorded as mp4, then converted to webm
Videos are saved in to `~/Pictures/screenshots` with the file name starting with "vid_" followed by epoch time(seconds since 1970), for example `vid_1440011339.webm`
##### run it
* `make_video.sh` - records for 10 seconds
* `make_video.sh 19` - records for 19 seconds
* `make_video.sh 120 test` - recording for 2 minutes and the name would be test,webmsox plays ~/media/shutter.ogg at the start and at the end of recording
___