For single images, could use a generic ASCII order

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

For single images, could use a generic ASCII order

Alan Corey
If you're trying to make an animation by combining individual frame
images, there's the %03d approach and the glob approach, but even the
glob approach seems to look for a numerical sequence in the file
names.  If that sequence is discontinuous it breaks the importing.  If
there's more than 1 number in the file names only the last one can
have the %03d.   Having something that will just accept the files in
the order they ASCII sort in would be good.

I ran into this before too, this time I've got a bunch of files I
split out of animated GIFs with Gifsicle that I want to put into an
animation.  Not every possible number is present, that seems to cause
a problem.  My only option is to rename all the files to feed ffmpeg
an unbroken sequence.

This kind of sequence doesn't work:
2017-02-12_01-30.005.gif
2017-02-12_01-30.006.gif
2017-02-12_01-30.007.gif
2017-02-12_02-00.005.gif
2017-02-12_02-00.006.gif
2017-02-12_02-00.007.gif

  Alan Corey

--
-------------
No, I won't  call it "climate change", do you have a "reality problem"? - AB1JX
Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach  Impeach
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: For single images, could use a generic ASCII order

Carl Eugen Hoyos-2
2017-02-14 0:09 GMT+01:00 Alan Corey <[hidden email]>:

> This kind of sequence doesn't work:
> 2017-02-12_01-30.005.gif
> 2017-02-12_01-30.006.gif
> 2017-02-12_01-30.007.gif
> 2017-02-12_02-00.005.gif
> 2017-02-12_02-00.006.gif
> 2017-02-12_02-00.007.gif

This does not work with gif (they are not "images" in the
FFmpeg sense), you have to first convert them into
another format (png).

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: For single images, could use a generic ASCII order

Alan Corey
On 2/13/17, Carl Eugen Hoyos <[hidden email]> wrote:

> 2017-02-14 0:09 GMT+01:00 Alan Corey <[hidden email]>:
>
>> This kind of sequence doesn't work:
>> 2017-02-12_01-30.005.gif
>> 2017-02-12_01-30.006.gif
>> 2017-02-12_01-30.007.gif
>> 2017-02-12_02-00.005.gif
>> 2017-02-12_02-00.006.gif
>> 2017-02-12_02-00.007.gif
>
> This does not work with gif (they are not "images" in the
> FFmpeg sense), you have to first convert them into
> another format (png).

Oh great, another step.  Well as an animated GIF they're just too big.
I set up a cron job and grabbed a storm's NWS animated GIFs, split
them apart with Gifsicle and now I want to make about 2 days worth of
radar pictures into a 30 second or so video.  Convert to the rescue I
guess.  So I have a lot of renaming ahead anyway.  Rectangle mode in
the Joe editor makes turning ls output into mass renaming scripts
fairly easy.

But my point was the way ffmpeg handles file names, it would be nice
to have a way to ignore numbers in them.  The last problem I had with
it was with PNG files from Povray, each had a sequence number followed
by a frame number.  ls put them in the right order, ffmpeg needed them
to be renamed.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".