[FFmpeg-devel] [PATCH][WIP] avfilter: add libebur128 port

Kyle Swanson k at ylo.ph
Sun Jun 12 23:14:56 CEST 2016


Hi all,

Here's three patches. These are still WIP and not ready to be pushed.

0001-avfilter-add-libebur128-port.patch
This first patch ports libebur128 to ffmpeg. I haven't re-indented
these yet, so please diff `ebur128.c' and `ebur128.h' with the
original libebur128 files[1][2] to see what has changed. Also included
is `queue.h' which comes from BSD, which AFAIK should be distributable
if we decide to go this route. All these files still need their
license header, as libebur128 is MIT licensed and needs its own
copyright message. One other thing to take a look at is the section
with the sse2 optimizations - does FFmpeg already have a macro we
could use for this?


0002-avfilter-af_loudnorm-use-internal-ebur128-api.patch
This patch removes the libebur128 dependency for the loudnorm and uses
the new internal ebur128 API.


0003-avfilter-af_astats-add-ebur128-stats.patch
This patch adds ebur128 stats to the astats filter. Because of the
extra computation required to calculate ebur128 stats, I decided that
these modes should be explicitly specified via a few new filter
parameters. From my perspective, it makes more sense for this to live
in the astats filter instead of a completely separate filter
(f_ebur128). I'd vote for removing the current ebur128 filter, but if
we wanted to keep it it should be ported to use the new ebur128 code.

Thanks,
Kyle

[1] https://raw.githubusercontent.com/jiixyj/libebur128/master/ebur128/ebur128.h
[2] https://raw.githubusercontent.com/jiixyj/libebur128/master/ebur128/ebur128.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avfilter-add-libebur128-port.patch
Type: application/octet-stream
Size: 72203 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160612/f1b39c07/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-avfilter-af_loudnorm-use-internal-ebur128-api.patch
Type: application/octet-stream
Size: 9977 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160612/f1b39c07/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-avfilter-af_astats-add-ebur128-stats.patch
Type: application/octet-stream
Size: 10681 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160612/f1b39c07/attachment-0002.obj>


More information about the ffmpeg-devel mailing list