Video with Subtitle

Ask the community or our support engineers for answers to questions.
How can we show video with subtitles in streamlit?

Hi @Mahendra-Chouhan, welcome to the Streamlit community!

I’m not too familiar with how subtitles are created, but are these embedded in the video? If so, then it would be like displaying any other video, st.video

@randyzwitch thanks for your reply. I have checked the st.video It does not have an option to pass subtitle files in the argument.

Do you have any options? or plan to add this feature in the upcoming release?

Ah okay, I didn’t realize that subtitles were passed as separate files. I’ve opened a feature request for this:

Thanks, @randyzwitch for the feature request. It will be a great feature for multiple language translations in which end-user can change subtitles as per the preferred language.

2 Likes

Hey @Mahendra-Chouhan,

Release 1.32.2 is out and you can now pass subtitles to st.video!

Check out the feature demo to learn all the details and see it in action. :star_struck:

Looking forward to hearing what you think and seeing your new videos!

2 Likes