Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set -e
- clear
- printf " ============================\n| |\n| Minimal FFMPEG Processor |\n| By Dvx3, Marco Filippone |\n| |\n ============================\n\n"
- input_file=""
- printf "BEWARE: DON'T USE DIRECTORIES AND FILES WITH WHITESPACES (NEITHER USER DIRECTORIES)\n"
- printf "\nDrag and drop destination folder, and press enter: "
- read destination_folder
- if [ ! -d "$destination_folder" ]; then
- printf "\nDirectory does NOT exist, exiting...\n"
- exit 1
- fi
- touch /tmp/FFMPEGp.tmp
- while [ "$input_file" != "e" ]
- do
- printf "\nDrag and drop file to be processed, and press enter (or press 'e' and enter to end entering files, and start processing): "
- read input_file
- if [ "$input_file" != "e" ]
- then
- if [ ! -f "$input_file" ]; then
- printf "\nFile does NOT exist, exiting...\n"
- exit 1
- fi
- echo "$input_file" | tee -a /tmp/FFMPEGp.tmp >/dev/null
- fi
- done
- printf "\nProcessing..."
- temporary_file="/tmp/FFMPEGp.tmp"
- while IFS= read -r line
- do
- basename=$(basename "$line")
- full_dpath="$destination_folder/$basename"
- ffmpeg -loglevel quiet -hwaccel auto -i "$line" -filter:a "crossfeed=strength=0.3:range=0.5","extrastereo=m=0.0:c=false","highpass=f=80:t=q:w=0.8","afftdn=nr=8.5:nt=c:bn=125|250|520|745|920","deesser=i=0.12","equalizer=f=110:t=q:w=1.12:g=2","equalizer=f=285:t=q:w=3:g=-3","equalizer=f=500:t=q:w=2.72:g=-4","equalizer=f=1030:t=q:w=1.95:g=2","highshelf=g=3:f=4250:t=q:w=0.6","loudnorm=i=-16:lra=14:tp=-0.8:dual_mono=true" -c:a aac -ab 320k -ar 48000 -c:v libx264 -coder ac -b:v 10000000 -x264-params keyint_min=15:b-bias=2 -preset slow "$full_dpath" -y
- done <"$temporary_file"
- rm /tmp/FFMPEGp.tmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement