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

How to insert a new subtitle that begin at the actual timestamp of mpv? #26

Open
jpggithub opened this issue Dec 23, 2020 · 5 comments
Open

Comments

@jpggithub
Copy link

I don't know if I understand badly how to use subed or if it is a missing feature.

For example, I open a .srt file and load the video.
There are some subtitles for the first minute of the video.

I press M-SPC to play the video for 2 minutes.

Then I pause the video and I want to insert a subtitle that starts at 2 minutes (the actual timestamp of mpv).

Is it possible to do this?

Each time I use M-i, subed add a new subtitle that starts at the end of the last subtitle (plus a given length) and backward the video accordingly.

@rndusr
Copy link
Collaborator

rndusr commented Dec 23, 2020 via email

@jpggithub
Copy link
Author

jpggithub commented Dec 23, 2020

Yes, it would be nice.
With the actual features, the video go backward when you insert a new subtitle :-(
So, in my example, you have to play the video again to reach the 2 minutes timestamp befor to do C-c [.

EDIT: perhaps something to do with #1 (see section "3. Insert subtitle with player's timestamp")

@rndusr
Copy link
Collaborator

rndusr commented Dec 23, 2020 via email

@jpggithub
Copy link
Author

Thanks! I was a little bit confused with all the options.

Conclusion :

  • in Emacs, disable syncing playback position to point (with C-c , if it was enabled before)
  • in mpv, go to the position you want for the subtitle and pause
  • in Emacs, insert a new subtitle with M-i
  • then do C-c [ to copy the actual timestamp of mpv as the start of the subtitle

The end of the subtitle could then be before the start (because of the timestamp previously given by M-i) but my main problem is solved.

I leave the bug opened because I think the procedure could be more simple ;-)

@jpggithub jpggithub changed the title How to insert a new subtitle that began at the actual timestamp of mpv? How to insert a new subtitle that begin at the actual timestamp of mpv? Dec 23, 2020
@sachac
Copy link
Owner

sachac commented Dec 24, 2020

The subed-split-subtitle command at https://github.com/rndusr/subed/pull/25 may be useful for this scenario, if you start with a subtitle that spans the whole video.

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