-
-
Save Bioblaze/4c8cb5d777796f368725205227387c0d to your computer and use it in GitHub Desktop.
Generate a virtual quartet video
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffmpeg -y \ | |
-ss 5 -i "elisabeth.mp4" \ | |
-ss 0 -i "ryan.MOV" \ | |
-ss 7.5 -i "cary.mp4" \ | |
-ss 2.9 -i "jackie.MOV" \ | |
-ss 9 -i "tess.MOV" \ | |
-ss 9 -i "Water River Spirit Grace.m4a" \ | |
-filter_complex " \ | |
[0:v] setpts=PTS-STARTPTS, crop=608:720:in_w/2-out_w/2+100:100, scale=912:1080 [v0]; \ | |
[1:v] setpts=PTS-STARTPTS, crop=in_w:in_w*(540/504):0:400, scale=504:540 [v1]; \ | |
[2:v] setpts=PTS-STARTPTS, crop=in_w:in_w*(540/504):0:200, scale=504:540 [v2]; \ | |
[3:v] setpts=PTS-STARTPTS, crop=in_w:in_w*(540/504):0:300, scale=504:540 [v3]; \ | |
[4:v] setpts=PTS-STARTPTS, crop=in_w:in_w*(540/504):0:150, scale=504:540 [v4]; \ | |
[v0][v1][v2][v3][v4]xstack=inputs=5:shortest=1 \ | |
:layout=0_0|w0_0|w0_h1|w0+w1_0|w0+w1_h1[grid] \ | |
" \ | |
-map "[grid]" \ | |
-shortest \ | |
-ss 6.3 \ | |
-c:a copy \ | |
-map 5:a:0 \ | |
-c:v libx264 \ | |
"Water, River, Spirit, Grace.mp4" | |
#-f matroska - | ffplay - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment