image

Applying LUT to LogC footage with OpenSource

[<Back>] [<Edit>]

Applying LUT to LogC footage with OpenSourceApplying LUT to LogC footage with OpenSource

#!/bin/sh

# usage
# LogC

COLOR_MAP="1.2:1.2:0.0:2.2:0.979555:0.979555:0.979555"

for file in `/usr/bin/find $1 -maxdepth $2 -name "*.mov"`
do
ASSETNAME=$( eval basename $file | sed "s/.mov/_LUT.mov/")
DIR_PATH=$( eval dirname $file )
TIMECODE=$( eval /usr/local/bin/ffprobe $file 2> $ASSETNAME.txt ; cat $ASSETNAME.txt | grep -m 1 timecode | awk '{print $3}' )
/usr/local/bin/ffmpeg -i $file -vf mp=eq2=$COLOR_MAP -timecode "$TIMECODE" -vcodec dnxhd -b:v 175M -acodec copy -pix_fmt yuv422p -y $DIR_PATH/$ASSETNAME
cat $ASSETNAME.txt >> $DIR_PATH/transcode.log
rm -rf $ASSETNAME.txt
done



By: Ted Simbajon





 
Instagram Stats
pinoy
my Kung Fu