Using Handbrake in a Podcast Producer 2 Workflow

Monday, April 12, 2010
Following the instructions posted at the podcastproducer.org website this is how I did it:

<key>export-plugin-handbrake-9d5ebe0719a96619aab2174ee01bb8b0-encode</key>
<dict>
 <key>arguments</key>
 <array>
    <string>shell</string>
    <string>--basedir=$$Base Directory$$</string>
    <string>--</string>
    <string>$$GLOBAL::Workflow Resource Path$$/Tools/HandBreaker</string>
    <string>$$GLOBAL::Library Bundle Path$$/Contents/Resources/Working</string>
    <string>edit-core-master.mov</string>
    <string>export-plugin-handbrake-4904012a49adfecb2ef9c0a443efca19.mp4</string>
    <string>$$GLOBAL::Workflow Resource Path$$/Tools/HandBrakeCLI</string>
</array>

This calls the HandBrakeCLI binary from the Tools directory and a bash script that runs it with switches:

#!/bin/sh

basedir=${1}
infile=${2}
outfile=${3}
HandBrakeCLI=${4}

MAX_WIDTH='480'
ENCODER='x264'
FRAMERATE='29.97'
DEINTERLACE='--deinterlace="-1"'
VIDEO_BIT_RATE='450'
FORMAT="mp4"

"${HandBrakeCLI}" -i "${basedir}/${infile}" -o "${basedir}/${outfile}" \
${DEINTERLACE} -e ${ENCODER} -b ${VIDEO_BIT_RATE} -2 --turbo -O -I -f ${FORMAT} -r ${FRAMERATE} -a  1 -E faac -B 64 -6 dpl2 -R 48 -D 0.0 -X ${MAX_WIDTH} -m -x  \
cabac=0:ref=5:me=umh:bframes=0:subme=6:8x8dct=0:trellis=0:analyse=all -v

1 comments:

  • Alberto ZS

    Muy bueno Tu aporte

    y funcionó?