Skip to content

Commit

Permalink
Update with content from the Wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Granjow committed Apr 18, 2020
1 parent 41fc8cc commit 9925017
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
19 changes: 18 additions & 1 deletion src/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ New projects should be created in an ''empty'' directory. You can either select
[[Image:pngGUI/simpleCurveAnnotated.png|thumb|Simple linear curve]]
The canvas now is your playground. It has two axis:
* The vertical '''source axis''' where the frame number is displayed at the current cursor position. Imagine a reel of film rolled out along this axis. This is how it works. The first frame is at the bottom, the last frame is at the fat line that becomes visible when zooming out with Ctrl+Mousewheel.
* The horizontal '''output axis''' will be the rendered video. Now if you draw a curve, what slowmoVideo does is that for each output frame it draws a vertical line and looks where it crosses your curve. From this point it goes left until it hits the source axis and takes the frame at this position.
* The horizontal '''output axis''' will be the rendered video. Now if you draw a curve, what slowmoVideo does is that for each output frame it draws a vertical line and looks where it crosses your curve. From this point it goes left until it hits the source axis and takes the frame at this position. Drawing is done by creating nodes (double click on canvas). Nodes will be connected by a line.

With this information you see that, in the picture on the right, the first line plays the video at its original speed since the time passed on the output axis is the same as the time passed on the source axis. The second line stops the video, the third line plays it at low speed (maybe 7 %). The last line plays the video in reverse direction.

Expand Down Expand Up @@ -58,6 +58,23 @@ Some rendering artifacts can be removed by editing the optical flow.

<nowiki><iframe width="560" height="315" src="http://www.youtube.com/embed/aLtIvEiDD2k" frameborder="0" allowfullscreen></iframe></nowiki>

=== Command Line Examples ===

To make a video 5x slower:

$$
/usr/local/bin/slowmoRenderer -target video /root/timelapse/test.mp4 auto -input video /root/timelapse/timelapse.mp4 -slowfactor .2 -start :start -end :end -interpolation twoway2 -size orig
$$

To interpolate additional frames in a sequence of images:

$$
<nowiki>
# Note: The formattingPattern (???) for input source is unclear.
> /usr/local/bin/slowmoRenderer -target images /root/timelapse/interpolated/%1.jpg -input images ??? /root/timelapse/source_images/ -slowfactor .2 -start :start -end :end -interpolation twoway2 -size orig
</nowiki>
$$


=== Links ===
<references/>
4 changes: 4 additions & 0 deletions src/faq.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
# You may want to try a lower lambda value (5 or 10) in the rendering dialog.
# Alternatively you can manually fix the optical flow with slowmoFlowEdit, a short tutorial is [http://www.youtube.com/watch?v=aLtIvEiDD2k here]. This is often a good solution if you are sure that you want to use a clip of your video and need to remove some errors.

==== Black stripped frames output ====

Change to "_Farnback_" for _CPU, OpenCV_ in the Preferences settings. Close slowmoVideo. Delete project caches from project folders and temporary files.


=== slowmoUI ===

Expand Down
2 changes: 1 addition & 1 deletion src/styleSlowmo/tplPage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</nav>

<div class="headerNote">
This is the official slowmoVideo site. Find the code <a href="https://github.com/slowmoVideo">on GitHub!</a>
Coders: <a href="https://github.com/slowmoVideo">Go to GitHub</a>, or <a href="https://github.com/slowmoVideo/slowmoVideoWeb">edit this page</a>!
</div>

<h2>{{{h1|}}}</h2>
Expand Down

0 comments on commit 9925017

Please sign in to comment.