[FFmpeg-user] ffmpeg and stream analysis

Ben Barker ben at bbarker.co.uk
Wed Apr 6 10:42:17 CEST 2016


Hi,

I think I know the answer to this question before I ask it, but would feel
silly if it turned out I had missed something, so here goes:

As it stands, using ffmpeg I can join a stream and, providing I use a
verbose enough logging, can get an idea of the number of RTP dropped
packets over a given period by grepping the output. Likewise I can gather
various other bits of info about the stream from other parts of the output
- like codec type and (sometimes) average bitrate.

I can't seem to find any way though of finding the total number of
expectedpackets (from which I could calculate percentage packet loss), or
of outputing the information that is available in some kind of machine
readable form that would not require grepping.

I thought of using ffprobe, but in terms of detecting packet loss it seemed
less useful.

Am I missing an easy way of doing this? I suspect not...

Cheers either way,

Ben


More information about the ffmpeg-user mailing list