-
-
Save jasontate/247ad126352202ad0a2c71e1edebd995 to your computer and use it in GitHub Desktop.
Biomes Cut
This file contains hidden or 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
#!/bin/bash | |
INFILE=Biomes.mkv | |
# Check that infile exists | |
stat $INFILE >/dev/null 2>&1 || { echo "Expect $INFILE in the current folder. Aborting." >&2; exit 1; } | |
# Check that ffmpeg exists | |
command -v ffmpeg >/dev/null 2>&1 || { echo "I require ffmpeg but it's not installed. Aborting." >&2; exit 1; } | |
ffmpeg -hide_banner -loglevel fatal -ss 00:00:06 -to 00:03:00 -i $INFILE -c:v libx264 -preset slow -crf 17 -tune film -pix_fmt yuv420p -an -sn -map_metadata -1 -metadata title="Hoth" -map_chapters -1 -y Hoth.mp4 | |
ffmpeg -hide_banner -loglevel fatal -ss 00:03:03 -to 00:05:53 -i $INFILE -c:v libx264 -preset slow -crf 17 -tune film -pix_fmt yuv420p -an -sn -map_metadata -1 -metadata title="Tatooine" -map_chapters -1 -y Tatooine.mp4 | |
ffmpeg -hide_banner -loglevel fatal -ss 00:05:55 -to 00:09:04 -i $INFILE -c:v libx264 -preset slow -crf 17 -tune film -pix_fmt yuv420p -an -sn -map_metadata -1 -metadata title="Sorgan" -map_chapters -1 -y Sorgan.mp4 | |
ffmpeg -hide_banner -loglevel fatal -ss 00:09:06 -to 00:12:01 -i $INFILE -c:v libx264 -preset slow -crf 17 -tune film -pix_fmt yuv420p -an -sn -map_metadata -1 -metadata title="Crait" -map_chapters -1 -y Crait.mp4 | |
ffmpeg -hide_banner -loglevel fatal -ss 00:12:03 -to 00:15:26 -i $INFILE -c:v libx264 -preset slow -crf 17 -tune film -pix_fmt yuv420p -an -sn -map_metadata -1 -metadata title="Mustafar" -map_chapters -1 -y Mustafar.mp4 | |
ffmpeg -hide_banner -loglevel fatal -ss 00:15:29 -to 00:18:25 -i $INFILE -c:v libx264 -preset slow -crf 17 -tune film -pix_fmt yuv420p -an -sn -map_metadata -1 -metadata title="Ahch-To" -map_chapters -1 -y Ahch-To.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment