[FFmpeg-devel] Selective video compression qualities

Michael Niedermayer michaelni at gmx.at
Tue Sep 3 01:34:13 CEST 2013


On Mon, Sep 02, 2013 at 05:02:44PM -0400, compn wrote:
> On Mon, 2 Sep 2013 17:27:33 +0200, Michael Niedermayer wrote:
> >On Mon, Sep 02, 2013 at 01:49:08PM +0300, Aviv Hurvitz wrote:
> >> Hi all,
> >> 
> >> I am interested in encoding a compressed video of a basketball game,
> >> wherein the players are compressed in high quality (high bitrate) and the
> >> rest of the image (the crowds, the court) uses a lesser quality. I already
> >> have a binary mask that indicates which parts of the video I would like to
> >> retain in high quality.
> >> 
> >> I'd be grateful for for any advice on achieving this. Are there any video
> >> codecs that support this feature? Which would be the best fit if I want to
> >> develop it myself?
> >
> >any video codec that can change the QP per MB could be used, that
> >means pretty much any modern video codec
> 
> i bet he wants to know how to do it :)
> 
> isnt that custom matrices? or Quantization Matrix

no

one has to modify the quantiztaion parameter for the macroblocks
depending on whats in the block, thats more like what xvid lumi
masking did. But instead of using some brightness of the block use
a externally provided mask

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130903/ab586ef0/attachment.asc>


More information about the ffmpeg-devel mailing list