Add a script to quickly convert MOV to MP4 format.
This commit is contained in:
parent
a18e46221a
commit
db598d5180
15
bin/mov2mp4.sh
Executable file
15
bin/mov2mp4.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
FILE=${1}
|
||||||
|
|
||||||
|
if [ -z "${FILE}" ]; then
|
||||||
|
echo "Usage: ${0} <filename>"
|
||||||
|
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"
|
Loading…
Reference in a new issue