diff --git a/bash/dpx.sh b/bash/dpx.sh new file mode 100755 index 0000000..e3cb939 --- /dev/null +++ b/bash/dpx.sh @@ -0,0 +1,62 @@ +while getopts "n:r:w:b:" opt; do + case ${opt} in + n ) + start_number=$OPTARG + ;; + r ) + frame_rate=$OPTARG + ;; + w ) + imax=$OPTARG + ;; + b ) + imin=$OPTARG + ;; + \? ) + echo "Invalid option: $OPTARG" 1>&2 + ;; + : ) + echo "Invalid option: $OPTARG requires an argument" 1>&2 + ;; + esac +done + +if [ -z "$start_number" ] +then + n=; +else + n='-start_number '$start_number; +fi + +if [ -z "$frame_rate" ] +then + r=; +else + r='-r '$frame_rate; +fi + +if [ -z "$imax" ] +then + w=; +else + w='-vf colorlevels=rimax='$imax':gimax='$imax':bimax='$imax''; +fi + +if [ -z "$imin" ] +then + b=; +else + b=':rimin='$imin':gimin='$imin':bimin='$imin''; +fi + +shift "$(($OPTIND -1))" + + + +for i; + do + output=$(echo $i | sed 's/_%0[[:digit:]]d//'); + ffmpeg $n $r -i "$i" $w$b -f mp4 -c:v libx264 -profile:v main -pix_fmt yuv420p -strict -2 -crf 16 -bf 0 "${output%.*}_h264.mp4" ; +done; +##ffmpeg $n $r -i "$i" $w$b -f mp4 -c:v libx264 -profile:v main -pix_fmt yuv420p -strict -2 -crf 16 -movflags faststart -bf 0 "${output%.*}_h264.mp4" ; +##ffmpeg $n $r -i "$i" $w$b -f mov -c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le -strict -2 -vendor ap10 "${output%.*}_pr4444.mov" ; diff --git a/bash/fix_wacom.sh b/bash/fix_wacom.sh index d48fbf5..061d29d 100755 --- a/bash/fix_wacom.sh +++ b/bash/fix_wacom.sh @@ -4,7 +4,5 @@ #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 'id\: [0-9].' -o | grep [0-9]. -o) -xsetwacom --set "$wacom_id" button 2 3 -xsetwacom --set "$wacom_id" button 3 2 - - +xsetwacom --set "$(($wacom_id + 0))" button 2 3 +xsetwacom --set "$(($wacom_id + 0))" button 3 2 diff --git a/bash/get_wd.sh b/bash/get_wd.sh new file mode 100755 index 0000000..2231ee9 --- /dev/null +++ b/bash/get_wd.sh @@ -0,0 +1,7 @@ +#/usr/bin/bash +for i; + do + link=$(curl $i | grep -o --color=auto 'http[^"]*\=view' | sed 's,\\,,g'); + wget $link; + done +for i in *mp4*; do mv $i ${i%\?*}; done diff --git a/bash/getyt.sh b/bash/getyt.sh new file mode 100755 index 0000000..ff14f2d --- /dev/null +++ b/bash/getyt.sh @@ -0,0 +1,10 @@ +qurl="https://www.youtube.com/results?search_query=" +qstring="Octonauts Poison Dart Frogs" + +for i; + + do temp=$(curl -s $qurl$(echo $i | sed 's/\s/+/g') | grep -o href\=\"\/watch\?v\=[^\"]* | head -1) + code=$(echo $temp | sed 's/href\=\"\/watch\>?v\=//') + echo $code + youtube-dl -f bestvideo+bestaudio "https://www.youtube.com/watch?v="$code +done; diff --git a/bash/make_today_folder.sh b/bash/make_today_folder.sh new file mode 100755 index 0000000..a1e292b --- /dev/null +++ b/bash/make_today_folder.sh @@ -0,0 +1,5 @@ +#!/usr/bin/bash +TODAY_FOLDER=$(date +"%m%d%y") +if [ ! -d "$TODAY_FOLDER" ]; then + mkdir "$TODAY_FOLDER" +fi diff --git a/bash/ytdlpl.sh b/bash/ytdlpl.sh index e3bf75a..8898fde 100755 --- a/bash/ytdlpl.sh +++ b/bash/ytdlpl.sh @@ -1,8 +1,26 @@ +format=bestvideo+bestaudio +format=22 +while getopts ":a" opt; do + case $opt in + a) + format=bestaudio + ;; + \?) + echo "Invalid option: -$OPTARG" >&2 + ;; + esac +done + export IFS=$'\n'; for i; do - #youtube-dl -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f bestaudio "$i" - youtube-dl -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f bestvideo+bestaudio "$i" + #Audio--> + youtube-dl -x --audio-format vorbis --add-metadata --xattrs --embed-subs --embed-thumbnail --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -i -f bestaudio --audio-quality 192k "$i" + #youtube-dl --xattrs --embed-subs --embed-thumbnail --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -i -f bestaudio "$i" + #youtube-dl -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f $a "$i" + #youtube-dl --add-metadata --xattrs --embed-subs --embed-thumbnail --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -i -f bestvideo+bestaudio "$i" + #youtube-dl --add-metadata --xattrs --embed-subs --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" -f bestvideo+bestaudio "$i" + #VIDEO--> + #youtube-dl --add-metadata --xattrs --embed-subs --all-subs -o "%(playlist)s/%(playlist_index)s - %(title)s - %(format)s.%(ext)s" -i -f $format "$i" + done; - - diff --git a/jsx/EXP_centerTextLayerAnchor.jsx b/jsx/EXP_centerTextLayerAnchor.jsx old mode 100644 new mode 100755 diff --git a/jsx/MKN_DC_GEN_EP_FullFrame_ToolkitScript.jsx b/jsx/MKN_DC_GEN_EP_FullFrame_ToolkitScript.jsx old mode 100644 new mode 100755 diff --git a/jsx/ReplaceAllFiles.jsx b/jsx/ReplaceAllFiles.jsx old mode 100644 new mode 100755 diff --git a/jsx/afx_proto_tools.jsx b/jsx/afx_proto_tools.jsx old mode 100644 new mode 100755 diff --git a/jsx/dependencySearcher.jsx b/jsx/dependencySearcher.jsx old mode 100644 new mode 100755 diff --git a/jsx/fontSearcher.jsx b/jsx/fontSearcher.jsx old mode 100644 new mode 100755