Home > Suggestions > Add zoom in and zoom out options to zoom effect

Add zoom in and zoom out options to zoom effect

Avatar image
Aug 24, 2015
Archive Agent wrote
Add possibility to smoothly zoom in and out in zoom effect

for example:

Video_Effects_Zoom(int id,int startTime, int stopTime,int zoomInTime,
int zoomOutTime, bool enabled, double zoomX,double zoomY,
int shiftX,int shiftY )

Andrzej Hołyst on July 25, 2013 3:00 PM
Completed
2
Vote
Reply
7 Answers
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Hi

Please check Pan effect, sounds like that.

on July 25, 2013 3:06 PM
Aug 24, 2015
Archive Agent agent wrote
Andrzej Hołyst

Thanks, i'v tried to do this in Video Editor:

Editor.Video_Effects_Pan(0, 0, 2000, true, 0, 0, 352, 288, 50, 72, 189, 216);
Editor.Video_Effects_Zoom(1, 2000, 4000, true, 0.5,0.5, 50, 72);
Editor.Video_Effects_Pan(2, 4000, 6000, true, 50, 72, 189, 216,0, 0, 352, 288);

but on Zoom effect video freezed on 2 seconds and then on Pan effect it was zooming out fine

on July 25, 2013 3:38 PM
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Zoom values can be 1 and greater, not smaller than 1.

on July 25, 2013 4:39 PM
Aug 24, 2015
Archive Agent agent wrote
Andrzej Hołyst

thanks my mistake, i updated code

Editor.Video_Effects_Pan(0, 0, 2000, true, 0, 0, 352, 288, 88, 72, 176, 144);
Editor.Video_Effects_Zoom(1, 2000, 4000, true, 2.0,2.0, 0, 0);
Editor.Video_Effects_Pan(2, 4000, 6000, true, 88, 72, 176, 144,0, 0, 352, 288);

but before and after zoom there is some blink on video ( I think it is full frame for a while)

on July 25, 2013 5:09 PM
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Try to overlap times or use time divided into one frame duration.

on July 25, 2013 5:19 PM
Aug 24, 2015
Archive Agent agent wrote
Andrzej Hołyst

With this code it works:

Editor.Video_Effects_Pan(1, 0, 1000, true, 0, 0, 352, 288, 88, 72, 176, 144);
Editor.Video_Effects_Zoom(2, 1001, 5000, true, 2.0,2.0, 0, 0);
Editor.Video_Effects_Pan(3, 5001, 6000, true, 88, 72, 176, 144,0, 0, 352, 288);

But it coud be very helpful to use one function instead 2, or if VideoEffectsZoom has same parameters like Pan ( rectangle instead of zoom/shift )

on July 25, 2013 9:00 PM
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

2 functions is ok too. We have "classic" zoom and pan implemented.

on July 25, 2013 9:18 PM