Full example:
QMIN=1 QMAX=4 RESOLUTION=480 SUBTITLE_OPTIONS='FontName=Arial,FontSize=22,OutlineColour=&H10000000,BorderStyle=3' reencode-with-subs mkv
Quality control:
QMIN=1 QMAX=4
Constrain the (vertical) resolution:
RESOLUTION=480
Use all CPU cores:
CUSTOM_OPTIONS='-threads 0'
Take only the first audio stream:
CUSTOM_OPTIONS='-map 0:v -map 0:a:0'
Subtitle rendering options – large font with a semi-opaque background:
SUBTITLE_OPTIONS='FontName=Arial,FontSize=22,OutlineColour=&H10000000,BorderStyle=3'
Same, but with subtitles at the top of the screen:
SUBTITLE_OPTIONS='FontName=Arial,FontSize=22,OutlineColour=&H10000000,BorderStyle=3,Alignment=6'