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 16:18] – 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) ===== | ===== UHD (4k / 3840×2160) ➜ HD (1920×1080) ===== | ||
+ | |||
<code bash> | <code bash> | ||
- | $ ffmpeg -i inVideo.mp4 -s 1920x1080 -c:v libx264 -crf 18 -acodec copy outVideo.mp4 | + | $ 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 ==== | ==== SIMPLE RESCALING ==== | ||
<code bash> | <code bash> | ||
+ | $ ffmpeg -i input.avi -vf scale=320: | ||
</ | </ | ||
==== KEEPING ASPECT RATIO ==== | ==== KEEPING ASPECT RATIO ==== | ||
<code bash> | <code bash> | ||
- | $ ffmpeg -i inVideo.mp4 -vf scale=320: | + | $ ffmpeg -i input.mp4 -vf scale=320: |
</ | </ | ||
Ligne 21: | Ligne 35: | ||
# | # | ||
# 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: | # 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 inVideo.mp4 -vf scale=504: | + | # |
+ | $ ffmpeg -i input.mp4 -vf scale=504: | ||
# | # | ||
# To set multiple flags you can combine them with a + sign. For example: | # To set multiple flags you can combine them with a + sign. For example: | ||
+ | # | ||
-sws_flags lanczos+full_chroma_inp | -sws_flags lanczos+full_chroma_inp | ||
+ | # | ||
+ | # You can also specify the options directly in the scale filter, for example: | ||
+ | # | ||
+ | -vf scale=1920x1080: | ||
</ | </ | ||