How to do Time warp effect?

I have similar camera and 60fps sample clip

How to do kind of effect like on this movie http://www.youtube.com/watch?v=-u_etvz1Zz8 ?

I tried to use built-in Kdenlive slow motion (like 1%) but it doesn't work good.

Normally, you would need a high FPS camera for this. For example, with a low resolution, the Casio ex-f1 can do this.

Since Canon t2i (Eos550) can not shot more than 30FPS (the title of the clip is misleading!), this seems to have been done with interpolation.

Something like this:

http://jcornet.free.fr/linux/yuvmotionfps.html

It's not misleading, 1000fps is software result, read his description below movie.
I now they use sth like twixtor for slow motion but not in this example.
btw canon 2ti 550D indeed can shot at 60fps

You might want to try out Granjow's new tool:
http://slowmovideo.granjow.net/

this looks like just the thing i need. too bad it requires a nvidia card... i have a nvidia optimus card and i can't use any nvidia drivers...

i would love it if this could be integrated into kdenlive!

WOW, those videos are superb! I will have to give this a go!

agree completely, WOW!!!

Really good to see such advanced stuff becoming available for Linux video...

thanks Ttill

I try to compile it(slowmoVideo) following author's steps, but I am having difficulties.
I think I meet all dependencies from http://slowmovideo.granjow.net/download.html

Maybe somebody could help me solve this problem

michal@michal-laptop:~/Pulpit/slowmotion/slowmoVideo$ cd build/
michal@michal-laptop:~/Pulpit/slowmotion/slowmoVideo/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
Installing to /home/michal/Pulpit/slowmotion/install
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.7.2 (using /usr/bin/qmake)
-- checking for module 'libavformat'
-- found libavformat, version 52;.62;.0
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
-- checking for module 'libavcodec'
-- found libavcodec, version 52;.66;.0
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
-- checking for module 'libavutil'
-- found libavutil, version 50;.15;.0
-- checking for module 'libavdevice'
-- found libavdevice, version 52.2.0
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libavcodec', not found
-- checking for module 'libswscale'
-- found libswscale, version 0;.10;.0
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
Package .15 was not found in the pkg-config search path.
Perhaps you should add the directory containing `.15.pc'
to the PKG_CONFIG_PATH environment variable
Package '.15', required by 'libswscale', not found
-- checking: avformat.h
-- /usr/local/include/libavformat
-- checking: avcodec.h
-- /usr/local/include/libavcodec
-- checking: avutil.h
-- /usr/local/include/libavutil
-- checking: avdevice.h
-- /usr/local/include/libavdevice
-- checking: swscale.h
-- /usr/local/include/libswscale
-- Copying res/iconSel.png to /home/michal/Pulpit/slowmotion/slowmoVideo/build/slowmoUI/res/iconSel.png
-- Copying res/iconMov.png to /home/michal/Pulpit/slowmotion/slowmoVideo/build/slowmoUI/res/iconMov.png
-- CXX flags: -Wall
-- Configuring done
-- Generating done
-- Build files have been written to: /home/michal/Pulpit/slowmotion/slowmoVideo/build

michal@michal-laptop:~/Pulpit/slowmotion/slowmoVideo/build$ make -j3
Scanning dependencies of target sVflow
Scanning dependencies of target sVencode
Scanning dependencies of target sV
[ 1%] [ 2%] Building C object lib/CMakeFiles/sVencode.dir/ffmpegEncode_sV.c.o
Building CXX object lib/CMakeFiles/sVflow.dir/defs_sV.cpp.o
[ 3%] Building CXX object lib/CMakeFiles/sV.dir/defs_sV.cpp.o
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c: In function ‘open_video’:
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:43:9: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:54:9: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c: In function ‘prepare’:
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:89:5: warning: implicit declaration of function ‘avformat_alloc_output_context2’
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:96:9: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:109:13: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:125:13: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:184:13: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:196:9: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:201:5: warning: implicit declaration of function ‘av_dump_format’
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:212:9: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:221:9: warning: implicit declaration of function ‘avio_open’
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:221:49: error: ‘AVIO_FLAG_WRITE’ undeclared (first use in this function)
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:221:49: note: each undeclared identifier is reported only once for each function it appears in
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:227:13: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:235:5: warning: implicit declaration of function ‘avformat_write_header’
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:247:9: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c: In function ‘eatARGB’:
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:291:17: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘int64_t’
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:308:9: warning: format not a string literal and no format arguments
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c: In function ‘eatSample’:
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:348:13: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘int64_t’
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c: In function ‘finish’:
/home/michal/Pulpit/slowmotion/slowmoVideo/lib/ffmpegEncode_sV.c:389:9: warning: implicit declaration of function ‘avio_close’
make[2]: *** [lib/CMakeFiles/sVencode.dir/ffmpegEncode_sV.c.o] Błąd 1
make[1]: *** [lib/CMakeFiles/sVencode.dir/all] Błąd 2
make[1]: *** Oczekiwanie na niezakończone zadania....
[ 4%] Building CXX object lib/CMakeFiles/sV.dir/vector_sV.cpp.o
[ 5%] Building CXX object lib/CMakeFiles/sV.dir/shutter_sV.cpp.o
[ 6%] Building CXX object lib/CMakeFiles/sVflow.dir/flowRW_sV.cpp.o
[ 7%] Building CXX object lib/CMakeFiles/sV.dir/intMatrix_sV.cpp.o
[ 8%] Building CXX object lib/CMakeFiles/sVflow.dir/flowField_sV.cpp.o
[ 9%] Building CXX object lib/CMakeFiles/sV.dir/interpolate_sV.cpp.o
[ 10%] Building CXX object lib/CMakeFiles/sV.dir/bezierTools_sV.cpp.o
Linking CXX static library libsVflow.a
[ 10%] Built target sVflow
[ 11%] Building CXX object lib/CMakeFiles/sV.dir/sourceField_sV.cpp.o
Linking CXX static library libsV.a
[ 11%] Built target sV
make: *** [all] Błąd 2

I know this is off topic on this forum, but anyway...

I also tried to compile slowmovideo, and it aborts with

Linking CXX executable slowmoInfo
/home/mc/downloads/slowmoVideo/libgui/imageDisplay.cpp: In member function ‘virtual void ImageDisplay::mouseMoveEvent(QMouseEvent*)’:
/home/mc/downloads/slowmoVideo/libgui/imageDisplay.cpp:116:35: error: ‘MiddleButton’ is not a member of ‘Qt’

I guess this is an libqt problem (I have libqt4 ver 4.6.3 installed)?

Another question: will freeglut work (instead of original glut)?

Trying to compile V3D, cmake exits with

* sVflow library not found. Did you make --install it?
(Searched in /home/mc/downloads/install/lib;/usr/local/lib for the sVflow library.)
* Installation prefix: /home/mc/downloads/install.
(Can be adjusted with the INSTALL_PREFIX variable (not CMAKE_INSTALL_PREFIX). Default is /home/mc/downloads/install.)
* V3D will be built: NO

is this because slowmovideo is not yet but?

Guys, I would jump on Google+ for your support Qs, might get a better response
https://plus.google.com/108007897734481705775

I downloaded and compiled 'slowmoVideo' and what an excellent addition to video editing it is. Many thanks to granjow. The trouble is, I do have a couple of problems to sort out but google+ is social networking. You know, mug shots, profiles, friends etc. which I'm just not into at all.

Anyway, looking yesterday google+ enrollment had been down for a couple of days - due to excessive demand, it said.

Yeah, for me google+ is also a bit too facebookish...

So, after a bit of work, managed to compile (needed to install libqt 4.7 and make some symlinks to other existing libraries).

Was quite surprised that this works with my lowest-end graphic card!
(cca a couple of years ago got tired of trying to get XVideo work on my motherboard's VIA chips, so I went to a dealer and asked for the cheapest NVIDIA card - he pulled something almost from trash, dusted it of - and I liked it instantly, because it had no fan! The sw says it is an GeForce 8400GS. I got XVideo working, and never thought about doing anything more.)

But then, cca a couple of weeks ago, I noticed that mplayer uses VDPAU on this card - so I decided to try Slomo - and it works! At about 50min for an 6 sec DV clip, but still...

I see some "sparkling" artefacts, could be because I fed it with interlaced DV?

Indeed, Google+ is a social network. I mentioned it because granjow asks for support questions to go there, so must be easier for him there

http://slowmovideo.granjow.net/faq.html

Not tried slowmovideo yet, need to try it soon!

@Marko "I see some "sparkling" artefacts, could be because I fed it with interlaced DV?" - Yeh, I thought that, so I rendered a clip in Kdenlive with force progressive but it made no difference. Now, I looked at the individual frames in the monitor and fast motion is blurred anyway (not visible at normal speed). SlowmoVideo is trying to slow down blurred frames (well blurred edges).
Will have to choose the clip more carefully. Could make a nice effect though.

My problem shows in the terminal:- [MPEG...........buffer underflow........
A whole mass of these in red before (or is it after) the frame is rendered. I can get flashing rectangular/square artefacts in some renders. Sometimes Slowmo exits with an Error 1 message. Just wondering if all this is related.

@moorsey - I can fully understand why he did this judging by the amount of mails over there with people trying to get it running. I'll keep nosing though to see if anyone is having my problems. You have got to try it though, even with my problems, I still get some good slow motion renders.

Cool, I'm going to try and install tonight, not compiled from source before, so fingers crossed all goes well!

M-E-S-M-E-R-I-Z-I-N-G

"Twixtor" fo Linux open source and free fore everyone??????

Mr. Granjow... I mean.... Simon... If you can hear (read) me... I have no words... I really don't know what to say...
Now I stop.

@ Granjow: you moved me to tears... I just saw the .deb for Ubuntu AMD64... I'm crying for joy...

@Marko: "I see some "sparkling" artefacts"

On the Render settings window try lowering the 'buildFlow lambda' to lets say 10.

On my HD clips I've lowered it to 8 and still get fairly good quality and next to no artefacts.

Better stop here, might get into trouble for being OT. (Well, it's not really, it's still video editing and I am using Kdenlive for my clips.

hi

for me it's a killing feature ... is it possible that it work with any graphic card and to ne implemented in kdenlive directly ?

thanks

My version is already quite "old" - more than a week.
I see that new versions are appearing with breakneck speed - yesterday I downloaded one, and before getting to compile it, there was a new one :-)
And this morning yet another!
So I guess I will wait until things settle a bit, before going on.

BTW - slomovideo was developed by a member of the Kdenlive team, and is not a competition to Kdenlive, so I think we won't get kicked off the forum if we discuss this here! :-)

"On the Render settings window try lowering the 'buildFlow lambda' to lets say 10.
On my HD clips I've lowered it to 8 and still get fairly good quality and next to no artefacts."

Thank you, I was able to install and run this awesome program and succeded, but I experimented artifacts, so I'm going to try your suggestion!
Ignazio

Excuse me once again... I didn't find anything in the preference dialog to choose an export codec/bitrate etc. ...
Did you? Do you know if it's possible?
Thank you

The preferences (at the moment) only points to the flowBuilder directory.

Rendering - On the Rendering settings page, at the bottom, there is "Optional arguments >vcodec". For ease (and definitely not knowing any better) I leave it up to the software which renders mine to MPG. Quality seems perfect.

Ok, I'll try to tweak a bit... Thank you. I'd like to render to a lossless intermediate codec supported by ffmpeg and kdenlive, something like Huffyuv or the newest DNxHD, because slow-motion, expecially made with a stand alone software is usually and intermediate "step".