This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
70 additions
and
61 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
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,64 +1,75 @@ | ||
# Example Usage | ||
Run `butterflow -h` for a full list of options and their default values. | ||
|
||
## Interpolation | ||
## Typical commands that you will use | ||
### Frame interpolation | ||
Double the frame rate: | ||
|
||
``` | ||
butterflow -sm -r 2x [video] | ||
butterflow -r 2x [video] | ||
``` | ||
|
||
Increase a video's frame rate to 96fps: | ||
Set a video's frame rate to 96fps: | ||
|
||
``` | ||
butterflow -sm -r 96 [video] | ||
butterflow -r 96 [video] | ||
``` | ||
|
||
## Slow motion | ||
Use the `-sm`, `--smooth-motion` flag if having artifact-less frames is a | ||
priority. This will tune settings to emphasize blending frames over warping | ||
pixels, which is the default behavior. | ||
|
||
### Altering speed and duration | ||
Slow-mo a video to 0.25x speed: | ||
|
||
``` | ||
butterflow -s full,spd=0.25 [video] | ||
``` | ||
|
||
Slow-mo a video to be 30s long: | ||
Set a video's duration to be 30s long: | ||
|
||
``` | ||
butterflow -s full,dur=30 [video] | ||
``` | ||
|
||
## Working on a single region | ||
Slow-mo a 1s region by 0.5x speed: | ||
This will speed up or slow down the video depending on it's original duration. | ||
|
||
### Working on one region | ||
Slow-mo a 1s region to 0.5x speed: | ||
|
||
``` | ||
butterflow -s a=5,b=6,spd=0.5 [video] | ||
butterflow -t -s a=5,b=6,spd=0.5 [video] | ||
``` | ||
|
||
Slowmo a 0.5s region to be 3s long: | ||
The `-t`, `--trim-regions` option will discard all regions that are not | ||
explicitly specified. Keep in mind, rendering will be faster if you're working | ||
on smaller regions, so this flag will be useful if you need to do quick tests. | ||
|
||
``` | ||
butterflow -s a=1.5,b=2,dur=3 [video] | ||
``` | ||
### Multiple regions | ||
Separate regions with a colon `:`. | ||
|
||
## Multiple regions | ||
With two regions: | ||
|
||
``` | ||
butterflow -s a=1,b=2,spd=0.5:a=9,b=end,spd=0.5 [video] | ||
butterflow -t -s a=1,b=2,spd=0.5:a=9,b=end,spd=0.5 [video] | ||
``` | ||
|
||
With four regions: | ||
|
||
``` | ||
butterflow -s \ | ||
a=4.2,b=6,spd=0.125:\ | ||
butterflow -t -s \ | ||
a=0,b=6,spd=0.125:\ | ||
a=6,b=6.8,dur=3:\ | ||
a=6.8,b=7,dur=0.4:\ | ||
a=20,b=end,fps=200 [video] | ||
``` | ||
|
||
## Quality | ||
## Using fractions | ||
You can use fractions for rates, e.g., `30/1.001` is equivalent to 29.97fps. | ||
|
||
## Robustness of image | ||
Butterflow uses the Farneback algorithm to compute dense optical flows for frame | ||
interpolation. You can pass in different values to the function to fine-tune the | ||
quality (robustness of image) of the resulting videos. Run `butterflow -h` for a | ||
list of advanced options and their default values. | ||
quality (robustness of image) of the resulting videos. | ||
|
||
Run `butterflow -h` for a list of advanced options and their default values. |
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
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