From f4781e3f6f41c2f5971602790d7211ee97b64487 Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Tue, 21 Nov 2017 11:35:51 -0800 Subject: [PATCH 1/7] Created a compression script template for 540p h264s --- bash/make_h264_540p.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bash/make_h264_540p.sh diff --git a/bash/make_h264_540p.sh b/bash/make_h264_540p.sh new file mode 100755 index 0000000..2f9ccff --- /dev/null +++ b/bash/make_h264_540p.sh @@ -0,0 +1,6 @@ +g=6; +vb=16M; +for i; + do ffmpeg -i "$i" -s 960x540 -c:v libx264 -x264opts keyint=$g:scenecut=-1 -profile:v main -pix_fmt yuv420p -q 0 -strict -2 -vb $vb "${i%.*}_960x540_h264.mov" ; +done; + From 38b70f4645999c6ed852efe597dd087b2e61e6c5 Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Tue, 21 Nov 2017 11:36:42 -0800 Subject: [PATCH 2/7] A simple script to convert a folder with dng files from an alexa mini camera to a prores movie clip --- bash/dng2pr.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bash/dng2pr.sh diff --git a/bash/dng2pr.sh b/bash/dng2pr.sh new file mode 100755 index 0000000..cc704bd --- /dev/null +++ b/bash/dng2pr.sh @@ -0,0 +1,16 @@ +export IFS=$'\n' +n=0 +for i; + do + total=$(ls ./"$i"/*.dng | wc -l) + for j in $(find "$i" -type f -iname '*.dng'); + do + + n=$(($n+1)) + #converting + dcraw -vw -6 "$j" > .$i_dcraw_out.log 2> /dev/null; + echo "converting" '"'$i'"' to images ":" $((($n)*100/$total)) + done; + ffmpeg -r 24 -i "./"$i"/"$i"_"%06d".ppm" -f mov -c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le -strict -2 -vendor ap10 $i"_@24fps.mov" + rm *ppm +done From 0fe7bc366b0b23b61ef194914e5c469fb7cebdbc Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Tue, 21 Nov 2017 11:37:26 -0800 Subject: [PATCH 3/7] Changed the version of samba used to mount the server share --- bash/mount_pegasus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/mount_pegasus.sh b/bash/mount_pegasus.sh index 1a7271e..9c1630f 100755 --- a/bash/mount_pegasus.sh +++ b/bash/mount_pegasus.sh @@ -1,2 +1,2 @@ #!/bin/bash -sudo mount.cifs //mak-nas/pegasus /Volumes/pegasus -o username=eduardo,password=pgss@1046,domain=intra.makinestudios.com +sudo mount.cifs //mak-nas/pegasus /Volumes/pegasus -o credentials=/home/makine3d/.pgsscredentials,sec=ntlmv2,vers=2.0,gid=20,uid=1000,file_mode=0775,dir_mode=0775 From 56bb488cf4666e40bd7c4dbb1ee29eb6867ac05c Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Tue, 21 Nov 2017 11:38:51 -0800 Subject: [PATCH 4/7] The script that finds out the right device id for the wacom stylus, now trims the last tab in the output format --- bash/fix_wacom.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index 4094e32..e841ef8 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -2,7 +2,7 @@ #wacom_id=10 #makine #wacom_id="Wacom Intuos Pro M Pen stylus" -wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9].) +wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9]. | sed 's/\t//') xsetwacom --set "$wacom_id" button 2 3 xsetwacom --set "$wacom_id" button 3 2 From b81f20a7fb07b28ee5d0844018c5586dc9b8fd50 Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Tue, 21 Nov 2017 11:39:25 -0800 Subject: [PATCH 5/7] Increased the bitrate in the hq compression preset --- bash/make_hq_h264.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/make_hq_h264.sh b/bash/make_hq_h264.sh index fd3e338..fd4b431 100755 --- a/bash/make_hq_h264.sh +++ b/bash/make_hq_h264.sh @@ -1,4 +1,6 @@ +g=8; +vb=32M; for i; - do ffmpeg -i "$i" -c:v libx264 -profile:v high444 -pix_fmt yuv444p -q 0 -strict -2 -g 15 "${i%.*}_hq_h264.mov" ; + do ffmpeg -i "$i" -c:v libx264 -x264opts keyint=$g:scenecut=-1 -profile:v main -pix_fmt yuv420p -q 0 -strict -2 -vb $vb "${i%.*}_h264.mov" ; done; From b7a25e7de90f44ee2e4d0d79a2043a7ad00c0bb4 Mon Sep 17 00:00:00 2001 From: jorgevasquezp Date: Mon, 2 Jul 2018 10:55:49 -0700 Subject: [PATCH 6/7] changed the way the device ID gets recognized, to fit xsetwacom's new output format --- bash/fix_wacom.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index e841ef8..d48fbf5 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -2,7 +2,8 @@ #wacom_id=10 #makine #wacom_id="Wacom Intuos Pro M Pen stylus" -wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9]. | sed 's/\t//') +#wacom_id=$(xsetwacom --list devices | grep stylus | grep -o [0-9]. | sed 's/\t//') +wacom_id=$(xsetwacom --list devices | grep stylus | grep 'id\: [0-9].' -o | grep [0-9]. -o) xsetwacom --set "$wacom_id" button 2 3 xsetwacom --set "$wacom_id" button 3 2 From d037d1d455871d78b54e4e451b2ca3c3c25f6873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20V=C3=A1squez=20P=C3=A9rez?= Date: Wed, 4 Jul 2018 13:17:53 -0700 Subject: [PATCH 7/7] added script to connect the piano piano --- bash/play_piano_on_axiom.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 bash/play_piano_on_axiom.sh diff --git a/bash/play_piano_on_axiom.sh b/bash/play_piano_on_axiom.sh new file mode 100755 index 0000000..c16dc99 --- /dev/null +++ b/bash/play_piano_on_axiom.sh @@ -0,0 +1,9 @@ +qsynth & +sleep 2 +out=$(aconnect -o | grep client.*'FLUID Synth' | grep -o [0-9]*[\:] | sed 's/\://') +in=$(aconnect -o | grep client.*'USB Axiom 49' | grep -o [0-9]*[\:] | sed 's/\://') +echo aconnect $in $out +aconnect $in $out + + +