FFMPEG (AVCONV) []

Outils pour utilisateurs

Outils du site


FFMPEG (AVCONV)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
documentation:informatique:linux:ffmpeg:index [2021/02/28 15:57] – créée f1slsdocumentation:informatique:linux:ffmpeg:index [2021/02/28 17:09] (Version actuelle) – [UHD (4k / 3840×2160) ➜ HD (1920×1080)] f1sls
Ligne 1: Ligne 1:
-{{ :documentation:informatique:linux:ffmpeg:ffmpeg-logo.svg |}}+{{:documentation:informatique:linux:ffmpeg:ffmpeg-logo.svg?800}}
 ====== FFMPEG (AVCONV) ====== ====== FFMPEG (AVCONV) ======
 +
 +===== QUALITY FACTOR ======
 +
 +===== FASTSTART FOR WEB VIDEOS =====
 +You can add ''-movflags +faststart'' as an output option if your videos are going to be viewed in a browser. This will move some information to the beginning of your file and allow the video to begin playing before it is completely downloaded by the viewer. It is not required if you are going to use a video service such as YouTube. YouTube ​recommends using faststart, so they can begin re-encoding before uploads complete.
 +
 +===== 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>
 +
 +<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
 +</code>
 +
 +==== SIMPLE RESCALING ====
 +<code bash>
 +$ ffmpeg -i input.avi -vf scale=320:240 output.avi
 +</code>
 +
 +==== KEEPING ASPECT RATIO ====
 +<code bash>
 +$ ffmpeg -i input.mp4 -vf scale=320:-1 output.mp4
 +</code>
 +
 +==== CHOOSING SCALING METHOD ====
 +  * Scaler documentation : https://ffmpeg.org/ffmpeg-scaler.html
 +<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:376 -sws_flags bilinear output.mp4
 +#
 +# 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:flags=lanczos
 +</code>
 +
documentation/informatique/linux/ffmpeg/index.1614524244.txt.gz · Dernière modification : de f1sls