Last active
June 19, 2018 05:49
-
-
Save barooney/0ace6e432bcb85e298f79a1c3d7086ce to your computer and use it in GitHub Desktop.
Add subtitles to video file.
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
#!/bin/bash | |
# run with ./add-subtitles.sh video.mp4 subtitles.srt output.mp4 | |
VIDEO_FILE=$1 | |
SUBTITLE_FILE=$2 | |
OUTPUT_FILE=$3 | |
echo "Muxing " $VIDEO_FILE " and " $SUBTITLE_FILE " into " $OUTPUT_FILE "..." | |
ffmpeg -i $VIDEO_FILE -i $SUBTITLE_FILE -c:a copy -c:v copy -c:s mov_text $OUTPUT_FILE | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment