Created
January 20, 2020 02:25
-
-
Save porglezomp/e6f7cad5beacb79d818fe1c72e9e5119 to your computer and use it in GitHub Desktop.
Convert the "Item Block Heights" video into a summary image
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 the "Item Block Heights" video into a summary image | |
# Video: https://www.youtube.com/watch?v=JteRFzrF6U4 | |
# Image: https://twitter.com/porglezomp/status/1219082110704791555 | |
all: abcheight.png | |
input.mp4: | |
youtube-dl -f mp4 'JteRFzrF6U4' -o input.mp4 | |
frames: input.mp4 | |
mkdir frames | |
ffmpeg -i $< -filter:v "crop=2:in_h" 'frames/frame-%04d.png' | |
raw.png: frames | |
convert frames/*.png +append $@ | |
abcheight.png: raw.png | |
convert $< -crop 1100x720+5998+0 $@ | |
clean: | |
rm -rf frames *.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment