Last active
December 26, 2015 04:09
-
-
Save jaqque/7091037 to your computer and use it in GitHub Desktop.
4-way videos
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/zsh | |
typeset -a vid win opts | |
vid=( | |
"After Effects- DNA Strand.mp4" | |
"HD LAVA LAMP Ambient Video Wall Art -- 30 Minute Relaxing Ambient Video Clip.mp4" | |
"Crawling Neutrophil Chasing a Bacterium.mp4" | |
"ekg flatline.mp4" | |
) | |
x=3 | |
y=7 | |
xy=(-x 900 -y 506) | |
win=( | |
$((0+x))%:$((0+y))% | |
$((100-x))%:$((0+y))% | |
$((100-x))%:$((100-y))% | |
$((0+x))%:$((100-y))% | |
) | |
opts=( | |
-nosound | |
-really-quiet | |
-noborder | |
-loop 0 | |
-noconsolecontrols | |
) | |
for i in {1..4}; do | |
mplayer $opts $xy -geometry $win[$i] $vid[$i] & | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment