Davinci resolve script for generating videos that can be imported



#!/bin/bash
DIRPATH=$1
OLDIFS=$IFS
IFS=$'\n'

if [ -z "$DIRPATH" ]
then
exit 1
fi

mkdir -p processed

FILES=$(ls $DIRPATH)

for i in $FILES
do
if [ -d "$FILES" ]
then
continue
fi

NEW_NAME=$(echo $i | sed 's/\.[^.]*$/.mov/')
#NEW
ffmpeg -i "$i" -vcodec dnxhd -profile:v dnxhr_hq -r 25 -pix_fmt yuv422p -s 3840x2160 -c:a pcm_s16le "processed/$NEW_NAME"
#OLD
#ffmpeg -i "$i" -vcodec dnxhd -acodec pcm_s16le -s 1920x1080 -r 30000/1001 -b:v 36M -pix_fmt yuv422p -f mov "processed/$NEW_NAME"
done


Leave a Reply

Your email address will not be published. Required fields are marked *