0
Ich habe fünf videos und will sie in einem großen "streifen" mit allen fünf videos nebeneinander zu kombinieren.ffmpeg mosaik keep audio aller eingang videos
bisher Mein Code (nach this Beispiel):
ffmpeg
-i s-0-h-0.mp4 -i s-1-h-0.mp4 -i s-2-h-0.mp4 -i s-3-h-0.mp4 -i s-4-h-0.mp4
-filter_complex "
nullsrc=size=4240x478 [base];
[0:v] setpts=PTS-STARTPTS, scale=848x478 [vid1];
[1:v] setpts=PTS-STARTPTS, scale=848x478 [vid2];
[2:v] setpts=PTS-STARTPTS, scale=848x478 [vid3];
[3:v] setpts=PTS-STARTPTS, scale=848x478 [vid4];
[4:v] setpts=PTS-STARTPTS, scale=848x478 [vid5];
[base][vid1] overlay=shortest=1 [tmp1];
[tmp1][vid2] overlay=shortest=1:x=848 [tmp2];
[tmp2][vid3] overlay=shortest=1:x=1696 [tmp3];
[tmp3][vid4] overlay=shortest=1:x=2544 [tmp4];
[tmp4][vid5] overlay=shortest=1:x=3392
"
-c:v libx264 output.mkv
Dies ist jedoch enthält nur die Audio von Eingang 1.
Wie halte ich die Audio aller fünf Eingangs Videos?
Vielen Dank! Allerdings bekomme ich eine zu viele Eingaben für den "amix" -Filterfehler bei Verwendung von mehr als zwei Audiokanälen ([0: a] [1: a] amix funktioniert). Bin ich richtig, es als letztes Element zu filter_complex hinzuzufügen? – FSH
Korrigiert ...... – Mulvya
Ja, '[0: a] [1: a] [2: a] [3: a] [4: a] amix = Eingaben = 5'did der Trick – FSH