Comments (3)
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.
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.
Thanks, this works very well!
from ffmpeg-cpp.
Related Issues (20)
- Links are dead HOT 1
- Amerge filter
- Win32 version
- transcode to memory HOT 2
- Using namespace is not allowed in header file HOT 4
- For your information
- C++17 / v142 / 4.2.3 HOT 1
- Is this library good for Real-time IP Camera Video capturing and recording? HOT 1
- demo with 'GENERATED video failed
- filter output HOT 1
- Linux support HOT 5
- cannot support Alpha-Channel video? HOT 2
- Reading timecode metadata from file?
- [ERROR] Dead Link on the Code -> README.MD : Raveler FFMPEG CPP
- UDP streaming
- Can I use this library for video captureing from my screen? ( as Screen Recorder)
- Setting packet duration
- support for latest ffmpeg version
- compiling error
- OpenCV and RTMP HOT 4
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 ffmpeg-cpp.