ENCODING PROFILES
Kmttg installation comes with an encode folder that contains files with .enc suffixes. These files define the entries that are shown in the Encoding Profile cyclic in the main kmttg window. You can create more encoding profiles of your own by adding additional .enc files to this folder. Kmttg expects these files to be in a very specific syntax so it’s highly recommended if you create your own file to start with a copy of an existing one.
- Lines starting with “#” are comments and you can add as many comment lines as you wish since they are ignored.
- There are 3 keywords that should be present:
<description>, <command>, <extension>
. There should be only 1 line after each.
- If you require more than 1 command for your encoding then you can make a batch script and define that as the command to be run
- There are a few uppercase keywords that kmttg understands and will replace with full paths appropriately: INPUT, OUTPUT, FFMPEG, HANDBRAKE, MENCODER, PERL
- Starting with release v0p7l there are 2 new special keywords available that are intended for use with ffmpeg encoding profiles to work around inability to specify fixed height with variable width, or fixed width with variable height resolutions. kmttg uses ffmpeg to determine the display aspect ratio (DAR) of the input video file and then uses that ratio to compute what to use for corresponding WIDTH or HEIGHT dimension, rounded to nearest even number. The 2 special keywords are:
- #xHEIGHT - (Example: -s 640xHEIGHT) In this example if input DAR is 4:3 then HEIGHT would be computed as 480, if input DAR is 16:9 it would be computed as 360.
- WIDTHx# - (Example: -s WIDTHx360) In this example if input DAR is 4:3 then HEIGHT would be computed as 480, if input DAR is 16:9 it would be computed as 640.
NOTE: Look at encode/ff_iphone.enc as an example of a profile using this feature.
There are comments in the pre-defined .enc file which hopefully makes it pretty obvious how to properly define these files.
NOTE: You MUST use all lowercase file names with no spaces if creating your own .enc files.
NOTE: Encoding profiles are designed to work with certain versions of encoders, so if you use newest versions of ffmpeg or handbrake they may not work. If you want to use latest versions then you may have to create your own encoding profiles that work with them.
VideoRedo encoding profiles
- If you are running on Windows and have VideoRedo, you can use encoding profiles in VideoRedo TVsuite 4 or later in kmttg if you wish.
- Under File-Config-VideoRedo turn on Show VideoRedo encoding profiles setting and kmttg will automatically list the available encoding profiles in the Encoding Profile list.
- Any additional custom profiles you create and save in VideoRedo will be visible to kmttg.
It would be useful to list the profiles that come with kmttg, and their meanings.