Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
documentation:informatique:linux:ffmpeg:index [2021/02/28 15:57] – f1sls | documentation:informatique:linux:ffmpeg:index [2021/02/28 17:09] (Version actuelle) – [UHD (4k / 3840×2160) ➜ HD (1920×1080)] f1sls | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
{{: | {{: | ||
====== FFMPEG (AVCONV) ====== | ====== FFMPEG (AVCONV) ====== | ||
+ | |||
+ | ===== QUALITY FACTOR ====== | ||
+ | |||
+ | ===== FASTSTART FOR WEB VIDEOS ===== | ||
+ | You can add '' | ||
+ | |||
+ | ===== UHD (4k / 3840×2160) ➜ HD (1920×1080) ===== | ||
+ | |||
+ | <code bash> | ||
+ | $ ffmpeg -i input.mp4 -s 1920x1080 -c:v libx264 -crf 18 -acodec copy output.mp4 | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | # | ||
+ | $ ffmpeg -i input.mp4 -vf scale=1920x1080 -sws_flags bicublin+full_chroma_int -preset veryslow -tune film output.mp4 | ||
+ | # | ||
+ | $ ffmpeg -i input.mp4 -vf scale=1920x1080 -sws_flags area+full_chroma_int -preset veryslow -tune film output.mp4 | ||
+ | </ | ||
+ | |||
+ | ==== SIMPLE RESCALING ==== | ||
+ | <code bash> | ||
+ | $ ffmpeg -i input.avi -vf scale=320: | ||
+ | </ | ||
+ | |||
+ | ==== KEEPING ASPECT RATIO ==== | ||
+ | <code bash> | ||
+ | $ ffmpeg -i input.mp4 -vf scale=320: | ||
+ | </ | ||
+ | |||
+ | ==== CHOOSING SCALING METHOD ==== | ||
+ | * Scaler documentation : https:// | ||
+ | <code bash> | ||
+ | # | ||
+ | # You can specify which algorithm is used for resizing with the -sws_flags option. For example, to use bilinear instead of the default bicubic scaling: | ||
+ | # | ||
+ | $ ffmpeg -i input.mp4 -vf scale=504: | ||
+ | # | ||
+ | # To set multiple flags you can combine them with a + sign. For example: | ||
+ | # | ||
+ | -sws_flags lanczos+full_chroma_inp | ||
+ | # | ||
+ | # You can also specify the options directly in the scale filter, for example: | ||
+ | # | ||
+ | -vf scale=1920x1080: | ||
+ | </ | ||
+ |