Page MenuHome

CMake/Find packages: add FindFFmpeg.cmake module.
ClosedPublic

Authored by Ankit Meel (ankitm) on Sep 17 2020, 1:43 PM.

Details

Summary

The behaviour is a bit different from other find modules:
FFMPEG_FIND_COMPONENTS should contain the
list of required libraries before calling find_package(FFmpeg).
If not set, a default set of most common libraries is searched for:
avcodec avdevice avfilter avformat avutil
http://ffmpeg.org/download.html

Ref D8855

Diff Detail

Repository
rB Blender

Event Timeline

Ankit Meel (ankitm) requested review of this revision.Sep 17 2020, 1:43 PM
Ankit Meel (ankitm) created this revision.

This assumes that ffmpeg is compiled with the specific set of libraries that we have as part of Blender's precompiled libraries.

I think logic for that should be left to the platform_*.cmake files, and only the actual ffmpeg libraries should be detected in FindFFmpeg.cmake, so that it works for typical installations.

  • Take a list of components, or use a default set.
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)Sep 28 2020, 2:42 PM
Ankit Meel (ankitm) edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Sep 28 2020, 3:53 PM