From db598d5180ad1c23bd675e82e4fbcf791aa81298 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 4 Jan 2016 21:17:05 +0000 Subject: [PATCH] Add a script to quickly convert MOV to MP4 format. --- bin/mov2mp4.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/mov2mp4.sh diff --git a/bin/mov2mp4.sh b/bin/mov2mp4.sh new file mode 100755 index 0000000..528077b --- /dev/null +++ b/bin/mov2mp4.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +FILE=${1} + +if [ -z "${FILE}" ]; then + echo "Usage: ${0} " + echo + exit 1 +fi + +BASENAME=$(basename "${FILE}") +FILENAME=$(basename "${FILE}" .mov) +DIRNAME=$(dirname "${FILE}") + +ffmpeg -i "${DIRNAME}/${BASENAME}" -c:v copy -c:a copy "${DIRNAME}/${FILENAME}.mp4"