werafollow.blogg.se

Ffmpeg scale 1080p
Ffmpeg scale 1080p











(Use "-c:a copy" instead of "-c:a aac_mf" and "-b:a 192k" if you don't want to convert the audio) x264-params colormatrix=bt709 => forcing the right colour matrix bitrate and buffer size.įorcing a limit for compatibility reasons. maxrate 20M -bufsize 25M => limiting the max. Lower value means better video quality (less compression) but bigger file size. Better preset means better compression but slower encode time. preset veryfast => compression algorithm/speed. Forcing for compatibility reasons -vf subtitles=" % ~n1% ~x1" => subtitles. vf format=yuv420p => chroma subsampling. txt) on your desktop or prefered folder (same as ffmpeg.exe) A short explanation for the parameters: -vf scale=1280x720:flags=spline => output resolution with downscale method.

ffmpeg scale 1080p

Save it as a batch file (.bat instead of. Open an editor (like notepad.exe) and insert the following content: pushd %~dp0įfmpeg.exe -i "%~1" -vf scale=1280x720:flags=spline,format=yuv420p,"subtitles='%~n1'%~x1" -map_metadata -1 -movflags faststart -c:v libx264 -profile:v main -level:v 4.0 -preset veryfast -crf 16 -maxrate 20M -bufsize 25M -x264-params colormatrix=bt709 -c:a aac_mf -b:a 192k "%~n1_720p.mp4"įfmpeg.exe -i "%~1" -vf format=yuv420p,"subtitles='%~n1'%~x1" -map_metadata -1 -movflags faststart -c:v libx264 -profile:v main -level:v 4.0 -preset veryfast -crf 17 -maxrate 20M -bufsize 25M -x264-params colormatrix=bt709 -c:a aac_mf -b:a 192k "%~n1_1080p.mp4"

ffmpeg scale 1080p

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













Ffmpeg scale 1080p