Skip to content

Instantly share code, notes, and snippets.

@porglezomp
Created January 20, 2020 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save porglezomp/e6f7cad5beacb79d818fe1c72e9e5119 to your computer and use it in GitHub Desktop.
Save porglezomp/e6f7cad5beacb79d818fe1c72e9e5119 to your computer and use it in GitHub Desktop.
Convert the "Item Block Heights" video into a summary image
# 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