Bug 5353

Summary: zoneminder is using the deprecated libavresample library
Product: Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: zoneminderAssignee: Andrew Bauer <zonexpertconsulting>
Status: RESOLVED FIXED    
Severity: enhancement CC: leigh123linux
Priority: P1    
Version: f34   
Hardware: x86_64   
OS: GNU/Linux   
namespace:
Bug Depends on:    
Bug Blocks: 5347    

Description Dominik 'Rathann' Mierzejewski 2019-08-10 19:09:24 CEST
libavresample was deprecated in FFmpeg 4.0, please switch to libswresample.

See bug https://bugzilla.rpmfusion.org/show_bug.cgi?id=5347 for more details, including porting examples.
Comment 1 Andrew Bauer 2020-05-27 03:56:44 CEST
Zoneminder is currently compatible with both libavresample and libswresample.

Cmake first checks for the presence of libswresample, and only if it does not find libswresample, does it then search for libavresample.

See: https://github.com/ZoneMinder/zoneminder/blob/master/CMakeLists.txt#L618

The f32 build output confirms this:

> -- Looking for libswresample/swresample.h
> -- Looking for libswresample/swresample.h - found

At the end of cmake process, a summary of libraries found is printed:

> [STATUS]Starting Fedora Build Options...
> -- Optional libraries found: zlib cURL OpenSSL PCRE x264 mp4v2 AVFormat AVCodec AVDevice AVUtil SWScale SWResample libVLC

Full build output is here:
http://koji.rpmfusion.org/kojifiles/packages/zoneminder/1.34.14/1.fc32/data/logs/x86_64/build.log


If there is data to show this is not the case then please present it.
Comment 2 Andrew Bauer 2020-05-27 04:02:41 CEST
Strange I never saw the email alert for this bug when it was originally reported in 2019. I'll wait a couple days for any follow-up reports before closing it.
Comment 3 leigh scott 2020-05-27 10:09:39 CEST
Looks like it's been fixed.