-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardware Accell in ffmpeg #389
Comments
If we can build them easily and FFmpeg can fall back on software when the hardware is missing, that is fine. Check pull #388, for example, this is one being investigated for ARM at the moment. |
Hmmm. I'll have to investigate that. I don't believe ffmpeg ever will fallback to using a codec that is not specified. nvenc_h264, h264_qsv, and h264 are all completely separate encoders. It would probably be up to the application to make sure it's requesting the right encoder. |
If they show up as additional encoders, yeah, doesn't sound like that would
cause any issues.
|
Yeah, as far as I know, they are pretty independent from the existing software codecs. What I don't know is how difficult it would be to build, I have always used pre-built binaries, on both windows and linux. I don't know if it's as simple as enabling an additional switch, or if other 3rd party libraries need to be included as well. The first source of info I know of on it is here: https://trac.ffmpeg.org/wiki/HWAccelIntro Might make more sense to you than I. |
Ok, let's keep this issue open so others can check this out as well and weigh in. Thanks for the link! |
FYI, support for Intel QSV as been merged with pull #485. |
MMAL and OpenMAX acceleration has also been merged with pull #388 for ARM platforms. Is there any other supported APIs worth adding? |
I committed Nvidia NVENC as well. |
There are a couple of others like OpenCL, but I remember having issues with that one previously... |
As for OpenCL, it's currently only used for filtering, encoding/decoding is not supported for now. And official ffmpeg seems not to be built with |
On Windows 7 64 bit, JavaCV 1.4, on Skylake (with switchable graphics, I've a AMD GPU as well), I get following: Any ideas how to debug this? This happens both trying mpeg2_qsv and h264_qsv. Edit: Same on a computer with only Intel graphics. |
@mifritscher Please ask upstream about bugs in libmfx: https://github.com/lu-zero/mfx_dispatch/issues |
Also, maybe try again with the new cmake-based build on git master if you can. |
Is there a technical or licensing reason that would prevent enabling the various hardware accelerated codecs in the ffmpeg.jar?
The text was updated successfully, but these errors were encountered: