#/bin/bash

#GEM: ver: 0.93.git 54b4b7c
#GEM: compiled  on Mar 15 2016

nice -n -17 \
/usr/bin/puredata \
-d 4 \
-alsa \
-alsamidi \
-r 44100 \
-blocksize 256 \
-audiobuf 40 \
-path /home/rep/Sources/Gem \
-path /home/rep/pd-externals/pmpd \
-path /usr/lib/pd/extra/ggee \
-path /usr/lib/pd/extra/iemlib \
-path /usr/lib/pd/extra/unauthorized \
-path /usr/lib/pd-extended/extra/flatgui \
-path /data/Projets/2015_VJSet/100.PdMTL \
-lib Gem:pmpd:zexy:flatgui \
-verbose \
-open /data/Projets/2015_VJSet/LIVE.pd \

#OPTIONS PAS RETENUES
#-rt \
#-noprefs \
#pasuspender -- \
#-noprefs -nosleep -portaudio

#--------------------------------------------------------
# BACKUP INDIQUANT COMMENT CAPTURER L'ÉCRAN AVEC FFMPEG :
#modprobe v4l2loopback &&
#ffmpeg -f x11grab -r 25 -s 256x256 -follow_mouse centered -show_region 1 -i :0.0+0,0 -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video0 &&
#puredata -rt -sleepgrain 1 -noaudio -alsamidi ./LIVE.pd

#--------------------------------------------------------
# NORMALISATION AUDIO AVEC FFMPEG
#ffmpeg-normalize -u -v -o -f -m -l 0 *.mp4

#--------------------------------------------------------
# COMPRESSION X264 (AVEC FFMPEG PRESETS) :
#ffmpeg -i REMIFRAISSE_Hommage_Nantes-01NOV2014.mp4 -c:v libx264 -preset slow -crf 14 -c:a copy REMIFRAISSE_Nantes01112014_ffmpeg.2.mp4