Feature request: Image Stabilization filter

Bug #586777 reported by Olivier Girard
38
This bug affects 8 people
Affects Status Importance Assigned to Milestone
OpenShot Video Editor
Triaged
Wishlist
Unassigned

Bug Description

Hi,
In fact, there is an existing bug but i can not find it. It will be a great feature for Openshot if we have this. So, we must use a great tool : Transcode and a special filter than you can find/see here and some awesone exemples. http://public.hronopik.de/vid.stab/features.php?lang=en
Indeed, we must open two instances of transcode : one for analyse the file and the second for apply the modification.
In details, we have :
transcode -J stabilize -i MOVIE -y null,null -o dummy
transcode -J transform -i MOVIE OUTPUTOPTIONS -o STABILE
We have too the possibility to apply this for the video very very shaked by this command :
transcode -J stabilize=shakiness=8:show=1,preview -i MOVIE -y null,null -o dummy
The maintener of this filter is Georg Martius

Revision history for this message
Olivier Girard (eolinwen) wrote :

A word about Transcode. Transcode is a great and poweful tool who can working with FFmpeg and some others tools. He can bring us a exact Cut Frames (B, J, P) than FFmpeg can't bring us and more for Authoring too with the mjpegtools.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Ho, what a very good idea. I'll tag in the wishlist for to be sure than it will not be, this time, forgotten.

Changed in openshot:
importance: Undecided → Wishlist
milestone: none → 1.2.0
Revision history for this message
Andy Finch (fincha) wrote :

My guess is it will be a problem getting this to work in conjunction with MLT (i.e. when constructing the MLT xml). The best way forward would be for this filter to be ported to frei0r or to be added as a filter in MLT - but that's beyond my skills.

Revision history for this message
Olivier Girard (eolinwen) wrote :

Hi Andy,

Right analyse and Good idea to try implement as soon as a freiOr-filters or a MLT filter. It will be the ideal.
Your ask at Jonathan on another mail (about the freiOr-plugins/mlt filters), is very appropriate for this.
But, if we can not realize this wonderful idea (for technical reasons), i'm thinking that we have another solution, more easy for us : Put it in the tool conversion (ask survey n 2).
This tool works in two steps, in fact. The first step (and the first line too) analyses the film and create the information for the second step. Nothing is done on the film really.
The second step is the step where the modifications are applied, clearly.
After, the question (if we take this solution) is how realize this tool i.e. a simple tool conversion with some presets that we can not modified but create own like .....Kdenlive or a right tool conversion. In fact, it depends what people are waiting. Hum I'm not sure that the solution. To my mind, the first solution will be the most appropriated. After, we don't know where we go and it is not the purpose of this project (i.e. develop a right conversion tool).
In all cases, it will bring us a power filter that none other software in the video edition have.

Changed in openshot:
milestone: 1.2.0 → none
Changed in openshot:
status: New → Triaged
Revision history for this message
Red_Phoenix (intersect) wrote :

Comment only - MLT now has a stabilisation filter in trunk.

http://mltframework.blogspot.com/2011/08/image-stabilization-added.html

Andy Finch (fincha)
summary: - Feature request: a Transcode Filter for stabilize a jiggled video
+ Feature request: Image Stabilization filter
Revision history for this message
Olivier Girard (eolinwen) wrote :

The transcode filter is great but unfortunately, even if Transcode is the best for MPeg2/Mpeg4/Xvid, Avi files, he doesn't give us t he ability to work with "modern" files like AVCHD and WebM. A conversion is needed and decrease the quality. It is possible but need a lot of knowledges and provide none easy ways for the common user. And at first look, we have no hope to have this features included in a future version, the project need a leader same if the last version (1.1.7) is out in November. Damage. this tool provide good files in quality. :-(
We have yet two possibility one being a portage of this filter with FFmpeg and the other use Blender for this task, it seems able to release this task. A user said us this information on our forum. It is a track to dig.

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

There are image stabilizations filters in MLT now, but they won't be any use when we move to the new library...but they are based on http://sourceforge.net/projects/vstab/ so maybe there is a way this can be incorporated into the new library at a later date.

Revision history for this message
Samuel Mimram (smimram) wrote :

To my opinion, image satbilization is a really must-have feature when editing videos filmed with a non-professional camera (which I guess is the case for most openshot users). Right now, the videostab2 filter in mlt does a great job, so it would be really nice to have it integrated directly in openshot soon, and not to wait for the openshot library to come out. In order to get a stabilized video named video.mp4, I manually do

melt -verbose -progress -profile hdv_720_30p video.mp4 -filter videostab2 -consumer "xml:video-vstab.mlt" all=1 real_time=-2

and then

melt -verbose -progress video-vstab.mlt -consumer "avformat:video-vstab.mp4" properties=mp4 vcodec=libx264 real_time=-2 threads=3

Notice that the filter is two-pass, which means that it is not immediate to add it as a plugin for openshot: the first pass generates and mlt file with the filter's parameters (and the computed motion vectors in particular). What should be reasonably easy to do would be to have the first pass computed (with a progress dialog) when the plugin is used, and then use the resulting filter.

Thanks!

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

Samuel,
I started integrating the videostab2 filter into 1.4.1 of OpenShot, but ran out of time, and was unclear on how to create a 2-pass filter, since we don't use melt. So... I'm open to suggestions on how to integrate this filter. =)

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.