[FFmpeg-devel] [PATCH] avfilter: add shuffleframes filter
Clément Bœsch
u at pkh.me
Tue Oct 20 20:15:06 CEST 2015
On Tue, Oct 20, 2015 at 08:10:55PM +0200, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
> doc/filters.texi | 20 ++++++
> libavfilter/Makefile | 1 +
> libavfilter/allfilters.c | 1 +
> libavfilter/vf_shuffleframes.c | 159 +++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 181 insertions(+)
> create mode 100644 libavfilter/vf_shuffleframes.c
>
> diff --git a/doc/filters.texi b/doc/filters.texi
> index 1af0a72..9ff5e24 100644
> --- a/doc/filters.texi
> +++ b/doc/filters.texi
> @@ -9945,6 +9945,26 @@ Set the size of the box used to represent one palette color entry. Default is
> @code{30} (for a @code{30x30} pixel box).
> @end table
>
> + at section shuffleframes
> +
> +Reorder and/or duplicate video frames.
> +
> +It accepts the following parameters:
> +
> + at table @option
> + at item mapping
> +Set the destination indexes of input frames.
> +This is space or '|' separated list of indexes that maps input frames to output
> +frames. Number of indexes also sets maximal value that each index may have.
> + at end table
> +
> +The first frame has the index 0. The default is to keep the input unchanged.
> +
> +Swap second and third frame of every three frames of the input:
> + at example
> +ffmpeg -i INPUT -vf "shuffleframes=0 2 1" OUTPUT
> + at end example
> +
No random shuffle of batches of frames?
[...]
--
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151020/9edd432b/attachment.sig>
More information about the ffmpeg-devel
mailing list