[FFmpeg-user] How to loop animation in video indefinitely?

andrei at xaker.ru andrei at xaker.ru
Thu Dec 18 21:56:02 CET 2014


Thanks, that work like that:
ffmpeg -y -i simple.mp4 -loop 1 -i /home/andrei/Загрузки/tmp/%d.gif -filter_complex overlay -shortest testvid.mp4

18.12.2014, 22:36, "andrei at xaker.ru" <andrei at xaker.ru>:
> I found that http://ffmpeg.org/pipermail/ffmpeg-user/2012-March/005528.html and this man asq about loop like Me. He trying use version 0.10, I try (just now)
> ffmpeg version 2.5.1 Copyright (c) 2000-2014 the FFmpeg developers
>   built on Dec 19 2014 01:07:47 with gcc 4.7 (Debian 4.7.2-5)
>   configuration:
>   libavutil      54. 15.100 / 54. 15.100
>   libavcodec     56. 13.100 / 56. 13.100
>   libavformat    56. 15.102 / 56. 15.102
>   libavdevice    56.  3.100 / 56.  3.100
>   libavfilter     5.  2.103 /  5.  2.103
>   libswscale      3.  1.101 /  3.  1.101
>   libswresample   1.  1.100 /  1.  1.100
> I compille that from source. And like before loop doesn't work.
> May be I do something wrong? May be that's not documented?
>
> 18.12.2014, 20:31, "andrei at xaker.ru" <andrei at xaker.ru>:
>>  Hi peoples!
>>  Now I work around one important project and I need to add some animation to the video.
>>  I have Debian 7.5 and ffmpeg version 1.0.10 from repo.
>>   built on Jul 25 2014 07:50:40 with gcc 4.7 (Debian 4.7.2-5), builded with nex options:
>>    configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libfdk-aac --enable-libdc1394 --disable-altivec --dis  libavutil      51. 73.101 / 51. 73.101
>>    libavcodec     54. 59.100 / 54. 59.100
>>    libavformat    54. 29.104 / 54. 29.104
>>    libavdevice    54.  2.101 / 54.  2.101
>>    libavfilter     3. 17.100 /  3. 17.100
>>    libswscale      2.  1.101 /  2.  1.101
>>    libswresample   0. 15.100 /  0. 15.100
>>    libpostproc    52.  0.100 / 52.  0.100
>>  My question is: how to loop animation indefinitely?
>>  I do: ffmpeg -i simple.mp4 -i /home/andrei/Загрузки/tmp/%d.gif -loop 0 -filter_complex overlay -shortest testvid.mp4
>>  but animation don't repeat. What need to do?


More information about the ffmpeg-user mailing list