Demonstration functional description (STM32F479I-EVAL and STM32F469I-DISCO)
UM1743
88/111
DocID026161 Rev 4
MakeMovie.bat
This is the main batch file used for the conversion process. Normally it is not required to be
changing this file, but it is required to adapt
Prep.bat
first. It could be called with the
parameters listed in
Since the FFmpeg output can differ strongly from the output of previous actions, the
MakeMovie.bat deletes all output files in the first place. The output folder is defined by in the
environmental variable %OUTPUT% in Prep.bat. After that it uses FFmpeg.exe to create
the required JPEG files for each frame. Afterwards it calls JPEG2Movie to create a single
EMF file which can be used by STemWin directly. After the conversion operation the result
can be found in the conversion folder under FFmpeg.emf. It also creates a copy of that file
into the source file folder. It will have the same name as the source file with a size-postfix
and .emf extension.
<X_SIZE>x<Y_SIZE>.bat
These files are small but useful helpers if several movie resolutions are required. The
filenames of the batch files itself are used as parameter '-s' for
FFmpeg.exe
. User can
Table 29. Variable description
Variable
Description
%OUTPUT%
Destination folder for the JPEG files. Will be cleared automatically
when starting the conversion with
MakeMovie.bat
.
%FFMPEG%
Access variable for the FFmpeg tool. Should contain the complete
path required to call
FFmpeg.exe
.
%JPEG2MOVIE%
Access variable for the JPEG2MOVIE tool. Should contain the
complete path required to call
JPEG2Movie.exe
.
%DEFAULT_SIZE%
Default movie resolution to be used. Can be ignored if one of the
<X-SIZE>x<Y-SIZE>.bat
files are used.
%DEFAULT_QUALITY%
Default quality to be used by FFmpeg.exe for creating the JPEG files.
The lower the number the better the quality (value 1 indicates the
best, value 31 the worst).
For more details refer to the FFmpeg documentation.
%DEFAULT_FRAMERATE%
Frame rate in frames/second to be used by FFmpeg. It defines the
number of JPEG files to be generated by FFmpeg.exe for each
second of the movie. For more details please refer to the FFmpeg
documentation.
Table 30. Parameters description
Parameter
Description
%1
Movie file to be converted
%2 (optional) Size to be used. If not given %DEFAULT_SIZE% of
Prep.bat
will be used.
%3 (optional) Quality to be used. If not given %DEFAULT_QUALITY% of
Prep.bat
will be used.
%4 (optional)
Frame rate to be used. If not given %DEFAULT_FRAMERATE% of
Prep.bat
will be
used.