Skip to content

Instantly share code, notes, and snippets.

@carylee
Created November 8, 2020 18:50
Show Gist options
  • Save carylee/a13ae1a1ecb2f81c6536476f6dfbe895 to your computer and use it in GitHub Desktop.
Save carylee/a13ae1a1ecb2f81c6536476f6dfbe895 to your computer and use it in GitHub Desktop.
Virtual Choir ffmpeg script: 1000 Reasons
#!/bin/bash
ffmpeg -y \
-ss 16.02 -i "10kReasons-DanaB.mp4" \
-ss 24.3 -i "John La Fond - 20201025_150703[1].mp4" \
-ss 28.40 -i "Isaac - 2020-10-26 18.36.32 - FullSizeRender.mp4" \
-ss 6.65 -i "tess.mp4" \
-ss 26.7 -i "Jackie - JNC 10000.mp4" \
-ss 24.28 -i "Claire Gebben - 20201027_165558.mp4" \
-ss 23.85 -i "mike.mp4" \
-ss 27.03 -i "Joe Frost - IMG_0742.mp4" \
-ss 22.37 -i "Judy - IMG_1938.mp4" \
-ss 28.1 -i "Katie (S) - 20201023_121314.mp4" \
-ss 32.13 -i "Martha Oman - IMG_3021.mp4" \
-ss 21.49 -i "suze.mp4" \
-ss 19.66 -i "Matthew Kearns - FCUM10_MattKearns_Tenor_20201025.mp4" \
-ss 21.5 -i "Bill Sherertz - 10,000 Reasons - Bill.mp4" \
-ss 29.32 -i "cary.mp4" \
-ss 1.05 -i "piano.mp4" \
-ss 25.15 -i "Joyce Frost - IMG_4102.mp4" \
-ss 18.62 -i "jo gustafson - VID_20201026_124408871.mp4" \
-ss 23.80 -i "1000 Reasons.wav" \
-filter_complex " \
[0:v] setpts=PTS-STARTPTS [v0]; \
[1:v] setpts=PTS-STARTPTS [v1]; \
[2:v] setpts=PTS-STARTPTS [v2]; \
[3:v] setpts=PTS-STARTPTS [v3]; \
[4:v] setpts=PTS-STARTPTS [v4]; \
[5:v] setpts=PTS-STARTPTS [v5]; \
[6:v] setpts=PTS-STARTPTS [v6]; \
[7:v] setpts=PTS-STARTPTS [v7]; \
[8:v] setpts=PTS-STARTPTS [v8]; \
[9:v] setpts=PTS-STARTPTS [v9]; \
[10:v] setpts=PTS-STARTPTS [v10]; \
[11:v] setpts=PTS-STARTPTS [v11]; \
[12:v] setpts=PTS-STARTPTS [v12]; \
[13:v] setpts=PTS-STARTPTS [v13]; \
[14:v] setpts=PTS-STARTPTS [v14]; \
[15:v] setpts=PTS-STARTPTS [v15]; \
[16:v] setpts=PTS-STARTPTS [v16]; \
[17:v] setpts=PTS-STARTPTS [v17]; \
[v0][v1][v2][v3][v4][v5][v6][v7][v14][v15][v10][v11][v12][v13][v8][v9][v16][v17]xstack=inputs=18:shortest=1 \
:layout=0_0|w0_0|w0+w1_0|w0+w1+w2_0|w0+w1+w2+w3_0|w0+w1+w2+w3+w4_0|0_h0|w0_h0|w0+w1_h0|w0+w1+w2_h0|w0+w1+w2+w3_h0|w0+w1+w2+w3+w4_h0|0_h0+h1|w0_h0+h1|w0+w1_h0+h1|w0+w1+w2_h0+h1|w0+w1+w2+w3_h0+h1|w0+w1+w2+w3+w4_h0+h1 [grid] \
" \
-map "[grid]" \
-ss 3 \
-map 18:a:0 \
-b:a 256k \
-c:v libx264 \
-preset slow "1000 Reasons v3.mp4"
#-preset ultrafast -f matroska - | ffplay -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment