-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated readme, added directory initialization
- Loading branch information
Showing
2 changed files
with
71 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,56 @@ | ||
# framebooster | ||
Video framerate booster using motion field transfer | ||
|
||
Framebooster is a optical-flow based video frame interpolator. Given | ||
a video, it will interpolate every other frame -- resulting in a video | ||
with the frame rate doubled. It is written in Python with OpenCV. | ||
|
||
Setup: | ||
|
||
This program requires Python 3 and OpenCV. See http://docs.opencv.org/2.4/doc/tutorials/introduction/linux_install/linux_install.html | ||
for details on installing OpenCV. | ||
|
||
Framebooster uses the Large Displacement Optical Flow (LDOF) to calculate | ||
optical flows. LDOF must be installed if you want to calculate optical | ||
flows using this program. | ||
|
||
LDOF is freely available precompiled or from source, and can be found here: | ||
|
||
http://lmb.informatik.uni-freiburg.de/resources/software.php | ||
|
||
Once you have the the LDOF binary executable, simply point framebooster.py | ||
to it using the --ldof-path option. | ||
|
||
|
||
Running framebooster: | ||
|
||
example: | ||
|
||
> ./framebooster.py -i "videos/example.mp4" --ldof-path="denseflow/ldof" | ||
This would generate output video in the local directory, out.avi. | ||
|
||
For help, run: | ||
|
||
> ./framebooster.py --help | ||
Framebooster may be run with the following options: | ||
|
||
-i : The input video file path. | ||
|
||
-o : The output video file path. | ||
|
||
--calc-flows / --no-calc-flows : Turns optical flow calculation on | ||
or off. If turned off, flows will not be recomputed, the program | ||
will look for precomputed flows in the forward/ and backward/ | ||
directories. | ||
|
||
--ldof-path : Path to the ldof executable (default: ./denseflow/ldof) | ||
|
||
--clean/--no-clean : Deletes frames and flows from the backward, | ||
forward, and frames directories before running. By default, | ||
this flag is set off. | ||
|
||
--nframes : If set to 0 (default), will process the whole input | ||
video. Otherwise, only the first n frames are processed. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters