sachac / subed

subed is a subtitle editor for Emacs
179 stars 16 forks source link

subed fails to open the corresponding video file automatically #51

Closed whatacold closed 2 years ago

whatacold commented 2 years ago

Somehow there is a tiny issue that subed fails to open the corresponding video file automatically sometimes, I don't know how to reproduce it yet, but it doesn't bother me too much as I can open the video file via C-c C-v, so this is a low priority problem.

rndusr commented 2 years ago

You can enable debugging with C-c C-d.

  1. Open foo.srt to load subed
  2. C-c C-d
  3. Open bar.srt (bar.mkv exists)

This should tell you what's going on.

whatacold commented 2 years ago

OK, I'll enable debugging and see if there is something interesting.

rndusr commented 2 years ago

I just remembered there's a better way to enable debugging, especially for bugs that only happen occasionally.

(use-package subed
  :config
  (add-hook 'subed-mode-hook 'subed-enable-debugging))

This should always show the debugging window when subed loads. You can press C-c C-d to hide it.

sachac commented 2 years ago

Could you tell me what the filename of your subtitle file is and the filename of your video file? Thanks!

On Sat., Jan. 8, 2022, 19:49 Guangwang Huang, @.***> wrote:

Somehow there is a tiny issue that subed fails to open the corresponding video file automatically sometimes, I don't know how to reproduce it yet, but it doesn't bother me too much as I can open the video file via C-c C-v, so this is a low priority problem.

— Reply to this email directly, view it on GitHub https://github.com/sachac/subed/issues/51, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACD7EQWHZH7Y3ZM7HM6BVDUVDLSRANCNFSM5LRG53MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

whatacold commented 2 years ago

Could you tell me what the filename of your subtitle file is and the filename of your video file? Thanks!

Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.srt and Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.mkv

sachac commented 2 years ago

Could you please try opening your SRT file and then using M-: (subed-guess-video-file) to check the file it guesses it should open? It should display the full path to your video file in the echo area. If it doesn't, that would be strange. If it does, then it's detected, but maybe the code to load it hasn't run or there's been an error (might be on the subed side, might be on the mpv side). Does your Messages buffer have anything? What happens if you M-x toggle-debug-on-error and then try?

I appreciate your patience in dealing with bugs that are hard to reproduce!

On Sun, Jan 9, 2022 at 7:06 PM Guangwang Huang @.***> wrote:

Could you tell me what the filename of your subtitle file is and the filename of your video file? Thanks!

Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.srt and Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.mkv

— Reply to this email directly, view it on GitHub https://github.com/sachac/subed/issues/51#issuecomment-1008451675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACD7EVVAM7G32PO2OQTXVLUVIPHJANCNFSM5LRG53MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

whatacold commented 2 years ago

Could you tell me what the filename of your subtitle file is and the filename of your video file? Thanks!

Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.srt and Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.mkv

Oh, I'm so sorry that I didn't notice that there is a little difference between the file names, actually it's Silicon.Valley.S01E01.720p.BluRay.x265-ShAaNiG.mkv and Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.srt.

Sorry for the misleading 😷, and thank you for the detailed replies.

sachac commented 2 years ago

Thanks for solving that mystery! :)

On Sun., Jan. 9, 2022, 19:06 Guangwang Huang, @.***> wrote:

Could you tell me what the filename of your subtitle file is and the filename of your video file? Thanks!

Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.srt and Silicon.Valley.S01E01.720p.BluRay.x265.ShAaNiG.mkv

— Reply to this email directly, view it on GitHub https://github.com/sachac/subed/issues/51#issuecomment-1008451675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACD7EVVAM7G32PO2OQTXVLUVIPHJANCNFSM5LRG53MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>