This repository has been archived on 2026-02-02. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
dotfiles/bin/mov2mp4

15 lines
289 B
Bash
Executable file

#!/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"