-
-
Save arest/df79e1363efe63391cc78a16ae90cdf2 to your computer and use it in GitHub Desktop.
Convert GoPro Mp4 to DaVinci MOV
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
| #!/usr/bin/env bash | |
| #docker run -v $(pwd):$(pwd) -w $(pwd) jrottenberg/ffmpeg -i bensound-epic.mp3 -acodec pcm_s16le epic.wav | |
| #docker run -v $(pwd):$(pwd) -w $(pwd) jrottenberg/ffmpeg -i ./YDXJ0061.MP4 -vcodec dnxhd -acodec pcm_s16le -s 1920x1080 -r 30000/1001 -b:v 36M -pix_fmt yuv422p -f mov ./YDXJ0061.mov | |
| BASH_XTRACEFD=3 | |
| set -xeuo pipefail | |
| # Optional ENV variables: | |
| : "${SOURCE_DIR:=`pwd`}" | |
| : "${SOURCE_EXTENSION:=MP4}" | |
| for i in ${SOURCE_DIR}/*.${SOURCE_EXTENSION}; do | |
| [ -f "$i" ] || break | |
| filename="$(basename -- "$i")" | |
| extension="${filename##*.}" | |
| filename="${filename%.*}" | |
| docker run -u $(id -u):$(id -g) -v $(pwd):$(pwd) -w $(pwd) jrottenberg/ffmpeg -y -i $i -c:v prores -acodec pcm_s16le ${SOURCE_DIR}/${filename}.mov | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment