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 diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index 4094e32..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].) +#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 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; + 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; 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 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 + + +