ffmpeg -hide_banner -nostdin -vsync vfr -i botw-1-archive.mkv -vf "mpdecimate=frac=0.01,pp=ac,scale=w=min(iw\,1280):-4" -c:a libmp3lame -q:a 2 -c:v libx264 -preset veryslow -crf 24 -max_muxing_queue_size 99999 -movflags +faststart the.mp4 -vsync vfr :: try to prevent video/audio desync -i botw-1-archive.mkv :: input file -vf :: video filter chain mpdecimate=frac=0.01 :: remove duplicate frames; better quality pp=ac :: slight denoise / deblock scale=w=min(iw\,1280):-4 :: shrink video if wider than 1280px -c:a libmp3lame :: mp3 should work everywhere -q:a 2 :: audio at about 192 kbps -c:v libx264 :: the most popular codec for mp4 -preset veryslow :: can also use "slower" or "slow" -crf 24 :: higher value = smaller file -max_muxing_queue_size 99999 :: bug workaround -movflags +faststart :: less chance of corruption the.mp4 :: output file