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

2022-02-13 Thread Michael Niedermayer
On Sun, Feb 13, 2022 at 12:36:14PM +0100, Sergio Acereda wrote: > > 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

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

2022-02-13 Thread Sergio Acereda
> 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 Ok, I'll look into that later. Once I have a new patch, how shoul

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

2022-02-12 Thread Michael Niedermayer
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-

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

2022-02-12 Thread Sergio Acereda
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 --- libavformat/img2.h| 1 + libavformat/img2dec.c |

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

2022-02-11 Thread Sergio Acereda
This patch should allow to play 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 --- libavformat/img2.h| 1 + libavformat/img2dec.c

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

2022-02-11 Thread Sergio Acereda
> I think Apple Mail wraps the lines in the mail or somehow else alters it > breaking > the patch. > > I would recommend to use git send-email or try it with a different mail > client > like MailMate maybe. I see... I'll try with git send-email then, not sure if it will open a new thread or

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

2022-02-11 Thread Marvin Scholz
On 11 Feb 2022, at 17:45, Sergio Acereda wrote: Not sure what I'm doing wrong here. This is what I'm doing: $ git pull $ git co master ...apply changes... $ git add libavformat/img2.h $ git add libavformat/img2dec.c $ git commit -s -m"[PATCH] avformat/img2dec: Option to play sequence backwar

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

2022-02-11 Thread Sergio Acereda
Not sure what I'm doing wrong here. This is what I'm doing: $ git pull $ git co master ...apply changes... $ git add libavformat/img2.h $ git add libavformat/img2dec.c $ git commit -s -m"[PATCH] avformat/img2dec: Option to play sequence backwards" $ git format-patch -s -o "outputfolder" --add-head

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

2022-02-10 Thread Sergio Acereda
By the way, is there any problem with the patch itself? Not sure why it says 'Failed to apply patch'. Did my email client break it somehow? > ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To u

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

2022-02-10 Thread Sergio Acereda
Yes, I tried, but this only works if your sequence has the '-' before the numeric elements. You can see they comment that in the thread, by saying you have to remove the '-' from the expression. $ ffmpeg -v debug -start_number -24 -i Comentaris_prova_%05d.png out.mkv ffmpeg version 2020-10-17-gi

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

2022-02-10 Thread Gyan Doshi
On 2022-02-10 03:01 pm, Sergio Acereda wrote: Signed-off-by: Sergio Acereda --- This patch should allow to play a image sequence in backwards direction, without needing to apply a reverse filter. Have you considered this:  https://stackoverflow.com/a/40479257/ ? Regards, Gyan _

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

2022-02-10 Thread Sergio Acereda
Signed-off-by: Sergio Acereda --- This patch should allow to play a image sequence in backwards direction, without needing to apply a reverse filter. $ ffmpeg -i sequence%05.png forward.mkv $ ffmpeg -reverse 1 sequence%05.png backward.mkv --- libavformat/img2.h| 1 + libavformat/img2dec.c |