georgmartius / vid.stab

Video stabilization library
http://public.hronopik.de/vid.stab/
Other
842 stars 108 forks source link

Cannot stabilize video with odd height #43

Open Blizzara opened 7 years ago

Blizzara commented 7 years ago

Hi,

I tried to use vid.stab to stabilize a timelapse video with resolution 5194 x 3457. This causes vid.stab to fail: vid.stab-1.1/src/frameinfo.c:38: vsFrameInfoInit: Assertion `width%2==0 && height%2==0' failed.

The assert comes from https://github.com/georgmartius/vid.stab/blob/master/src/frameinfo.c#L38

This crashes then both kdenlive (17.04.1) and melt (6.5.0). Is there some reason for the assert, or could it be removed?

Best, -Arttu

georgmartius commented 7 years ago

Hi,

I am not entirely sure why I put that assert and I think it should be possible to remove it. Can you try to remove it and see what happens?

Regards, Georg