image

AVCHD to usable material with Timecode via FFmpeg

[<Back>] [<Edit>]

MTS to MOV conversion


#!/bin/sh

echo "Usage: "
echo
echo

for file in `find $1 -name "*.MTS"`
do
pathName=$( eval dirname $file )
newFile=$( eval basename $file | sed 's/.MTS//g' )
timeCode=$( eval mdls $file | grep kMDItemFSContentChangeDate | awk '{print $4}' )
ffmpeg -i $file -vcodec prores -pix_fmt yuv420p -timecode 00:$timeCode -acodec pcm_s16le -b:a 1536 $pathName/$2$newFile.MOV
done


By: Ted Simbajon





 
Instagram Stats
pinoy
my Kung Fu