Created
May 25, 2023 08:48
-
-
Save jonaprieto/cf839da1bbc052f2911fc2d34900245f to your computer and use it in GitHub Desktop.
Convert all the mov files to mp4 using HandBrakeCLI
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
# Put this Makefile inside the folder containing your | |
# MOV files. | |
MOV_FILES := $(wildcard *.mov) | |
MP4_FILES := $(patsubst %.mov,%.mp4,$(MOV_FILES)) | |
all: $(MP4_FILES) | |
# In macOS, use `brew install HandBrakeCLI` | |
%.mp4: %.mov | |
HandBrakeCLI -i $< -e x264 -E faac -o $@ | |
.PHONY: clean | |
clean: | |
rm -f *.mov | |
.PHONY: clean-all | |
clean-all: | |
rm -f *.mov | |
rm -f *.mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment