This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Pan & scan zoom

Tags: None
(comma "," separated)
ttill
Registered Member
Posts
372
Karma
0

Re: Pan & scan zoom

Wed Jun 30, 2010 3:48 pm
The keyframable Pan & Zoom effect comes in the next version.
However you can also pan and zoom using the affine or composite transition.
However if you do not use MLT 0.5.6 the quality won't be too good. (in MLT 0.5.6 only the quality of the affine trans, not the composite trans will improve)
waynevid
Registered Member
Posts
118
Karma
0

Re: Pan & scan zoom

Tue Aug 03, 2010 6:12 pm
Pan & Zoom still doesn't work properly. I'm using revision 4680 and still get diagonal image distortion. Is there a work around for this? The composite transition works better and eliminates the distortion but introduces edge blinking on the extreme right side.

Waynevid


ddennedy
Registered Member
Posts
1315
Karma
1

Re: Pan & scan zoom

Fri Aug 06, 2010 8:11 am
Waynevid, what is your MLT version?
What is the sample aspect ratio of your project and clip?


waynevid
Registered Member
Posts
118
Karma
0

Re: Pan & scan zoom

Fri Aug 06, 2010 6:26 pm
My MLT is version 0.5.7 on Mandriva 2010.
The aspect ratio of my project is 4/3. My clips are of various sizes: 640x480, 4320x2880, 4320x2432.
I notice that if I resize larger than 146%, the diagonal distortion appears.
I'm running the same revision (4680) on another computer (Suse 11.2) with the same MLT version and aspect ratios and Pan & Zoom works fine on all resizes.

I used the (now discontinued) Builder Wizard on both computers.
There must be something different between the two installations. Any suggestions what I should check?

Thanks,
Waynevid


ttill
Registered Member
Posts
372
Karma
0

Re: Pan & scan zoom

Sun Aug 08, 2010 6:15 pm
Maybe caused by different versions of libswscale?
ddennedy
Registered Member
Posts
1315
Karma
1

Re: Pan & scan zoom

Sun Aug 15, 2010 5:30 am
Ah, right, using just Pan and Zoom, there is no affine rotation being used (the Pan and Zoom effect uses an affine filter that can do rotate and shear, etc.). Therefore your problem might be the stride bug we had with some older versions of libswscale. This bug makes the output look like a poor-quality shear rather than a rotation. Do you think so? If so, it is probably related to swscale problem. I tried to prevent this in MLT 0.5.6 by checking the version of swscale, but maybe there is some subtle version issue. Please report your swscale version using 'pkg-config --modversion libswscale' or 'ffmpeg -version'.


waynevid
Registered Member
Posts
118
Karma
0

Re: Pan & scan zoom

Tue Aug 17, 2010 8:11 pm
pkg-config --modversion libswscale results in 0.7.1
ffmpeg -version results in "command not found."

Waynevid
Mandriva2010
Builder Wizard


ddennedy
Registered Member
Posts
1315
Karma
1

Re: Pan & scan zoom

Sat Aug 28, 2010 5:21 am
Hmm, v0.5.6 was released with the fix on June 20. This fix is that it requires swscale >= 0.7.2 to use libswscale for image format/colorspace conversion, but it does not use that rule to decider whether to use swscale for just image scaling. Can you post a portion of the screen showing the problem so I can make sure we are chasing the right thing.


waynevid
Registered Member
Posts
118
Karma
0

Re: Pan & scan zoom

Tue Aug 31, 2010 5:33 pm
Here's the distortion I encounter each time I set the zoom greater than about 140% using Pan & Zoom. This happens only if I also use the Panning effect. Zooming alone is fine. The distortion only occurs in a few frames of the clip, leaving most of the other frames OK. It's a 640x480 clip but I've reduced the size to fit here.

WaynevidImage


ddennedy
Registered Member
Posts
1315
Karma
1

Re: Pan & scan zoom

Fri Sep 03, 2010 5:23 am
OK, that is similar to the problem I saw with using older swscale versions as I mentioned above. I am quite certain this problem is with the old version of swscale. If you are using the Build Wizard and such a new version of MLT, why not a newish version of ffmpeg? That version is nearly 2 years old!


ubuntuaddicted
Registered Member
Posts
206
Karma
0

Re: Pan & scan zoom

Tue Sep 21, 2010 11:44 am
I must be doing something wrong with trying to get a flyout from the top right hand corner. I was going to use Pan and Zoom. First it's very weird cause I made a .png in gimp to the approx size I wanted it on a transparent 720x480 background. WHen I bring it in kdenlive it looks ok size wise. shown here using the clip monitor
http://lh5.ggpht.com/_Iufa0NM_vIQ/TJiY1YwjBiI/AAAAAAAAAac/lDfgPtiuOjU/s720/Screenshot-2.png
it's part of a watermark video I am going to be applying to all my videos for my youtube channel. so I've added a black color clip as the background and placing the flyout above it and was going to use composite or affinecomposite. composite and affinecomposite won't seem to control its position at all like I could do with the picture in the beginning of my watermark, the pig head. i can move the red box around and it'll move the pig head around, i can make the red square smaller or larger to make the pig head larger or smaller.
http://lh3.ggpht.com/_Iufa0NM_vIQ/TJiaWqhkm-I/AAAAAAAAAao/OmIr83rvzU0/s720/Screenshot-9.png
ok, back to the green banner I want as a flyout. As soon as I apply the pan and zoom feature to add keyframes and have it pan onto the screen from off the right side screen, it shrinks to be very small as shown here:
http://lh4.ggpht.com/_Iufa0NM_vIQ/TJiYpjkJk3I/AAAAAAAAAaQ/W6IENecSjXA/s720/Screenshot-6.png
if I use the zoom to make it bigger it's like there an invisible wall that is cutting it off on the left side, so I can't zoom enough to get the letters ledgible before something is cutting it off. I must be doing something wrong?
http://lh3.ggpht.com/_Iufa0NM_vIQ/TJiYp8BfSJI/AAAAAAAAAaY/z1doDcPw7yI/s720/Screenshot-8.png

Can anyone help me?
ddennedy
Registered Member
Posts
1315
Karma
1

Re: Pan & scan zoom

Wed Sep 22, 2010 5:32 am
Re "I've added a black color clip as the background"
That is not necessary. Kdenlive has a hidden black track.

It seems to me you are making it too complicated. First, I would not place the logo on a full size transparent background. I would just use the logo in its original size. Secondly, combining Pan & Zoom with Affine or Composite seems redundant to me. In another thread, I suggested to use Pan & Zoom because the Screen transition has no position control.
Just put the trimmed logo on a track, add the Affine transition, set with track = Black, and then keyframe the size and position. The trickiest part is the size so that it is not too different than the original. With Composite, you can turn off the Fill option to prevent it from upscaling with the rectangle, but its motion is going to be more rough.


ubuntuaddicted
Registered Member
Posts
206
Karma
0

Re: Pan & scan zoom

Wed Sep 22, 2010 12:00 pm
i don't know what happened when I had done this before but I tried it again last night and it turned out using only the composite transition and adding keyframes to get the flag to flyout from off the top right side of the screen. I didn't need to scale it. Must of been a user error. ;-) Now I just wonder how to control the transparency within the screen transition as it's turning out a little light. I may have to chose a darker color then the green I chose.
Thanks for the response ddennedy. I was unaware kdenlive has a hidden black track. thanks for the heads up.
Sample here if interested in seeing it:
http://www.youtube.com/watch?v=VTlH8LAtJW4
drosky
Registered Member
Posts
56
Karma
0

Re: Pan & scan zoom

Wed Feb 09, 2011 8:51 pm
Just to note, I'm using kdenlive 0.7.8 (from packman repository on opensuse 11.3), MLT 0.5.10, and ffmpeg 0.6.26387svn and I still get this diagonal distortion occasionally when using the pan and zoom effect combined with the dissolve transition. It only seems to appear (for me at least) when both pan&zoom and the dissolve transition are occurring at the same time.

Most recently, I've seen it when trying to create a slideshow clip with dissolve and pan&zoom together, and since you can't edit keyframes and such inside a slideshow clip, it's very difficult to tweak things to work around the problem.

Dave
drosky
Registered Member
Posts
56
Karma
0

Re: Pan & scan zoom

Thu Feb 10, 2011 7:21 am
Some additional info - ffmpeg -version on my systems show 0.12 0 for the version of libswscale, so it appears to be more recent than 0.7.2. The shearing distortion I see is exactly as pictured in the frame capture posted by waynevid earlier in this thread. It also occurs only on occasional frames as mentioned by others.

In a normal timeline, I can nudge things here and there and can usually get the problem to disappear (it is apparently rather intermittent), but in a slideshow clip there is no nudging that can be done on individual transitions, so there is no easy work-around.

Dave


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient