You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each line of the subtitle contains three attributes. content is the text to display. startTime and endTime are the start and end time of current line, in milliseconds, where endTime can be null if current line ends right before previous line.
I have written two versions of code to create something like a SubtitleScene that displays a subtitle on the bottom of video view and I compile my Manim file using command like manim -t ./scene.py SubtitleScene. However, only the first version generates the correst subtitle video. The second version generates a blank video and an Output file does not contain any stream warning is shown after compile. So what's the matter? It's so weird that I can't explain it any way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
While I am using Manim to generate a video subtitle by creating a custom
SubtitleScene
I encountered a strange behavior.My subtitle is stored in a JSON file which looks like this:
Each line of the subtitle contains three attributes.
content
is the text to display.startTime
andendTime
are the start and end time of current line, in milliseconds, whereendTime
can benull
if current line ends right before previous line.I have written two versions of code to create something like a
SubtitleScene
that displays a subtitle on the bottom of video view and I compile my Manim file using command likemanim -t ./scene.py SubtitleScene
. However, only the first version generates the correst subtitle video. The second version generates a blank video and anOutput file does not contain any stream
warning is shown after compile. So what's the matter? It's so weird that I can't explain it any way.Here goes the first version:
And the second version that generates blank video.
Beta Was this translation helpful? Give feedback.
All reactions