This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| docu:csheet:sysadm:files:compress_vids [2020/04/17 22:18] – admin | docu:csheet:sysadm:files:compress_vids [2020/04/17 22:21] (current) – admin | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| # even better compression with H.265 | # even better compression with H.265 | ||
| ffmpeg -i input.avi -vcodec libx265 -crf 20 output.avi | ffmpeg -i input.avi -vcodec libx265 -crf 20 output.avi | ||
| + | |||
| # faster, and more lossy compression | # faster, and more lossy compression | ||
| # depending on your needs, it could fit | # depending on your needs, it could fit | ||
| ffprobe input.mp4 | ffprobe input.mp4 | ||
| + | # | ||
| # search for " | # search for " | ||
| # example: 920 kb/s | # example: 920 kb/s | ||
| # 50% of quality loss == 450 kb/s aprox | # 50% of quality loss == 450 kb/s aprox | ||
| + | # | ||
| + | # If you dont see any difference on lower bitrate, set it lower | ||
| + | # it will compress even more | ||
| ffmpeg -i input.mp4 -b:v 450k output.mp4 | ffmpeg -i input.mp4 -b:v 450k output.mp4 | ||