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

Is there a way to use subtitles extracted via the Extract Subtitles plugin? #887

Open
nothing2obvi opened this issue Jun 30, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@nothing2obvi
Copy link

Describe the bug
Sorry, not exactly a bug.

I understand that Kodi v21.0 cannot use embedded WebVTT subtitles, but can use external WebVTT subtitles. I ran the Extract Subtitles plugin, thinking this would make the embedded subtitles now external, so Kodi would be able to use them, but I still could not play WebVTT subtitles on Kodi.

To Reproduce

  1. Run Extract Subtitles plugin
  2. Try to enable subtitles on video
  3. Subtitles don't work; Not sure if they're still the embedded subtitles

Expected behavior
Extracted subtitles work on Jellyfin for Kodi

Logs
n/a

Screenshots
n/a

System (please complete the following information):

  • OS: MacOS Sonoma 14.5 using Docker Desktop 4.31.0
  • Jellyfin Version: 10.9.7
  • Kodi Version: 21.0
  • Addon Version: 1.04+py3
  • Playback Mode: Add-On
@mcarlton00
Copy link
Member

I suspect this has very little to do with subtitle extract and more it being webvtt, which is kinda a niche format and I don't have any in my library to test with. Without trying to track some down to test myself, my guess is that that device profile needs updating to indicate that we can support them. If you'd like to try changing that yourself, this is the location you'd need to update:

"SubtitleProfiles": [
{"Format": "srt", "Method": "External"},
{"Format": "srt", "Method": "Embed"},
{"Format": "ass", "Method": "External"},
{"Format": "ass", "Method": "Embed"},
{"Format": "sub", "Method": "Embed"},
{"Format": "sub", "Method": "External"},
{"Format": "ssa", "Method": "Embed"},
{"Format": "ssa", "Method": "External"},
{"Format": "smi", "Method": "Embed"},
{"Format": "smi", "Method": "External"},
{"Format": "pgssub", "Method": "Embed"},
{"Format": "pgssub", "Method": "External"},
{"Format": "dvdsub", "Method": "Embed"},
{"Format": "dvdsub", "Method": "External"},
{"Format": "pgs", "Method": "Embed"},
{"Format": "pgs", "Method": "External"},
],
.

@nothing2obvi
Copy link
Author

Thank you, I'll play around with it when I get some extra time.

@oddstr13
Copy link
Member

oddstr13 commented Jul 3, 2024

You can convert vtt to srt with ffmpeg; ffmpeg -i input.mkv -vn -an output.srt.

YouTube (since 2013 according to Wikipedia) and other HTML5 video players use WebVTT for subs, so an easy source for test files is yt-dlp.

@oddstr13 oddstr13 added the enhancement New feature or request label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants