Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = YOUR NAME | |
email = [email protected] | |
[credential] | |
helper = cache --timeout=3600 | |
[core] | |
editor = vim | |
excludesfile = ~/.gitignore | |
[color] | |
ui = true |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
groups: | |
- connectivity: | |
- 0 1 | |
- 1 2 | |
- 2 3 | |
- 3 4 | |
- 4 5 | |
- 5 6 | |
- 6 7 | |
- 7 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pathlib import Path | |
from shutil import copy | |
# find all the jpg images in this dir (000.jpg, 001.jpg, ...) | |
paths = list(Path('./').glob('*.jpg')) | |
pathnames = sorted([p.stem for p in paths]) | |
maxcount = int(pathnames[-1]) * 2 + 1 # get the new max cont | |
for path in paths: | |
i = int(path.stem) | |
copy(str(path), str(Path('./') / '{:03d}.jpg'.format(maxcount - i))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# convert folder of 000.jpg, 001.jpg, ..., 443.jpg to video 60fps | |
ffmpeg -framerate 60 -i ./%03d.jpg -pix_fmt yuv420p -s hd1080 -c:v libx264 -preset veryslow -crf 28 -r 60 ~/output.mp4 |
NewerOlder