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.

15 lines
411 B

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