test.sh 426 B

12345678910111213
  1. #!/bin/bash
  2. fn=`basename "$1"`
  3. for th in 1 2 3 4; do
  4. time ./ffmpeg_g -threads $th -flags2 +fast -vsync 0 -y -t 30 -i "$1" -an -f framecrc "crc/$fn-$th.txt" >/dev/null 2>&1
  5. done
  6. ./ffmpeg_g -threads 1 -y -t 10 -i "$1" -an -f framecrc "crc/$fn-1-vsync.txt" >/dev/null 2>&1
  7. ./ffmpeg_g -threads 3 -y -t 10 -i "$1" -an -f framecrc "crc/$fn-3-vsync.txt" >/dev/null 2>&1
  8. md5 "crc/$fn-"[1234].txt
  9. echo
  10. md5 "crc/$fn-"*vsync.txt