Hey everyone.

On 02.01.2012, at 14:34, Adrien Gaidon wrote:

> Hello everyone,
> 
> I would like to use hugin's remapping tools in order to stabilize the
> motion of a camera in sports videos like this one:
> http://lear.inrialpes.fr/people/gaidon/media/high_jump.avi
> 
> My goal is to generate a video with a static background in order to
> obtain something like that:
> http://lear.inrialpes.fr/people/gaidon/media/stabilized_high_jump.avi.

I've done that before, with some manual intervention, and IMHO it turned out 
quite nicely, as you can see here: http://flic.kr/p/7sTZm5
The original movie and the resulting panorama are shown in the comments. Other 
examples (also from me) can be found in the "Panoramas from Movies" Pool on 
flickr: http://www.flickr.com/groups/panoramasfrommovies/pool/79112147@N00/

> Note that I want to automatically process a large quantity of videos
> and frames. Therefore, manual intervention is not possible and
> everything must be scripted (no GUI).
> 
> I have spent some time on this already, but I still have a problem
> with the global alignment part.
> My pipeline is the following:
> 1) generate a .pto project file
> 2) automatically detect control points (on the background only)
> between each pair of adjacent frames (t, t+1)
> 3) run autooptimizer
> 4) run nona
> 5) combine the generated .tiff images in a video with ffmpeg

I've exported the movie frames with Quicktime Pro, aligned them with hugin, 
stitched the panorama and additionally let hugin save the single frames. These 
frames have then been put together to a movie using Fiji (which is just ImageJ, 
http://fiji.sc/).

> What am I doing wrong? More specifically, why are the frames always
> centered and not shifted like the correctly stabilized video mentioned
> above? Is it because I provide control points only between frames t
> and t+1?

I don't see a problem with the general workflow, something that might be off is 
that you seem to be generating cropped tiffs (Hugin preferences on OS X: 
http://cl.ly/D9Bw), which then "confuses" ffmpeg. What do you get if you 
generate uncropped images and feed them to ffmpeg?

Cheers from Switzerland,
Habi

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to