-
Notifications
You must be signed in to change notification settings - Fork 204
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
update to support libav10 #17
Comments
You probably also want to update avcodec__frame. While not removed from libav10, they have been deprecated and will be removed later. |
Update for libav10 API Author: Ximin Luo <[email protected]> Bug: sackmotion#17
When jpeg-turbo was enabled, LIBS was uncorrectly set: -lpthread, -lm, ... was lost. Same issue with CFLAGS. Fixes sackmotion#17. Signed-off-by: Fabrice Fontaine <[email protected]>
This commit should allow you to compile on rasbian debian stretch, which uses ffmpeg 3.2.12 and includes the changes you referenced above. Note also that the function used for deinterlacing is also no longer available and an alternate method must be used if you will be handling interlaced video. Since I have no interest in deinterlacing, I just pulled that code out and left a note behind. This has been tested using ckxng/motion:mmal-ffmpeg-3.2.12 and the instructions in BUILD-HOWTO, on a Raspberry PI 3 B+ using an up-to-date image with the following properties:
With a Pi Camera Module 2 (8MP), I am able to process motion on a smaller 410x308 image, and output full size 3280x2464 images using |
@ckxng, please check the latest motion code base: https://github.com/Motion-Project/motion |
@tosiara I see. It appears that the official Motion codebase now supports Raspberry PI cameras with MMAL, and Raspbian simply is lagging behind. In that case, I will simply use a recent release of the upstream project instead. Thank you for that pointer! |
libav10 has dropped support for the CODEC_ID_* macros, renaming them to AV_CODEC_ID_*.
We can restore support just by replacing the relevant expressions in ffmpeg.c, but you might want to use a conditional macro instead. Here is the relevant entry from doc/APIchanges:
The text was updated successfully, but these errors were encountered: