Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract subtitles #932

Closed
loaiabdalslam opened this issue Mar 26, 2019 · 3 comments
Closed

extract subtitles #932

loaiabdalslam opened this issue Mar 26, 2019 · 3 comments

Comments

@loaiabdalslam
Copy link

I'm trying to find a way to grab the current subtitle in an MP4 file. I see that ffmpeg can extract all subtitles into an .srt file, but it would be useful for me to just grab the current subtitle based on the current timestamp of a video being played. Especially useful if it can be done with python. This would be akin to opencv and moviepy, where I can extract the current frame as an image based on the current timestamp of the video.

I see a lot of libraries that work with subtitle .srt files (e.g. pysrt) but none that access individual subtitles from a playng mp4 file.

how to extract srt from mp3 ? and then show it at top of video

@Overdrivr
Copy link
Collaborator

Do you mean extracting parts of a subtitle in a certain timeframe ? This can be easily achieved with pysrt. Could you clarify this issue a bit ?

@loaiabdalslam
Copy link
Author

I'm working on creating a project to extract the subtitles from the video and at the same time rewrite it on the video after extracting it in a black label, how can I achieve this through the library I want code or a way for doing that ..

@Overdrivr
Copy link
Collaborator

Hum this can be done with moviepy but is more of a question for https://stackoverflow.com, this issue tracker is for bugs and new features only otherwise it's not manageable for the maintainers.

Best,

@keikoro keikoro added needs-more-info Waiting for submitter's reply, feedback, updates,... and removed needs more info needs-more-info Waiting for submitter's reply, feedback, updates,... labels Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants