[FFmpeg-user] ffmpeg generate the video from non-sequential images
Ayush Narsaria
ayush.narsaria55 at gmail.com
Mon Oct 29 18:29:29 EET 2018
Dear Moritz,
Thank you for replying.
When I try your suggestion I get this error:
Could find no file with path 'res_%d.png' and index in the range 0-4
res_%d.png: No such file or directory
So the filenames start from res_05.png till res_180.png but there are some
files missing in between like res_13.png etc.
Would that be a problem?
Thank you again !
On Mon, Oct 29, 2018 at 4:21 PM Moritz Barsnick <barsnick at gmx.net> wrote:
> On Mon, Oct 29, 2018 at 14:59:43 +0100, Ayush Narsaria wrote:
> > My png files are numbered from res-5.png to res-180.png.
> >
> > The command I give is :
> > ffmpeg -framerate 5 -pattern_type glob -i '*.png' -c:v libx264 output.mp4
>
> The globbing will probably order your files alphabetically, making
> res-1*.png come before res-2.png. resulting in incorrect order.
>
> I suggest:
> $ ffmpeg -framerate 5 -i 'res-%d.png' -start_number 5 -c:v libx264
> output.mp4
> (Untested. Perhaps you need a different "-pattern_type" than glob.)
>
> The numbers must still be sequential though.
>
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
--
Ayush Narsaria
PhD Student
VU University, Amsterdam
More information about the ffmpeg-user
mailing list