FFmpeg - Ändern Sie die Auflösung des video mit Seitenverhältnis

alle.

So ändern Sie die Auflösung des video mit Seitenverhältnis mit FFmpeg?

Gibt es Optionen
http://manpages.ubuntu.com/manpages/oneiric/man1/ffmpeg.1.html

       -s size
       Set frame size. The format is wxh (ffserver default = 160x128,
       ffmpeg default = same as source).  The following abbreviations are
       recognized:

und

       -aspect aspect
       Set the video display aspect ratio specified by aspect.

       aspect can be a floating point number string, or a string of the
       form num:den, where num and den are the numerator and denominator
       of the aspect ratio. For example "4:3", "16:9", "1.3333", and
       "1.7777" are valid argument values.

Zum Beispiel habe ich zwei input-videos:

  • mit 200*400 Auflösung
  • mit 400*700 Auflösung

Ich brauche, um video-Ausgang mit 100*200 Auflösung.

Wenn ich werde ffmpeg mit -s 100x200, dann zweite video haben schlechte Seitenverhältnis.

Wie kann ich beschränken video-Ausgang Breite, mit auto-Aspekt-Verhältnis von Höhe?

Zum Beispiel möchte ich angeben, für den video-Ausgang nur Breite 100px und ffmpeg muss automatisch berechnen, die Höhe mit dem richtigen Seitenverhältnis.

Für das erste video, das wird es sein:

200/100=2

400/2=200

Ie 100x200

Zweiten video wird es werden:

400/100=4

700/4=75

Ie 100x75

Ist es möglich?

InformationsquelleAutor Arthur | 2014-06-06
Schreibe einen Kommentar