[FFmpeg-devel] [PATCH] vf_scale: Detecting changes of incoming frame properties and dinamically evaluate width and height expressions

Michael Niedermayer michael at niedermayer.cc
Wed Jan 20 13:33:30 CET 2016


On Wed, Jan 20, 2016 at 09:05:49AM +0000, Paul B Mahol wrote:
> On 1/19/16, Bodecs Bela <bodecsb at vivanet.hu> wrote:
> > Hi All,
> >
> > currently scale video  filter accepts expressions in its width and height
> > parameters but evaluates them only once at init and replaces them with
> > their actual values. Later on, if any parameter of incoming frames
> > changes - ie those were used in the original size expressions - then
> > they new values will not have any affect for width and heigth values.
> > They remain the same. This patch makes possible that width and height
> > expressions be evaluated frame-by-frame basis if width/height/sar/format
> > properties of incoming frame would change. To retain the current
> > behaviour and not to break any earlier app, a new config parameter has
> > been introduced. Its name is "eval" and it has two distinct values:
> > "init" and "frame". The default value is "init".
> > This feature is very usefull in case of DVBT mpeg-ts streams where SAR
> > may change
> > time-by-time from 4/3 to 16/9 and vica-versa and the size remains the
> > same and
> > and you want to create a variable sized output with 1/1 SAR.
> >
> >
> > Please consider to put this patch into the official ffmpeg source tree.
> >
> > thank you,
> >
> > Bela Bodecs
> >
> 
> probably ok

applied

thanks

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

During times of universal deceit, telling the truth becomes a
revolutionary act. -- George Orwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160120/bd2faf5a/attachment.sig>


More information about the ffmpeg-devel mailing list