######################################################

1. Download the latest version of ffmpeg (Static) and copy ffmpeg.exe from the “bin” folder to your desktop or prefered folder

2. Open an editor (like notepad.exe) and insert the following content:

ffmpeg.exe -i "%~1" -vf scale=1280:720,format=yuv420p,subtitles="%~n1.mkv" -c:a aac -b:a 160k -profile:v main -level 4.0 -preset medium -crf 18 "%~n1.mp4"

Save it as a batch file (.bat instead of .txt) on your desktop or prefered folder (same as ffmpeg.exe)

A short explanation for the parameters:
-vf scale=1280:720 => output resolution. You can look HERE for more information
-vf format=yuv420p => chroma subsampling. Forcing for compatibility reasons
-vf subtitles="%~n1.mkv" => subtitles. We assume it's included in the .mkv
-c:a aac => audio codec. You can look HERE for more information
-b:a 160k => audio bitrate. You can look HERE for more information
(Use "-c:a copy" instead of "-c:a aac" and "-b:a 160k" if you don't want to convert the audio)
-profile:v main => h264 profile. Forcing for compatibility reasons. You can look HERE for more information
-level 4.0 => h264 level. Forcing for compatibility reasons. You can look HERE for more information
-preset medium => compression/speed. Better preset means better compression but slower encode time. You can look HERE for more information
-crf 18 => compression quality. Lower value means better video quality (less compression) but bigger file size. You can look HERE for more information

3. Have your softsubbed video (.mkv) without any special characters (for avoiding error messages like “Error initializing filter ‘subtitles’ with args”) on your desktop or prefered folder (same as ffmpeg.exe and the batch file)

4. Drag & Drop your softsubbed video (.mkv) onto the batch file (.bat)

Advertisements