mov->gif
ffmpeg -i input.mov -vf "fps=10,scale=480:-1:flags=lanczos" -y output.gif
mov->gif (x2 speed)
ffmpeg -i input.mov -vf "setpts=0.5*PTS,fps=10,scale=480:-1:flags=lanczos" -y output.gif
| { | |
| "read json from file": { | |
| "prefix": "json_read", | |
| "body": [ | |
| "def read_json(filename: str) -> any:", | |
| " with open(filename) as file_data:", | |
| " json_data = json.load(file_data)", | |
| " return json_data" | |
| ], | |
| "description": "Reads json from a file using the import json library", |
| [alias] | |
| alist = "!gh gist view $(git aliases-gist) --filename command-list.md" | |
| conflict = "!f() { \ | |
| TO=$1; \ | |
| TMP=$(mktemp); \ | |
| git merge-tree $(git merge-base HEAD $TO) HEAD $TO > $TMP; \ | |
| if grep -q '<<<<<<<' $TMP; then \ | |
| awk ' \ | |
| /<<<<<<< / { in_conflict=1; print; next } \ | |
| />>>>>>> / { print; in_conflict=0; next } \ |