| |
| framecount [2019/06/26 23:00] – created beandog | framecount [2019/07/14 04:35] (current) – beandog |
|---|
| tmp=`tempfile` | tmp=`tempfile` |
| ffmpeg -i "$x" -vf showinfo -f null /dev/null 2>&1 | cut -d ' ' -f 4- | grep ^n > $tmp | ffmpeg -i "$x" -vf showinfo -f null /dev/null 2>&1 | cut -d ' ' -f 4- | grep ^n > $tmp |
| | ffmpeg -fflags +genpts -i "$x" -an -sn -vf showinfo -f null - 2>&1 | egrep 'i:(P|T|B)' > "$tmp" |
| num_p=`grep -c i:P "$tmp"` | num_p=`grep -c i:P "$tmp"` |
| num_t=`grep -c i:T "$tmp"` | num_t=`grep -c i:T "$tmp"` |