Skip to content

Commit 7c3aa49

Browse files
authored
Update README.md with an example and a fix (#10)
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.
1 parent 9037207 commit 7c3aa49

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,18 @@ https://arxiv.org/abs/2011.06294
3030

3131
Input two frame images, output one interpolated frame image.
3232

33-
### Example Command
33+
### Example Commands
3434

3535
```shell
3636
./rife-ncnn-vulkan -0 0.jpg -1 1.jpg -o 01.jpg
3737
./rife-ncnn-vulkan -i input_frames/ -o output_frames/
3838
```
3939

40+
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.
41+
```shell
42+
./rife-ncnn-vulkan -i input_frames/ -o output_frames/ -g -1,-1,0,1 -j 2:4,4,2,1:4
43+
```
44+
4045
### Video Interpolation with FFmpeg
4146

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

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

0 commit comments

Comments
 (0)