Skip to content

Instantly share code, notes, and snippets.

@jaqque
Last active December 26, 2015 04:09
Show Gist options
  • Save jaqque/7091037 to your computer and use it in GitHub Desktop.
Save jaqque/7091037 to your computer and use it in GitHub Desktop.
4-way videos
#!/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