How to reencode a movie with ffmpeg: ffmpeg -i input.mkv -f mp4 -metadata title="title" -acodec libfdk_aac -af "volume=0.5" -ac 2 -ab 192k -vcodec libx265 -x265-params lossless -crf 23 -threads 0 output.mp4 Read this to install all the tools you need to recode. You will also need lossless_slow in your preset-folder. You can only use the presets in this folder.