简体   繁体   中英

How to animate harcoded subtitles (.ass) or drawtext in ffmpeg?

I'm trying to add hardcoded text or subtitles to a video. I've used.ass file to easily add subtitles with custom background color, font color, font size and placement and fade animation.

But now I want to add slide animation to the text. Also, note that if this is not possible in.ass (Advanced Substation Alpha) how would one go about trying to add this using DrawText?

Also not sure how I can split the text into multiple lines. (Wouldn't this involve knowing the size of the text and splitting)

我要实现的目标示例

Turns out most videos like these are generally created using a combination of HTML5 canvas animation so they can easily be previewed to the user without any server processing. And once the video needs to be rendered a similar setup in the server with headless chrome is used to record a video.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM