Coder Social home page Coder Social logo

cannot load nvcuda.dll about ffmpeg-cpp HOT 3 CLOSED

raveler avatar raveler commented on July 22, 2024
cannot load nvcuda.dll

from ffmpeg-cpp.

Comments (3)

driesj avatar driesj commented on July 22, 2024 1

This is because I had outputVideoCodec set as "H264", which only works with Nvidia hardware. changing to VP9 or NONE made it work.

from ffmpeg-cpp.

Raveler avatar Raveler commented on July 22, 2024

Right, thanks! This is because the H264 encoder of ffmpeg internally uses nvenc, which is a hardware-based encoder available in nVidia GPU's.

It is very easy to write a Codec that will use libx264 (the software encoder) instead. Just edit H264NVEncCodec.cpp line 7 and replace "h264_nvenc" with "libx264". Better yet, you should probably just make a new class for that codec. You also need to make sure you set a valid preset, since the default preset used in demo.cpp is "hq", which is not supported by libx264. If you run the example after changing the codec to libx264, it will give a nice error with all available legal presets.

from ffmpeg-cpp.

driesj avatar driesj commented on July 22, 2024

Thanks, this works very well!

from ffmpeg-cpp.

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.