Here you can find some interesting features for mediaEngine and ways of how it could be used.
Performance optimization for deinterlacing
In the video conversion settings that you can find in the [VideoConverterSettings] area, there is a setting:
DeinterlacerMethod=1 # 0 = default, 1 = high quality, 2 = field interpolation, 3 = fast
which makes a huge difference in the video processing performance. By default, mediaEngine uses a high-quality deinterlacing method. This method is optimized, but the best quality requires system resources and time. It makes the overall transcoding speed for this mode lower compared to the other options.
With the fast setting, the quality of deinterlacing is lower, but the processing speed is faster.
The fastest result can be reached with the "field interpolation" option. The resulting quality is low, so it's better to use this mode when the speed matters much more than quality, for example, for resolutions lower than HD.
Statis audio gain adjustment
You can change the audio loudness in the recorded video with an extra attribute in the arguments for mediaEngine.
For example:
transcode.exe -i source.wav -a:0 "as:Codec=PCM&af:Volume=+6dB" -m:0 ms:MuxerType=WAV -o:0 MuxerIDs=0 -o adjust.wav
This "af:Volume" means "audio filter Volume", and "+6dB" means "add to the overall audio gain 6 dB".
If "dB" is specified in the "af:Volume" argument, then the value is in dB. Both positive and negative values are possible, e.g. +3dB, -10dB, etc.
Without the "dB", you set a relative gain change. For example, "0.5" means to reduce the volume to 50%, and "2.0" increases the volume to 200%.
Chunk recording and MXF files naming templates
You can set a template for MXF files. This is useful when you record files one by one in chunks, for example, with a capture device or a network stream as a source.
To split the recording, you should use the following argument:
-sp <time in ms>ms desired splitting chunk size (can be larger depending on next I-frame)
And then, you can set the output file name using the following placeholders:
%YYYY | adds the current year to the filename |
%MM | adds the current month to the filename |
%DD | adds the current day to the filename |
%hh | adds the hour of the local time to the filename |
%mm | adds the minutes of the local time to the filename |
%ss | adds the seconds of the local time to the filename |
%ms | adds the milliseconds of the local time to the filename |
%thh | adds the hour of the start timecode to the filename |
%tmm | adds the minutes of the start timecode to the filename |
%tss | adds the seconds of the start timecode to the filename |
%tff | adds the frames (edit rate) of the start timecode to the filename |
%tms | adds the milliseconds of the start timecode to the filename |
%d | adds the current chunk ID to the filename |
%0<n>d |
adds the zero-based current chunk ID (0..N) with at least <n> digits to the filename: If a %d parameter is not specified then the chunk ID is attached to the basename: |