- Based on mpvs A-B loop feature which is bound to the
l
key by default - Depends only on ffmpeg
- Uses the
palettegen
feature of ffmpeg for better colors - The frame rate of the GIF will be between 10 and 20 FPS and is determined by halving the source frame rate repeatedly
- The GIF is 480 pixels wide (this can be changed easily)
- Tested on Linux
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
#!/usr/bin/python | |
# wordlist.txt is a tab-delimited word frequency list. | |
# A list for the German language can be found here: | |
# https://github.com/gambolputty/dewiki-wordrank | |
import sys | |
import re | |
from collections import Counter | |
from string import ascii_lowercase as letters |
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
#!/usr/bin/python3 | |
import math | |
DIGITS = 4 | |
class Body: | |
def __init__(self, pos, vel, mass): | |
self.pos = float(pos) | |
self.vel = float(vel) |