Ken Burns effect is choppy

Bug #507872 reported by Scott Bronson
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Fix Released
Critical
Unassigned

Bug Description

This example video has two Ken Burns effects, one zooming to 200,200,-50,50 and the other to 120,120,-10,-30.

Any idea why the picture is jumping around so bad? Video was exported to DVD-NTSC.

Revision history for this message
Scott Bronson (bronson) wrote :
Revision history for this message
Jonathan Thomas (jonoomph) wrote :

This is a problem with MLT that the MLT developer is aware of. It's on the official TODO list, and will hopefully be solved soon. Thanks!

Revision history for this message
Lionel Cordesses (lionel-cordesses) wrote :

Here is the mlt+image sequence+Octave script to reproduce and analyze the "jerk bug" with one simple white picture sliding on a black background, as requested on the forum.

Revision history for this message
Lionel Cordesses (lionel-cordesses) wrote :

This tar.bz2 has:
- white720x576.png (the white picture create in The GIMP)
- sequence.mlt
- tst.osp
- jerk.m (the GNU Octave script to analyze the resulting sequence)
- derivative.png (to "see" the jerk)
- tst_001.png
-...
- tst_166.png
Lionel

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Thanks so much for the example. I'm convinced. =) I have forwarded the example to Dan, the developer of MLT. I will post his response here, once I get a response.
-Jonathan

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

Dan has located the bug in MLT, and here is his response:
------------------
I located the source of this problem - line 564 of
src/modules/core/transition_composite.c:
               width_src -= 2;

This is within a code block with the comment:
       // Align chroma of source and destination

Basically, the compositor is doing non-interpolated compositing in
packed YUYV 4:2:2 image format. This is a legacy choice based on the
requirements of the original contract under which mlt was developed
(realtime non-animated compositing for a 4:2:2 SDI output device in
2004).

Essentially, this means chroma has half the resolution of the luma
channel and when blending I must keep the chroma channels aligned -
can not blend U with V. So, there are constraints put into place to
adhere to these rules. If I remove the width_src line above, I resolve
the issue for this example, but other tests show an artifact. In the
attached image, there is an additional column on the right-hand side
that goes away when I retain this line.

The only real resolution is to overhaul the composite transition as I
recently did for the affine transition. I plan to do that by the end
of the year. In the meantime, you might be able to use affine
filter/transition for some of your effects - it too takes a
keyframable geometry property, but its behavior is somewhat different.

Revision history for this message
Jonathan Thomas (jonoomph) wrote :

I am going to investigate the "affine" filter, and see if I can use it instead of the composite transition. Not sure how good that will work, but I will keep you updated.

Thanks!
-Jonathan

Revision history for this message
Andy Finch (fincha) wrote : Re: [Openshot.developers] [Bug 507872] Re: Ken Burns effect is choppy

Hi Jonathan,

Is there any documentation on the built-in MLT filters? Or even a list of
what's available?

Cheers,
Andy.

On 9 June 2010 06:30, Jonathan Thomas <email address hidden> wrote:

> Dan has located the bug in MLT, and here is his response:
> ------------------
> I located the source of this problem - line 564 of
> src/modules/core/transition_composite.c:
> width_src -= 2;
>
> This is within a code block with the comment:
> // Align chroma of source and destination
>
> Basically, the compositor is doing non-interpolated compositing in
> packed YUYV 4:2:2 image format. This is a legacy choice based on the
> requirements of the original contract under which mlt was developed
> (realtime non-animated compositing for a 4:2:2 SDI output device in
> 2004).
>
> Essentially, this means chroma has half the resolution of the luma
> channel and when blending I must keep the chroma channels aligned -
> can not blend U with V. So, there are constraints put into place to
> adhere to these rules. If I remove the width_src line above, I resolve
> the issue for this example, but other tests show an artifact. In the
> attached image, there is an additional column on the right-hand side
> that goes away when I retain this line.
>
> The only real resolution is to overhaul the composite transition as I
> recently did for the affine transition. I plan to do that by the end
> of the year. In the meantime, you might be able to use affine
> filter/transition for some of your effects - it too takes a
> keyframable geometry property, but its behavior is somewhat different.
>
> --
> Ken Burns effect is choppy
> https://bugs.launchpad.net/bugs/507872
> You received this bug notification because you are a member of OpenShot
> Developers, which is subscribed to OpenShot Video Editor.
>
> Status in OpenShot Video Editor: New
>
> Bug description:
> This example video has two Ken Burns effects, one zooming to 200,200,-50,50
> and the other to 120,120,-10,-30.
>
> Any idea why the picture is jumping around so bad? Video was exported to
> DVD-NTSC.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
Andy Finch (fincha) wrote :

There is a fix in MLT for this - just not sure what we need to do in Openshot to make use of the fix...

Changed in openshot:
milestone: none → 1.3.0
status: New → Confirmed
Revision history for this message
Marco Hunsicker (ubuntu-triemax) wrote :

Thanks much for your hard work. Please try and fix this with the next release. As of now, zooming in not usable, which is a pity...

Revision history for this message
Andy Finch (fincha) wrote :

See commit 412.

Changed in openshot:
status: Confirmed → Fix Committed
Revision history for this message
Jonathan Thomas (jonoomph) wrote :

There is now a "Smooth Scrolling" preference, which uses the affine filter in MLT, and requires version 0.6.0+ of MLT (which is not widely available yet). So, it might take a little while before most users can test this feature. But, the scrolling is now silky smooth. =)

Changed in openshot:
importance: Undecided → High
Revision history for this message
Jonathan Thomas (jonoomph) wrote :

I made this new preference (Smooth Scrolling) require MLT 0.6.0 or greater, otherwise the preference is disabled. This will prevent people from setting the preference, and wondering why everything is still choppy.

Changed in openshot:
importance: High → Critical
moimael (moimael)
Changed in openshot:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.