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

Support for DVBSUB subtitles #277

Closed
jluttine opened this issue Jul 5, 2022 · 7 comments · Fixed by #279
Closed

Support for DVBSUB subtitles #277

jluttine opened this issue Jul 5, 2022 · 7 comments · Fixed by #279
Labels
enhancement New feature or request

Comments

@jluttine
Copy link
Contributor

jluttine commented Jul 5, 2022

Is your feature request related to a problem? Please describe.

MPV seems to support DVBSUB subtitles. There are no problems streaming a video over SSH and watching it with MPV and seeing DVBSUB subtitles correctly.

However, with Jellyfin and Jellyfin Media Player, DVBSUB subtitles trigger transcoding. The client says "SubtitleCodecNotSupported". Transcoding doesn't happen if I disable subtitles.

Describe the solution you'd like

I would like Jellyfin Media Player to not trigger transcoding because of DVBSUB subtitles but be able to directly play the video. MPV supports DVBSUB subtitles.

Describe alternatives you've considered

No ideas.

Additional context

No other context in mind.

@jluttine jluttine added the enhancement New feature or request label Jul 5, 2022
@iwalton3
Copy link
Member

iwalton3 commented Jul 5, 2022

As of right now if you embed the subtitles into the MKV file it won’t need to transcode. Jellyfin only recently gained the ability to serve DVD subtitles as external subtitles properly but I would need to do some tests to make sure other things are not affected.

@jluttine
Copy link
Contributor Author

jluttine commented Jul 5, 2022

Thanks, not sure what you mean by "embedding into MKV". They are contained in the MKV file, yes, or does embedding mean something more specific? Also, DVD subtitles might be a different thing than DVBSUB. Not sure though, I'm not really familiar with this stuff..

@iwalton3
Copy link
Member

iwalton3 commented Jul 5, 2022

Do you have external SUB/IDX files? Or just an MKV?

@jluttine
Copy link
Contributor Author

jluttine commented Jul 5, 2022

Just MKV.

@jluttine
Copy link
Contributor Author

jluttine commented Jul 5, 2022

Ffmpeg gives this info about the file:

  Stream #0:0(eng): Video: h264 (Main), yuv420p(tv, bt709, bottom first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
  Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp (default)
  Stream #0:2(fin): Subtitle: dvb_subtitle (default)
  Stream #0:3(dut): Audio: ac3, 48000 Hz, stereo, fltp (default)
  Stream #0:4(swe): Subtitle: dvb_subtitle (default)

@iwalton3
Copy link
Member

iwalton3 commented Jul 5, 2022

If you can find this file in your installation, try tacking on this line:

'SubtitleProfiles': [

        {'Format': 'dvbsub', 'Method': 'Embed'},

@jluttine
Copy link
Contributor Author

jluttine commented Jul 5, 2022

Nice! That fixed it, thanks a ton!! I'll make a PR.

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

Successfully merging a pull request may close this issue.

2 participants