Use ffprobe r92 and grep 

ffprobe -show_frames filemane.mpg  |  grep  [FRAME] -c  

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Daisuke Nishino
Sent: Friday, March 04, 2011 6:12 AM
To: [email protected]
Subject: [libav-user] Video frame count

Hi all,

I want to retrieve video frame count of a local media file.
What is the most reliable and fast way?

I'm currently using AVStream::nb_frames, but sometimes it is zero.
One possible way is to decode whole file and count successfull frames, but
it will be too slow.

I don't consider streaming video.

Thanks


--
Daisuke Nishino
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to