Skip to content

Commit

Permalink
Update README.md with an example and a fix (#10)
Browse files Browse the repository at this point in the history
Added an example for running on CPU, GPU, and iGPU at the same time. Also provided a fix for the encoding command when using rife_v2.
  • Loading branch information
dathide authored Feb 26, 2021
1 parent 9037207 commit 7c3aa49
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,18 @@ https://arxiv.org/abs/2011.06294

Input two frame images, output one interpolated frame image.

### Example Command
### Example Commands

```shell
./rife-ncnn-vulkan -0 0.jpg -1 1.jpg -o 01.jpg
./rife-ncnn-vulkan -i input_frames/ -o output_frames/
```

Example below runs on CPU, Discrete GPU, and Integrated GPU all at the same time. Uses 2 threads for image decoding, 4 threads for one CPU worker, 4 threads for another CPU worker, 2 threads for discrete GPU, 1 thread for integrated GPU, and 4 threads for image encoding.
```shell
./rife-ncnn-vulkan -i input_frames/ -o output_frames/ -g -1,-1,0,1 -j 2:4,4,2,1:4
```

### Video Interpolation with FFmpeg

```shell
Expand All @@ -56,6 +61,7 @@ ffmpeg -i input.mp4 input_frames/frame_%06d.png
./rife-ncnn-vulkan -i input_frames -o output_frames

# encode interpolated frames in 48fps with audio
# if using rife_v2, replace %06d with %08d
ffmpeg -framerate 48 -i output_frames/%06d.png -i audio.m4a -c:a copy -crf 20 -c:v libx264 -pix_fmt yuv420p output.mp4
```

Expand Down

0 comments on commit 7c3aa49

Please sign in to comment.