Can cpfind do better than vid.stab/transcode?

212 views
Skip to first unread message

Yuv

unread,
Mar 10, 2014, 9:46:46 AM3/10/14
to hugi...@googlegroups.com
Hi group!

On an exceptional weekend, instead of studying I went skiing. Long story short, four commands on the command line and about one hour (I did not time the process and I did not attend it) later:
<http://vimeo.com/88614631>

The commands:

/home/yuv/bin/ffmpeg -i 00110.MTS -deinterlace -f mp4 -vcodec libx264 -crf 22 -preset ultrafast -s hd1080 -strict experimental -acodec aac -b 25000k -ab 160k -ar 44100 -ac 2 00110.mp4
transcode -J stabilize=shakiness=8:show=1,preview -i 00110.mp4 -y null,null -o dummy
transcode -J transform -i 00110.mp4 -o stab.avi -y raw
/home/yuv/bin/ffmpeg -i stab.avi -f mp4 -vcodec libx264 -crf 22 -preset slow -s hd720 -strict experimental -acodec aac -b:v 10000k -ab 160k -ar 44100 -ac 2 upload.mp4

The flow is really nice, especially compared with the shakiness of the original (the highest priority was not to bump into others while skiing backward), but it seems that during some sequences it placed bad control points (on the subject in motion), resulting in "subject-jitter". The options of the first transcode command visualize the selected control points.

The question is: given the sequence of individual frames, can cpfind do better at setting CPs only on the background and not on moving subjects? I suspect yes.

The corollary question is then: can it be integrated into transcode <http://www.transcoding.org/> or into ffmpeg <http://www.ffmpeg.org/>?

References:
* <http://public.hronopik.de/vid.stab/>
* <http://www.transcoding.org/transcode?Filter_Plugins/Filter_Stabilize>


Bruno Postle

unread,
Mar 10, 2014, 10:25:53 AM3/10/14
to hugi...@googlegroups.com
On 10 March 2014 13:46, Yuv <goo...@levy.ch> wrote:

On an exceptional weekend, instead of studying I went skiing. Long story short, four commands on the command line and about one hour (I did not time the process and I did not attend it) later:
<http://vimeo.com/88614631>
 
The question is: given the sequence of individual frames, can cpfind do better at setting CPs only on the background and not on moving subjects? I suspect yes.

Hi Yuv, good to have you back.

Hugin is used for this sort of thing, this one was quite popular on reddit a few weeks ago: http://gfycat.com/CriminalAromaticEsok

Carlos Eduardo G. Carvalho (Cartola)

unread,
Mar 10, 2014, 5:33:12 PM3/10/14
to hugi...@googlegroups.com
Hmm, I'm gonna try also in my next video stabilization need.

Until now what I liked most was Virtualdub and it works perfectly under Linux using wine. I found better results than transcode/vstab in my videos.

Tks,

--
A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/CAJV99Zibco5TE%2B21z%2B7bUJofsGYfxWMhbYfUZfst_JDNOB5ToQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Yuv

unread,
Mar 16, 2014, 10:38:25 PM3/16/14
to hugi...@googlegroups.com
On Monday, March 10, 2014 10:25:53 AM UTC-4, Bruno Postle wrote:
The videos are amazing, thanks for sharing Bruno.  I am not sure how reddit displays on my locked-down computer, though, I find nothing of what I would traditionally call a tutorial -- just a discussion thread.

I am not back yet -- the next six weeks I am in hell with 50 pages and two exams to write, and I am not sure what happens after that.

Carlos: I have no clue about VirtualDub. I know there is a lot of very capable video editing software around and I am surely missing on it.  All I need is a simple, automated, command line thing so that family and friends won't complain of sea-sickness after watching raw unedited uncut footage.

Happy stitching everybody!
Yuv

Harry van der Wolf

unread,
Mar 17, 2014, 4:27:47 AM3/17/14
to hugi...@googlegroups.com
2014-03-17 3:38 GMT+01:00 Yuv <goo...@levy.ch>:
On Monday, March 10, 2014 10:25:53 AM UTC-4, Bruno Postle wrote:
The videos are amazing, thanks for sharing Bruno.  I am not sure how reddit displays on my locked-down computer, though, I find nothing of what I would traditionally call a tutorial -- just a discussion thread.

The title of that page ("How to stabilize ...") is the link to the tutorial. It took me some time to find it as well. Direct link: http://imgur.com/a/3qfWQ

 

I am not back yet -- the next six weeks I am in hell with 50 pages and two exams to write, and I am not sure what happens after that.

Still good to see/read that you are at least "virtually" back.

 

Carlos: I have no clue about VirtualDub. I know there is a lot of very capable video editing software around and I am surely missing on it.  All I need is a simple, automated, command line thing so that family and friends won't complain of sea-sickness after watching raw unedited uncut footage.

I have also been using the same transcode/vid.stab option you are using for my own family's skiing and snow-boarding movies (and using slowmovideo to make slowmotion movies of it : http://slowmovideo.granjow.net/).
Also a few simple bash scripts that accepts some parameters and does its magic.

Harry


Harry van der Wolf

unread,
Mar 17, 2014, 4:35:53 AM3/17/14
to hugi...@googlegroups.com
2014-03-17 9:27 GMT+01:00 Harry van der Wolf <hvd...@gmail.com>:



I have also been using the same transcode/vid.stab option you are using for my own family's skiing and snow-boarding movies (and using slowmovideo to make slowmotion movies of it : http://slowmovideo.granjow.net/).
Also a few simple bash scripts that accepts some parameters and does its magic.

Sorry,
Should be.


I have also been using the same transcode/vid.stab option you are using for my own family's skiing and snow-boarding movies
Also a few simple bash scripts that accepts some parameters and does its magic.
(and using slowmovideo to make slowmotion movies of it : http://slowmovideo.granjow.net/).

The latter is done from the gui.

Harry
Reply all
Reply to author
Forward
0 new messages