[FFmpeg-user] Multiple overlays at specific times

Michael Koch astroelectronic at t-online.de
Sun Dec 17 00:46:45 EET 2023


Am 16.12.2023 um 23:41 schrieb emmanuel martin:
> Thanks for answering ! I took some time to understand the jpg frequency at
> 25fps. I made the following modifications and it works very well :
>
> ffmpeg -framerate 30 -loop 1 -i participant1.jpg -framerate 30 -i
> participant1.jpg -filter_complex "\
>
> [0]split=2[v1][v2];\
>
> [v2]format=rgba,lut3d='red.cube'[v3];\
>
> [v3]fade=in:st=0.25:d=2.93:alpha=1[ov];\
>
> [v1][ov]overlay[bg];\
>
> [bg][1]overlay=enable='eq(n,109)'[out1];\
>
> [out1][1]overlay=enable='eq(n,111)'[out2];\
>
> [out2][1]overlay=enable='eq(n,113)'[out3];\
>
> [out3][1]overlay=enable='eq(n,115)'[outv]"\
>
>   -map "[outv]" -c:v libx264 -t 8 -pix_fmt yuv420p -r 30 output.mp4

yes, if you want to insert only one frame, it's better to use the frame 
number instead of a time interval.

Michael



More information about the ffmpeg-user mailing list