small overall adjustments
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
# Record GIFs for README.md files
|
||||
So I really enjoy when oss repositories have some small gif files for showcasing what the tool does. When it makes sense of course.
|
||||
So here is my way of doing it on fedora 44 with [wf-recorder](https://github.com/ammen99/wf-recorder) for recording screen to mp4, and [ffmpeg](https://www.ffmpeg.org/about.html) for post processing to .gif.
|
||||
|
||||
Not mutch to it.
|
||||
mm perhaps there is something like using webp instead of gifs? but I think it is more difficult to run really well on Gitea.
|
||||
|
||||
```bash
|
||||
wf-recorder -g "$(slurp)" \
|
||||
-f <MP4-FILE-NAME>.mp4 \
|
||||
-c libx264 \
|
||||
-r 30 \
|
||||
-p crf=18 \
|
||||
-p preset=slow
|
||||
```
|
||||
|
||||
like something like this
|
||||
```bash
|
||||
ffmpeg -i hagfish.mp4 \
|
||||
-vf "fps=15,scale=920:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=256:stats_mode=diff[p];[s1][p]paletteuse=dither=sierra2_4a" \
|
||||
-loop 0 \
|
||||
hagfish.gif
|
||||
```
|
||||
|
||||
keep the scale at 920, I think it looks good on Gitea and probably GitHub
|
||||
@@ -1,22 +0,0 @@
|
||||
# Record GIFs for README.md files
|
||||
|
||||
On Fedora I use [wf-recorder](https://github.com/ammen99/wf-recorder) for recording screen to mp4, and [ffmpeg](https://www.ffmpeg.org/about.html) for post processing to .gif.
|
||||
|
||||
```bash
|
||||
wf-recorder -g "$(slurp)" \
|
||||
-f <MP4-FILE-NAME>.mp4 \
|
||||
-c libx264 \
|
||||
-r 30 \
|
||||
-p crf=18 \
|
||||
-p preset=slow
|
||||
```
|
||||
|
||||
like something like this
|
||||
```bash
|
||||
ffmpeg -i hagfish.mp4 \
|
||||
-vf "fps=15,scale=920:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=256:stats_mode=diff[p];[s1][p]paletteuse=dither=sierra2_4a" \
|
||||
-loop 0 \
|
||||
hagfish.gif
|
||||
```
|
||||
|
||||
keep the scale at 920, I think it looks good on Gitea and probably GitHub
|
||||
Reference in New Issue
Block a user