|
|
|
 |
| Tech
Tips
- Batch Operation |
|
Overview
All PixelTools PC stand-alone products can be
run in a batch mode to enable automatic processing of multiple files
with out attention.
Demo of Capability
The batch mode can be easily demonstrated by opening a DOS command
shell, changing to the directory where the PixelTools exe is located,
and then typing:
MpegRep c:\Sample\Source.avi
This should cause the MPEGRepairHD application to fire up, encode your
source file per your default parameters, and then shut down.
Details
Some important notes regarding running the batch mode:
The following commands are accepted:
MPEGRepair encode -› MpegRep
SourceFileName.Avi
{To encode SourceFileName.Avi using mpegrep.ini settings}
MPEGRepair decode -› MpegRep –d SourceMpegFile.mpg
{To decode, split,fix, or analyze SourceFileName.Avi using mpegrep.ini settings}
MPEGRepair analyze -› MpegRep –z
SourceMpegFile.mpg
{To run the Quick MPEG Properties analysis of SourceFileName.Avi and save results in log file}
MPEGRepair append -› MpegRep –a
Append01.mpg
{To Append all MPEG files in the sequence starting with Append01.mpg}
ExpertHD encode -› ExpertHD
SourceFileName.Avi
{To encode SourceFileName.Avi using Experthd.ini settings}
TransMux multiplex -› TransMux
SourceFileName.vbs
{To multiplex SourceFileName.MPG using Transmux.ini settings and file names}
TransMux split -› TransMux –d SourceMpegFile.mpg
{To split SourceFileName.MPG into elementary stream using Transmux.ini settings and file names}
ExpertH264 encode -› ExpH264
SourceFileName.Avi
{To encode SourceFileName.Avi int AVC file using ExpH264.ini settings}
ExpertH264 encode (verbose) -› ExpH264 –v SourceFileName.Avi
{To encode SourceFileName.Avi int AVC file using ExpH264.ini settings and outputting status logs}
The PixelTools application can be copied to
any folder on your system. The
application can be copied by copying all of the .exe and .dll files
to another directory. This is often more convenient when running
batch processes.
The PixelTools application will run using the
parameters set in its local ini file. For MPEGRepairHD for example, the MpegRep.ini
located in the directory where MpegRep.exe is located will be used
for encoding and decoding parameters. If you want different parameters
for each file to be encoded, you can create parameter files for each
file and then copy the custom parameters to MpegRep.ini just before
calling the application. An example of encoding multiple
files with multiple ini file appears below:
Copy File1.ini MPEGRepair.ini
MPEGRepair File1Frame0.Bmp
Copy Out.vbs File1.Mpg
Copy File2.ini MPEGRepair.ini
MPEGRepair File2Frame0.Bmp
Copy Out.vbs File2.Mpg
Copy File3.ini MPEGRepair.ini
MPEGRepair File3Frame0.Bmp
Copy Out.vbs File3.Mpg
The parameter file can contain the full path
name of the output file(s). You
can also have the application generate the output file name. If
you set the output file name as “-“, MpegRepairHD will
save the resultant output file in a file that is identical to the source
file name but with a .vbs output.
The best way to create an ini file is to
fire up the application, set your desired parameters, and then depress
the Save As button. The
ini file is a text file. You are welcome to edit the ini file,
but it should be noted that some items are not used in the current application.
Advanced
You can use more advanced batch commands to add flexibility to your
batch encoding.
To encode all files in a directory and move the resultant files to
another folder, you could write a batch file called EncodeAll.bat which
contains:
REM Process all .avi files in this folder
FOR %%j IN (*.avi) DO Call EncodeFile %%j
EncodeFile.bat can contain:
REM Encode Each file using the Custom.ini
copy Custom.ini MpegRep.ini
MpegRep %1
REM Move the resultant file to the k:\Output folder
move *.vbs k:\Output\%1
If your directory contains all of the dll and
exe application files, the above two batch files, and your source files,
calling EncodeAll.bat will call the EncodeFile.bat for each AVI file
in your directory. The
EncodeFile.bat will encoded the AVI file using the custom.ini parameters
and then copy the resultant file (which can be named with the same AVI
prefix but with .vbs extension.)
MPEGRepairHD
and ExpertWorkshop SDK are trademarks of PixelTools Corporation.
All other brand names are trademarks or registered trademarks of
their respected holders
©1998-2008 PixelTools Corporation |