Giter VIP home page Giter VIP logo

Comments (6)

TheHardew avatar TheHardew commented on June 3, 2024 4

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.

kunwar-aditya avatar kunwar-aditya commented on June 3, 2024

@TheHardew Nope, I am on Mac! Mac also has Users folder.

from eccv2022-rife.

TheHardew avatar TheHardew commented on June 3, 2024

@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.

So-Yp avatar So-Yp commented on June 3, 2024

@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.

TheHardew avatar TheHardew commented on June 3, 2024

@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.

So-Yp avatar So-Yp commented on June 3, 2024

@TheHardew ok,thanks

from eccv2022-rife.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.