[Ffmpeg-devel] Metrics for compressed video
Loren Merritt
lorenm
Fri Sep 29 19:20:26 CEST 2006
On Fri, 29 Sep 2006, Jon Burgess wrote:
> As an aside for those who care, I am using the ratio of intra-coded blocks
> to total blocks in each P or B frame to indicate motion (the more intra
> coded blocks, then the more motion). This might not work very well for all
> MPEG-4 Part 2 implementations, but it seems to work quite well for my stream
> (which is coming from an Axis 241QA video server).
>
> Anyway, my question comes down to the following: I have two options for how
> to actually implement this "metric extraction" into libavcodec and our
> company's product.
> 1) Maintain our own copy of the libavcodec source; or
> 2) Add some sort of generic metric API into libavcodec itself.
libavcodec already exports the array of macroblock types, in AVFrame.mb_type
Maybe there's a use for some generic metric API, but I don't see a need
for it in your case.
--Loren Merritt
More information about the ffmpeg-devel
mailing list