This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to do Time warp effect?

Tags: None
(comma "," separated)
mke
Registered Member
Posts
3
Karma
0

How to do Time warp effect?

Mon Aug 15, 2011 12:11 am
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.
markoc
Registered Member
Posts
342
Karma
1

Re: How to do Time warp effect?

Mon Aug 15, 2011 7:22 am
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
mke
Registered Member
Posts
3
Karma
0

Re: How to do Time warp effect?

Mon Aug 15, 2011 11:03 am
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
ttill
Registered Member
Posts
372
Karma
0

Re: How to do Time warp effect?

Mon Aug 15, 2011 2:26 pm
You might want to try out Granjow's new tool:
http://slowmovideo.granjow.net/
KoRnholio8
Registered Member
Posts
88
Karma
0

Re: How to do Time warp effect?

Mon Aug 15, 2011 2:57 pm
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!


moorsey
Registered Member
Posts
149
Karma
0

Re: How to do Time warp effect?

Mon Aug 15, 2011 5:48 pm
WOW, those videos are superb! I will have to give this a go!
markoc
Registered Member
Posts
342
Karma
1

Re: How to do Time warp effect?

Mon Aug 15, 2011 7:47 pm
agree completely, WOW!!!

Really good to see such advanced stuff becoming available for Linux video...
mke
Registered Member
Posts
3
Karma
0

Re: How to do Time warp effect?

Tue Aug 16, 2011 1:26 am
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
markoc
Registered Member
Posts
342
Karma
1

Re: How to do Time warp effect?

Wed Aug 17, 2011 3:31 pm
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?

moorsey
Registered Member
Posts
149
Karma
0

Re: How to do Time warp effect?

Wed Aug 17, 2011 9:19 pm
Guys, I would jump on Google+ for your support Qs, might get a better response
https://plus.google.com/108007897734481705775
normcross
Registered Member
Posts
300
Karma
0

Re: How to do Time warp effect?

Wed Sep 07, 2011 2:58 pm
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.
markoc
Registered Member
Posts
342
Karma
1

Re: How to do Time warp effect?

Wed Sep 07, 2011 7:36 pm
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?


moorsey
Registered Member
Posts
149
Karma
0

Re: How to do Time warp effect?

Thu Sep 08, 2011 6:56 am
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!
normcross
Registered Member
Posts
300
Karma
0

Re: How to do Time warp effect?

Thu Sep 08, 2011 10:44 am
@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.
moorsey
Registered Member
Posts
149
Karma
0

Re: How to do Time warp effect?

Thu Sep 08, 2011 4:43 pm
Cool, I'm going to try and install tonight, not compiled from source before, so fingers crossed all goes well!


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient