Comments (6)
You have to install ffmpeg. It was not listed in requirements.txt as it is not a python package.
http://ffmpeg.org/download.html
Also go into a console and check if you can execute it, you might not have it in your PATH environment variable.
Without knowing your system I can't give you any more detailed instructions.
Edit:
I should have figured out sooner you are on windows, you have the "Users" folder. Here is a simple guide how to do it in gui: https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/
You can use either the system or user PATH variable, of course 'system' works on any user, 'user' only on your account. Extract ffmpeg to any folder you want, e.g. "C:/Program Files/ffmpeg/" and add the path to the folder with the ffmpeg.exe to PATH. I believe it would be "C:/Program Files/ffmpeg/bin/" in this example, though I'm writing this from memory.
from eccv2022-rife.
@TheHardew Nope, I am on Mac! Mac also has Users folder.
from eccv2022-rife.
@kunwar-aditya I'm not really familiar with mac os, but this seems to be an up to date example of adding things to PATH there: https://medium.com/@grantbrits/editing-path-variable-in-catalina-mac-osx-5532ba447af9
That's also how you could do it on linux using zsh shell, so I think it should work.
Also, you might want to look into homebrew, it is a package manager and it would allow you to install ffmpeg like this: brew install ffmpeg
@So-Yp did you edit the python files used for interpolating video to switch to a different encoder? ffmpeg uses libx264
(notice the x in between). I'm not sure what's the problem with opencv though.
from eccv2022-rife.
@TheHardew Yes, I tried to edit the H264 encoding of the python file, but the code reported an error
OpenCV: FFMPEG: tag 0x34363278/'x264' is not supported with codec id 27 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x31637661/'avc1'
from eccv2022-rife.
@So-Yp change line 82 fourcc = cv2.VideoWriter_fourcc('m', 'p', '4', 'v')
to fourcc = cv2.VideoWriter_fourcc('h', '2', '6', '4')
and when executing the script add --ext=mkv
. This seems to work for me (I hope I didn't forget any steps). If you really need mp4 you can after that execute ffmpeg -i a.mkv -map 0 -c copy a.mp4
. I'm not yet sure, how to change encoding settings. By the way, you should open a new issue for that, so we don't spam here.
Edit:
By changing fourcc to 'a', 'v', 'c', '1'
you can keep mp4 extension.
from eccv2022-rife.
@TheHardew ok,thanks
from eccv2022-rife.
Related Issues (20)
- Reproducing 3.6 HD model HOT 5
- AttributeError: module 'numpy' has no attribute 'float'. HOT 1
- v3模型视频推理问题 HOT 8
- Is it possible to ouput optical flow instead of midpoint flow using latest version? HOT 5
- Training the latest model HOT 2
- question about encode HOT 3
- Convert model to .pt file HOT 1
- 你好,想请教你训练UCF101的参数 HOT 2
- 有关模型训练问题 HOT 1
- 有关生成图片有色偏的问题 HOT 6
- 您好,关于HD测试集的问题 HOT 2
- 您好,有关teacher模块和student模块的问题 HOT 2
- It is not using GPU
- Run ECCV2022-RIFE on AMD ROCM HOT 1
- Google colab dependency
- 有关示例中的命令无法运行的问题。 HOT 2
- 关于复现模型训练 HOT 4
- 如何启动GPU HOT 2
- 测试MiddleBurySet结果时候细节略微模糊 HOT 1
- 数据集该如何设置? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eccv2022-rife.