This file contains 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/sh | |
clear | |
echo "Outputting some NIME data" | |
max=2013 | |
for ((i=2001; i<=$max; ++i )) ; | |
do | |
echo "NIME $i" | |
mdfind -count -onlyin $i music | |
mdfind -count -onlyin $i gesture | |
mdfind -count -onlyin $i action |
This file contains 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
% Read in C3D file | |
a=mcread; | |
% Fill gaps, in case there are holes in trajectories | |
b=mcfillgaps(a); | |
% Calculate velocities for all markers | |
d2v=mctimeder(b); | |
% Calculate vector length (norm/amplitude) of velocities |
This file contains 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
find . -name "*.eps" -exec epstopdf {} ";" |
This file contains 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/sh | |
cd $NAUTILUS_SCRIPT_CURRENT_URI | |
pdftk $@ burst output $@-%d.pdf |
This file contains 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
# Based on: https://unix.stackexchange.com/questions/294341/shell-script-to-separate-and-move-landscape-and-portrait-images | |
# make directories | |
mkdir portraits | |
mkdir landscapes | |
# Check that all images have correct rotation | |
jhead -autorot *.jpg | |
jhead -autorot *.JPG |
This file contains 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
find . *.jpg -exec jhead -autorot {} \; |
This file contains 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 | |
for i in *.jpg; | |
do | |
name=`echo $i | cut -d'.' -f1`; | |
convert "$i" \ | |
\( +clone -threshold -1 -negate -fill white -draw "circle 100,100 100,0" \) \ | |
-alpha off -compose copy_opacity -composite $name.png; | |
done |
This file contains 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
ffmpeg -i input.mp4 -ss 01:10:27 -to 02:18:51 -c:v copy -c:a copy output.mp4 |
This file contains 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
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=addition" dance_addition.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=grainmerge" dance_grainmerge.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=and" dance_and.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=average" dance_average.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=burn" dance_burn.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=darken" dance_darken.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=difference" dance_difference.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=grainextract" dance_grainextract.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=divide" dance_divide.mp4 | |
ffmpeg -i dance.avi -filter_complex "tblend=all_mode=dodge" dance_dodge.mp4 |
This file contains 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
ffmpeg \ | |
-i dance_addition.mp4 \ | |
-i dance_and.mp4 \ | |
-i dance_average.mp4 \ | |
-i dance_blend.mp4 \ | |
-i dance_burn.mp4 \ | |
-i dance_darken.mp4 \ | |
-i dance_difference.mp4 \ | |
-i dance_divide.mp4 \ | |
-i dance_dodge.mp4 \ |
OlderNewer