loop over a sequence of images again and again

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

loop over a sequence of images again and again

Michael Koch
Let's assume I have a sequence of 100 images. Is it possible to let
ffmpeg loop over this input sequence again and again?
I mean the input should be 0, 1, 2, ... , 99, 0, 1, 2, ... , 99, 0, 1,
2  and so on. Is this possible?

Thanks,
Michael

_______________________________________________
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: loop over a sequence of images again and again

Moritz Barsnick
On Tue, Dec 05, 2017 at 20:21:48 +0100, Michael Koch wrote:

> Is this possible?

Yes.

Oh, you want more info? ;-)

> Let's assume I have a sequence of 100 images. Is it possible to let
> ffmpeg loop over this input sequence again and again?
> I mean the input should be 0, 1, 2, ... , 99, 0, 1, 2, ... , 99, 0, 1,
> 2  and so on. Is this possible?

Have a look at the image2 demuxer and its "-loop" option. "-loop 1"
should also work for the concat demuxer, which takes a list of input
files (instead of following a pattern).

Moritz
_______________________________________________
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: loop over a sequence of images again and again

Rob Hallam-2
In reply to this post by Michael Koch
On 5 December 2017 at 19:21, Michael Koch <[hidden email]>
wrote:

> Let's assume I have a sequence of 100 images. Is it possible to let ffmpeg
> loop over this input sequence again and again?
> I mean the input should be 0, 1, 2, ... , 99, 0, 1, 2, ... , 99, 0, 1, 2
> and so on. Is this possible?
>

ffmpeg accepts input on stdin (https://ffmpeg.org/ffmpeg-protocols.html#pipe),
perhaps you could use a bash/batch/powershell wrapper to pipe the images in
a loop?

Cheers,
Rob
_______________________________________________
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: loop over a sequence of images again and again

Michael Koch
In reply to this post by Moritz Barsnick
> Have a look at the image2 demuxer and its "-loop" option. "-loop 1"
should also work for the concat demuxer, which takes a list of input
files (instead of following a pattern).

That's exactly what I need. Thank you very much!

Michael


_______________________________________________
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".