From 74392a4a5eb41037f1cbcf0fdaa318f69d796895 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 10 Jul 2024 03:11:59 +0200 Subject: Add video compression with H.265 --- ffmpeg.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ffmpeg.md') diff --git a/ffmpeg.md b/ffmpeg.md index 033c5e4..764c89e 100644 --- a/ffmpeg.md +++ b/ffmpeg.md @@ -24,6 +24,14 @@ Works for audio, too. * `-b:a 192k`: specify audio bitrate to 192 kbps * `-b:v 2M`: specify video bitrate to 2 mbps +### Encoding + +H.265 is one of the top recommended formats, for size:quality ratio. + + ffmpeg -i in.mp4 -vcodec libx265 -crf out.mp4 + +Reasonable `crf` values could be 24 to 30. + ## Audio/video delay ffmpeg -i "$input" -itsoffset -i "$input" -map 1:v -map 0:a -c:a copy -c:v libx264 "$output" -- cgit v1.2.3