[FFmpeg-user] Help regard ffmpeg xfade transitions
Paul B Mahol
onemda at gmail.com
Sat Apr 5 19:03:49 EEST 2025
On Sat, Apr 5, 2025 at 3:54 PM Abdullah Qasim <abdullah.qasim225 at gmail.com>
wrote:
> I have around 10 pictures and 12 texts in a video that I want to create
> using ffmpeg in nodejs. I am testing the commands and get an issue. I want
> to animate them using xfade transitions means that text and shapes appear
> with some transitions. Those transitions must run at the same time. The
> issue I am facing is that they runs at different time, the first runs, then
> second and so on. Here is the command:
>
> ffmpeg -loop 1 -t 3 -i "bg shape.png" -loop 1 -t 2 -i "grey shape.png"
> -filter_complex
>
> "[0][1]overlay=0:680[ol];[0][ol]xfade=transition=dissolve:offset=1:duration=1[t3];[t3]drawtext=text='Hello':fontsize=100:x=100:y=100[tt];[t3][tt]xfade=transition=dissolve:offset=1:duration=1"
> -y output.mp4
>
>
> Here is the video generated.
>
>
> https://media-hosting.imagekit.io/23ed6f2ef884474c/output.mp4?Expires=1838403308&Key-Pair-Id=K2ZIVPTIP2VGHC&Signature=ih5E2jdQe--TgcJWIH5nhtL5CTLbVJOt5YHueibLGuipRih0-f6qNI-WLDzfsvn~cG7f8Ls4lgw2Xqp7VN6B8IMratkEoDcd~TmskdwRH2JfSqAyyrkIB8MghuRMzVEH1nS1v3iKnAVerSzdXcW8zR2G-D5WbJYY8sWyhjGBujToc~v7ZgiR9IGKzQc1uJXqNRtUWFHu0083WTm8FIM1sRRl4dvgVv8ZtA0j9Wp8yMsXvsBR0oMUqu2mXij2tujB08Mwi-azjaA99TCFCF3jAQ9uvaBi7STT7aE9evMZGlERWc1jhTtH-IdEHPA5j24p0T-J0Nx5tbBkUfFpk6GFVw__
>
> I am expecting the transitions to run at the same time.
>
Then make single transition with frame before overlay to frame after
overlay + drawtext.
Currently, there is one transition too much....
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list