-
Notifications
You must be signed in to change notification settings - Fork 261
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
AV_HWDEVICE_TYPE_NONE was not declared #433
Comments
You're right that The hardware-decoding support definitely is present in FFmpeg 3.2, though — it's just that in 3.2, the enum didn't include a (AFAICT it was only meant to be used in situations where HW decoding is supported, and in other situations wouldn't be referenced at all. Which makes for a weird API that the FFmpeg developers presumably thought better of, hence the addition of Our original FFmpeg 3.2 support initialized libopenshot/include/FFmpegReader.h Lines 149 to 153 in 514cb11
It looks like for 3.2 that's what we'll have to revert to doing, while 3.4 and higher can use |
I tracked down an FFmpeg 3.2 PPA for Ubuntu Xenial, and added an additional build to our Travis matrix to test FFmpeg 3.2 specifically. Which revealed that the missing Thanks for pointing this out! Clearly not having FFmpeg 3.2 in our CI matrix has allowed our support to slip quite a bit. |
Thanks! I extracted a patch from #437 and applied to libopenshot-0.2.4 which now builds fine. |
I see that recent FFMpegReader.h has:
However AV_HWDEVICE_TYPE_NONE is not defined in ffmpeg until version 4 (git tag n4.0), despite the suggestion in doc/ HW-ACCEL.md that:
Having searched various ffmpeg git tags, I think that claim is wrong. Maybe some distros have somehow backlported the hardware acceleraton stuff from 4.x to earlier versions (unlikely?).
As a result, libopenshot-0.2.4 cannot build with (for instance) ffmpeg-3.2.4 with error:
The text was updated successfully, but these errors were encountered: