savsanta icon

webm_bash_encode.sh

savsanta | PRO | 01/24/21 09:37:34 PM UTC (Edited) | 0 ⭐ | 720 👁️ | Never ⏰ | []
text |

640 B

|

None

|

0 👍

/

0 👎

#!/bin/sh
  # Convert the files in the list
 SAVE_FOLDER="$HOME/FINCODED"
file=$1
  echo "Utilizing local file: $file"
 while IFS= read -r line
 do
	echo "Current File Being Processed $line"
	line_item=$(basename $line)
    ffmpeg -i $line_item -c:v libvpx-vp9 -pass 1 -speed 4 -tile-columns 6 -frame-parallel 1 -an -c:a libopus -b:a 64k -f webm /dev/null
    ffmpeg -i $line_item -c:v libvpx-vp9 -b:v 2500K -crf 31 -threads 8 -pass 2 -speed 1 -tile-columns 6 -frame-parallel 1 -c:a libopus -b:a 64k -auto-alt-ref 1 -lag-in-frames 25 -f webm $line_item.processed.webm
	echo "The $line_item has been processed."
 done < "$file"		

Comments