diff options
Diffstat (limited to 'ffmpeg.md')
-rw-r--r-- | ffmpeg.md | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 <value> out.mp4 + +Reasonable `crf` values could be 24 to 30. + ## Audio/video delay ffmpeg -i "$input" -itsoffset <offset in seconds> -i "$input" -map 1:v -map 0:a -c:a copy -c:v libx264 "$output" |