[FFmpeg-devel] [PATCH] avformat/img2dec: Option to play sequence backwards

Michael Niedermayer michael at niedermayer.cc
Sat Feb 12 21:56:47 EET 2022


On Sat, Feb 12, 2022 at 12:57:11PM +0100, Sergio Acereda wrote:
> This patch should allow playing an image sequence in backwards direction, without needing to apply a reverse filter.
> 
> ffmpeg -i sequence%05d.png forward.mkv
> ffmpeg -reverse 1 -i sequence%05d.png backward.mkv
> 
> Signed-off-by: Sergio Acereda <sergio.acereda at gmail.com>
> ---
>  libavformat/img2.h    |  1 +
>  libavformat/img2dec.c | 40 +++++++++++++++++++++++++++-------------
>  2 files changed, 28 insertions(+), 13 deletions(-)

seems to break/change  -loop

ffmpeg -f image2 -loop 1 -framerate 2 -i tickets/3329/arrow_%1d.png -frames 1000 -vf fps=fps=25 -omit_video_pes_length 0 file-3329.ts

the output filesize changes by more than 10x

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Asymptotically faster algorithms should always be preferred if you have
asymptotical amounts of data
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20220212/0eac437c/attachment.sig>


More information about the ffmpeg-devel mailing list