Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- avcheck()
- {
- avprobe "$1" -show_packets 2>/dev/null |
- awk -F'=' -vN="$1" '
- /^\[/ { if (arm && k["codec_type"]=="video") { last=k["dts_time"]; # printf "%s", k["flags"];
- }; delete k; arm=1; next; }
- arm { k[$1]=$2; }
- $0=="codec_type=video" { frames++; }
- END { printf("%-40s %d:%02d:%02d %s\n", N, last/3600, last/60%60, last%60, frames); }'
- }
- for a
- do
- avcheck "$a"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement