Tasked with the tedious job of creating many DCP slides in multiple ratios I've been experimenting with the dcpomatic2_create command line tool on a Mac with Automator which is a bit or a more interesting challenge for me. I have a bit of knowledge of using FFMPEG from the command line and from this have created the below as an Automater Quick Action for setting up the DCP-o-Matic projects.
I have the Quick Action "DCP - 10 second slides" to Run the Shell Script below on any files or folders:
Code: Select all
shopt -s extglob
for f in "$@"
do
/Applications/DCP-o-matic\ 2.app/Contents/MacOS/dcpomatic2_create -o "${f%.*}" -c PSA -s 10 -t fades -n "${f//+(*\/|.*)}" "$f"
done
Code: Select all
-t fades
The next step is to encode all these. So the next Quick Action runs the below to encode them:
Code: Select all
for d in "$@"
do
/Applications/DCP-o-matic\ 2.app/Contents/MacOS/dcpomatic2_cli "$d"
done
Sharing if useful for anyone else or if anyone has any has any experience or ideas with this sort of workflow
Chris