Created
June 19, 2018 16:46
-
-
Save Kuufi/42e5b0b83e4b44eb82476305e40de903 to your computer and use it in GitHub Desktop.
ffmpeg video to Prores Proxy 422
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 | |
infolder=$1 | |
outfolder=$2 | |
outputres="-1:720" | |
# Create output folder | |
mkdir -p $outfolder | |
# Transcode video files | |
for video in $infolder/*; | |
do ffmpeg \ | |
-i "$video" \ | |
-map 0:v \ | |
-map 0:a \ | |
-c:v prores_ks \ | |
-profile:v 0 \ | |
-qscale:v 12 \ | |
-vendor apl0 \ | |
-pix_fmt yuv422p10le \ | |
-vf scale=$outputres \ | |
-sws_flags lanczos \ | |
-c:a pcm_s24le \ | |
"$outfolder/$(basename "${video%.*}"_Proxy.mov)"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment