[FFmpeg-devel] [PATCH 2/2] lavfi/vf_zoompan: fix PTS logic.

Michael Niedermayer michaelni at gmx.at
Mon Dec 22 02:58:46 CET 2014


On Mon, Dec 01, 2014 at 04:43:17PM +0100, Nicolas George wrote:
> Fix non-monotonic output PTS when input PTS and duration
> are set with compatible values.
> 
> Signed-off-by: Nicolas George <george at nsup.org>
> ---
>  libavfilter/vf_zoompan.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

with these 2 patches and the zoompan example from the docs
 ./ffmpeg -f lavfi -i testsrc -vf "zoompan=z='min(zoom+0.0015,1.5)':d=700:x='if(gte(zoom,1.5),x,x+1/a)':y='if(gte(zoom,1.5),y,y+1)':s=640x360"  -qscale 1 test.avi

i get
frame=  729 fps= 69 q=1.0 Lsize=    2735kB time=00:00:29.16 bitrate= 768.5kbits/s dup=0 drop=19571
that is a pretty huge number of dropped frames

is this intended ?


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

I am the wisest man alive, for I know one thing, and that is that I know
nothing. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20141222/0ecd26a4/attachment.asc>


More information about the ffmpeg-devel mailing list