Skip to content

Instantly share code, notes, and snippets.

@porglezomp porglezomp/makefile
Created Jan 20, 2020

Embed
What would you like to do?
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
You can’t perform that action at this time.