ffprobe -v quiet -print_format json -show_streams -count_packets SOURCE
-count_packets
옵션으로 header에 정보가 없더라도 frame count(nb_read_packets
)를 셀 수 있음.
ffprobe -v error -select_streams v:0 -count_packets -show_entries stream=nb_read_packets -of csv=p=0 SOURCE