Sure... Benjamin, it will be a pleasure for me to try to support you.
in this workflow, i use the cmd processor for it, you will like it i think. All Settings including Output Directory etc.. are set in the first "GLOBAL VARS" processor, check it out.
The command looks like this:
Code: Select all
cmd /C "cd "%s_working_directory%" && "%s_ffmpeg%" -report -y -i "%s_source%" %s_encoding_settings% -pass 1 -f mp4 /dev/null && "%s_ffmpeg%" -y -report -i "%s_source%" %s_encoding_settings% -pass 2 "%s_outputfile%"" && "%s_ffmpeg%" -report -y -i "%s_source%" %s_encoding_settings% -pass 1 -f mp4 /dev/null && "%s_ffmpeg%" -y -report -i "%s_source%" %s_encoding_settings% -pass 2 "%s_outputfile%""
Exploded this means:
1) [cmd /C ""] the doublequotes of cmd /C start before the first command is executed and end after the last command, this is Standard in a cmd processor node
2) then we have 3 DOS commands in one line, they are splitted by &&.
3) First DOS command, everyone should know what this means: [cd "%s_working_directory%"]
4) Then we have 2 ffmpeg commands:
First pass:
Code: Select all
"%s_ffmpeg%" -report -y -i "%s_source%" %s_encoding_settings% -pass 1 -f mp4 /dev/null
Second pass:
Code: Select all
"%s_ffmpeg%" -y -report -i "%s_source%" %s_encoding_settings% -pass 2 "%s_outputfile%"
%s_ffmpeg% translates to wherever ffmpeg.exe resides
-report and -y is optional but a good idea, -report will write a log into the directory where we first did cd into
-y will disable the promting for "do you want to override" - just in case ffmpeg is asking
Then -i "s_source" should be clear.
Then %s_encoding_settings% will be replaced by what you did configure in the first GLOBAL VARS node. Note that we do not wrap the encoding settings in "" because they are not a "file path"
Then -f mp4 for the first pass don't influence, it just prevents ffmpeg from complaining that the output format is not clear.
Then -pass 1 or 2 is hardcoded, it is not a user variable because we will always need this value and it will never change.
Last but not least the output file for the second ffmpeg command (that contains pass 2). %s_outputfile% translates to whatever you input in GLOBAL VARS for the outputfile variable. Note that in difference to the "Custom FFMpeg" node, the output will be written directly into the output directory and we don't need a delivery node.
Let me know any question
Cheers,
emcodem