Differences
This shows you the differences between two versions of the page.
framecount [2019/06/26 17:00] beandog created |
framecount [2019/07/13 22:35] (current) beandog |
||
---|---|---|---|
Line 10: | Line 10: | ||
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"` |