The vftnew_rhozet_rename_cod_progra.bat is the batch file used by Etere HiRes Transcoder to perform encoding/decoding operations, it is located in the Etere's installation directory and contains all the parameters required by the process and that will be launched by the Rhozet Carbon Coder application, the contents of this file are shown below:
vftnew_rhozet_rename_cod_progra.bat
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: THIS BATCH FILE CONVERTS FILES INTO A DESTINATION FILE with a carbon coder USING
:: THE Etere COD_PROGRAM, THE CONTROL FILE (tr) IS WRITTEN
:: INTO THE DEST FOLDER
:: -- ORIGINAL STUFF: SEA FILE MCL --
:: -- PREFERRED VERSION: THE NEW TRANSCODING SCHEMA ENC --
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo on
echo -----------------------------------
echo B A T C H F I L E S T A R T
echo -----------------------------------
echo * Date : %DATE%
echo * Time : %TIME%
echo * Sender : %VFT_SENDER%
echo * Lockfile Ext : %VFT_LOCKFILEEXT%
echo * IgnoreFile Ext : %VFT_IGNOREFILEEXT%
echo * DelayFile Ext : %VFT_DELAYFILEEXT%
echo * ResultFile Ext : %VFT_RESULTFILEEXT%
echo * Source Path : %VFT_SOURCEPATH%
echo * Source File : %VFT_SOURCEFILE%
echo * Source File NoExt : %VFT_SOURCEFILEN%
echo * Dest Path : %VFT_DESTPATH%
echo * Profile : %VFT_PROFILENAME%
echo * PROFILE NAME = insert the GUID from Carbon coder admin-tools-preseteditor
echo * Duration : %VFT_SOURCEDUR%
echo * AssetCode : %VFT_ASSETCODE%
echo * UniqueName : %VFT_UNIQUENAME%
echo -----------------------------------
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: ALWAYS NEEDED
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
SET inputFile=%VFT_SOURCEPATH%%VFT_SOURCEFILEN%.mxf
SET outputFilename=%VFT_SOURCEFILEN%.gxf
SET outputFile=%VFT_DESTPATH%%outputFilename%
SET outputResFile=%VFT_DESTPATH%%VFT_SOURCEFILEN%%VFT_RESULTFILEEXT%
SET outputFile2=%VFT_DESTPATH%%VFT_ASSETCODE%.gxf
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: PUT HERE YOUR TRANSCODING STUFFS
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ------------------------------
:: clean output and used files
:: ------------------------------
IF EXIST %outputfile% GOTO WRITE_RESULT
echo [%TIME%] Step 2, DELETE OUTPUT FILES: %outputFile%, %verifyFile%, %outputResFile%
DEL %outputFile%
DEL %outputResFile%
:: ------------------------------
:: execute encoding
:: ------------------------------
::echo EXECENCODE "%inputFile%" .. "%outputFile%"
echo [%TIME%] Step 3, Encoding
::%VFT_EXECENCODE% -input %inputFile% -output %outputFile% -loadprofile %VFT_PROFILENAME%
::etgraphcoding %inputfile% %outputfile% /X:WMV /P:05K /A:1
"C:\Program Files\Rhozet\Carbon Coder\rzcp.exe" -source:%inputFile% -target:%VFT_PROFILENAME% -targetdir:%VFT_DESTPATH%
:: ------------------------------
:: VERIFY RESULT
:: ------------------------------
echo [%TIME%] Step 4, TEST FOR RESULT: %outputFile%
IF EXIST %outputFile% goto WRITE_RESULT
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:OOPS_ERROR
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo [%TIME%] ERROR! DO NOT WRITE OUTPUT FILE
set ERRORLEVEL=4294967294
goto END_OF_BATCH
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:WRITE_RESULT
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo [%TIME%] OK! WRITE OUTPUT FILE
echo Result=%ERRORLEVEL%, OutputFile=%outputFile2% > %outputResFile%
ren %VFT_DESTPATH%%VFT_SOURCEFILEN%.gxf %VFT_ASSETCODE%.gxf
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:END_OF_BATCH
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
echo -----------------------------------------
echo B A T C H F I L E C O M P L E T E
echo -----------------------------------------
echo * Date : %DATE%
echo * Time : %TIME%
echo ------------------------------------------
In the file above you can see the command line which is responsible of the file transcoding:
"C:\Program Files\Rhozet\Carbon Coder\rzcp.exe" -source:%inputFile% -target:%VFT_PROFILENAME% -targetdir:%VFT_DESTPATH%
This command-line is launched including the following parameters which are specified by the action:
•-source: it is the file path and name of the file to be transcoded.
•-target: relates to the compression profile used for transcoding.
•-targetdir: is the folder where the final transcoded file will be placed.