Update 'README.md'

This commit is contained in:
oDinZu WenKi 2023-10-24 19:44:01 -04:00
parent df3c4c2b34
commit 1af5353345

View File

@ -5,7 +5,7 @@ A record-screen.sh that screen captures with FFmpeg using a hotkey e.g `WIN + R`
## Depends On
* ffmpeg
* bash
* basic linux terminal
* basic linux terminal skills
### Recommended Setup Dependencies
* xdpyinfo
@ -18,8 +18,8 @@ A record-screen.sh that screen captures with FFmpeg using a hotkey e.g `WIN + R`
4. run the script via `./record-screen.sh` or with hotkey binds e.g. `WIN+R`.
### Get screen information
1. `xdpyinfo | grep "name"` Note: $DISPLAY should match the name. e.g. `:1`
* `xdpyinfo | grep "name"` Note: `$DISPLAY` should match the name from xdpyinfo. e.g. `:1`
### Get detailed window information about a specific screen window
1. `xwininfo`
* `xwininfo`
### Transforming .mpeg format into .gif (optional)
1. ffmpeg -i input.mp4 -vf "fps=10,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop -1 output.gif
* ffmpeg -i input.mp4 -vf "fps=10,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop -1 output.gif