decided to actually go through git as was doing too many scripts...
uses ffmpeg to transcode a list of files into AV1 format.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
#Use ffprobe to find .mkv files with h264 encoding:
|
|
|
|
ffBin="/usr/bin/"
|
|
parentDir=$1
|
|
destDir="/tmp/transcode/"
|
|
mkdir -p "$destDir"
|
|
while read -r line;
|
|
do
|
|
codec="$( $ffBin/ffprobe -loglevel error -select_streams v:0 -show_entries \
|
|
stream=codec_name -of default=noprint_wrappers=1:nokey=1 "$line" )"
|
|
if ! [[ $codec == *"av1"* ]]
|
|
then
|
|
echo "$line" >>"$destDir/list.txt"
|
|
fi
|
|
done<<<"$( find "$parentDir" -name "*.mkv" -print )"
|