I'm working on an application (c++/Linux) that uses the ffmpeg 3.4 libraries to do video encoding. Since version 3.3 hardware acceleration is enabled by default if the platform supports it. The graphics card in my dev system has hardware acceleration support, but the tool also has to run on older systems that do not. How can i configure ffmpeg to disable hardware acceleration for video encoding? There is a ton of info about enabling, but i just cant find how to disable it.
ps. There already is a similar question: How to turn off ffmpeg hardware acceleration but its a year old and unfortunately still unanswered.
I can't find any reference so I think the support for hardware acceleration is enabled by default (there's a configure option to disable it, --disable-hwaccels). You still need to code to make it happen. The wiki covers command-line usage as far as I can see.
Decoding (internal):
doc/examples/hw_decode.cDecoding / Encoding (external):
avcodec_find_decoder_by_name / avcodec_find_encoder_by_name functionscodec_api (eg: h264_nvenc) and they have specific options based on the SDK they use.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With