![]() setpts filters required for PTS adjusting for second and later repeats, otherwise most output muxers will fails with non-monotonic PTS increasing: loop does not recalc PTS. Zero loop= arguments means infinity loop. Next command doing this work for you: ffmpeg -re -f lavfi -i "movie=filename=input.mp4:loop=0, setpts=N/(FRAME_RATE*TB)" output.mp4 Ffmpeg filter complex sequence movie#Or to loop a GIF: ffmpeg -i input -loop 3 output.gifįor GIF output also see How do I convert a video to GIF using ffmpeg, with reasonable quality?Īt least on FFmpeg 2.8.x (but oldie should works too) you can use lavfi as input format and complex filter graph using movie and setpts filters as a argument for -i option. Ffmpeg filter complex sequence series#series of images ffmpeg -loop 1 -i d.jpg -t 30 -vf format=yuv420p output.mp4 vf format=yuv420p is for compatibility reasons. ![]() This example will loop a single image over and over but the -t 30 will limit the output duration to 30 seconds: ffmpeg -loop 1 -i input.png -t 30 -vf format=yuv420p output.mp4 But it can be used to infinitely loop a single image or a series of images. The -loop option is specific to the image file demuxer and gif muxer, so it can't be used for typical video files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |