[FFmpeg-devel] [PATCH v3 1/2] avfilter: Add fsync filter

Stefano Sabatini stefasab at gmail.com
Mon Dec 18 03:04:39 EET 2023


On date Saturday 2023-12-16 09:13:21 +0100, ffmpeg-devel Mailing List wrote:
> ---
>  Changelog                |   1 +
>  MAINTAINERS              |   1 +
>  configure                |   2 +
>  doc/filters.texi         |  33 +++++
>  libavfilter/Makefile     |   1 +
>  libavfilter/allfilters.c |   1 +
>  libavfilter/version.h    |   2 +-
>  libavfilter/vf_fsync.c   | 286 +++++++++++++++++++++++++++++++++++++++
>  8 files changed, 326 insertions(+), 1 deletion(-)
>  create mode 100644 libavfilter/vf_fsync.c
> 
> diff --git a/Changelog b/Changelog
> index 67ef92eb02..a25278d227 100644
> --- a/Changelog
> +++ b/Changelog
> @@ -9,6 +9,7 @@ version <next>:
>  - aap filter
>  - demuxing, decoding, filtering, encoding, and muxing in the
>    ffmpeg CLI now all run in parallel
> +- fsync filter
>  
>  version 6.1:
>  - libaribcaption decoder
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 39b37ee0c5..4257fcad98 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -343,6 +343,7 @@ Filters:
>    vf_delogo.c                           Jean Delvare (CC <jdelvare at suse.com>)
>    vf_drawbox.c/drawgrid                 Andrey Utkin
>    vf_extractplanes.c                    Paul B Mahol
> +  vf_fsync.c                            Thilo Borgmann
>    vf_histogram.c                        Paul B Mahol
>    vf_hqx.c                              Clément Bœsch
>    vf_idet.c                             Pascal Massimino
> diff --git a/configure b/configure
> index 7d2ee66000..2328c96dde 100755
> --- a/configure
> +++ b/configure
> @@ -3745,6 +3745,7 @@ frei0r_deps_any="libdl LoadLibrary"
>  frei0r_filter_deps="frei0r"
>  frei0r_src_filter_deps="frei0r"
>  fspp_filter_deps="gpl"
> +fsync_filter_deps="avformat"
>  gblur_vulkan_filter_deps="vulkan spirv_compiler"
>  hflip_vulkan_filter_deps="vulkan spirv_compiler"
>  histeq_filter_deps="gpl"
> @@ -7647,6 +7648,7 @@ enabled cover_rect_filter   && prepend avfilter_deps "avformat avcodec"
>  enabled ebur128_filter && enabled swresample && prepend avfilter_deps "swresample"
>  enabled elbg_filter         && prepend avfilter_deps "avcodec"
>  enabled find_rect_filter    && prepend avfilter_deps "avformat avcodec"
> +enabled fsync_filter        && prepend avfilter_deps "avformat"
>  enabled mcdeint_filter      && prepend avfilter_deps "avcodec"
>  enabled movie_filter    && prepend avfilter_deps "avformat avcodec"
>  enabled pan_filter          && prepend avfilter_deps "swresample"
> diff --git a/doc/filters.texi b/doc/filters.texi
> index 6d00ba2c3f..9f19cba9df 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -14681,6 +14681,39 @@ option may cause flicker since the B-Frames have often larger QP. Default is
>  
>  @end table
>  
> + at anchor{fsync}
> + at section fsync
> +
> +Synchronize video frames with an external mapping from a file.
> +
> +For each input PTS given in the map file it either drops or creates as many frames as necessary to recreate the sequence of output frames given in the map file.
> +
> +This filter is useful to recreate the output frames of a framerate conversion by the @ref{fps} filter, recorded into a map file using the ffmpeg option @code{-stats_mux_pre}, and do further processing to the corresponding frames e.g. quality comparison.

wrap around 80 chars, here and below

[...]


More information about the ffmpeg-devel mailing list