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.

17 lines
455 B

1 year ago
1 year ago
1 year ago
  1. #!/bin/bash
  2. #Use ffprobe to find .mkv files with h264 encoding:
  3. ffBin="/usr/bin/"
  4. parentDir=$1
  5. destDir="/tmp/transcode/"
  6. mkdir -p "$destDir"
  7. while read -r line;
  8. do
  9. codec="$( $ffBin/ffprobe -loglevel error -select_streams v:0 -show_entries \
  10. stream=codec_name -of default=noprint_wrappers=1:nokey=1 "$line" )"
  11. if ! [[ $codec == *"av1"* ]]
  12. then
  13. echo "$line" >>"$destDir/list.txt"
  14. fi
  15. done<<<"$( find "$parentDir" -name "*.mkv" -print )"