views:

16

answers:

0

Hi,

I'm trying to write a program that takes in a PCap dump, detects whether there is an flv stream in it, extracts the bitrate, and infers from the packet times the streaming performance (how long it took to download vs how long the video was). Ideally this should be in C on Linux, but I'd be happy if I can get a prototype working in Python first.

I'm looking at gstreamer and libavformat/libavcodec for decoding options, but since I'm new to video and streaming stuff I'm a bit overwhelmed.

As a general approach, is it possible to reconstruct the beginning of the file, feed it to a media library and get back an average bitrate, and do some packet timing math to spit out a performance metric?

Any advice welcome. Thanks.