Jump to content

Error when choosing external VTT subtitle - Error getting subtitles, RangeRequestOutOfRangeException


Recommended Posts

Posted

Hello

I have a mkv file with embedded vtt subs but Emby doesn't identify them this way so I've extracted the subs with mkvextract and even though Emby now recognizes the subtitles, it throws an error in the server logs whenever I attempt to play them

Attached is the vtt file and a snippet from the server logs

4.vtt log.txt

Posted

Hi there, please attach the complete Emby server log file. Thanks.

Posted
7 minutes ago, Luke said:

Hi there, please attach the complete Emby server log file. Thanks.

There you go

Thanks Luke!

embyserver.txt

Posted

Can you temporarily enable debug logging, reproduce the issue again, and then attach the debug log? Thanks.

Posted
13 minutes ago, Luke said:

Can you temporarily enable debug logging, reproduce the issue again, and then attach the debug log? Thanks.

There you go :)

 

embyserver.txt

Posted

Ok yes I see the issue. I guess you must have some 0-byte srt files.

Posted
4 minutes ago, Luke said:

Ok yes I see the issue. I guess you must have some 0-byte srt files.

Yes I've seen that in the log but I'm 99% sure I don't have 0 byte srt files anywhere, at least not in the Futurama's folder.

In addition, when I play this episode with a srt downloaded from opensubtitles, it plays just fine but the moment I pick the vtt file the stream becomes extremely laggy and no subtitles appear on screen

Besides, I'm not even sure why it throws an error about a srt in the logs considering it only throws that when I choose the vtt

Posted

0-byte vtt, sorry. Whichever one you happened to select. It could have been a vtt file that the server converted to srt.

Posted (edited)
11 minutes ago, Luke said:

0-byte vtt, sorry. Whichever one you happened to select. It could have been a vtt file that the server converted to srt.

It's not a 0-byte vtt though, it's the one attached to the first post in the thread which I've extracted from the original mkv.

Unless I'm missing something, it should be fine.

EDIT: I've also just confirmed that KDE's Dragon Player plays the file correctly with both the embedded vtt subs and the extracted vtt subs

Edited by ItayT
Posted (edited)
34 minutes ago, ItayT said:

It's not a 0-byte vtt though, it's the one attached to the first post in the thread which I've extracted from the original mkv.

Unless I'm missing something, it should be fine.

EDIT: I've also just confirmed that KDE's Dragon Player plays the file correctly with both the embedded vtt subs and the extracted vtt subs

Okay, things are getting weirder. Looks like some Emby clients are capable of playing the VTT files

For context, the mkv has three embedded VTT tracks, two French tracks and one English track. The one I've extracted and am trying to use as external is the English one

  • Dragon Player on KDE - Detects and plays both embedded and external vtt subs
  • Emby on Android - Once the VTT is selected, the playback becomes very laggy and no subtitles appear on the screen.
  • Emby web player (On Firefox) - Plays the external VTT correctly
  • Emby on Android TV - When the VTT is selected, it plays one of the three embedded VTTs, a French one in this case even though the external VTT is in English and none of the embedded VTTs appear in the subtitle selection menu

It's worth mentioning that every log I've uploaded up till now was only for the mobile Android client

The log attached to this comment includes the playback from the web player and the Android TV but is not a debug log

 

embyserver.txt

Edited by ItayT
Posted

The android app is having the server convert the vtt to srt and perhaps this process is failing, or something happened like being denied write access to the folder it was trying to write to.

Anyway, the player can handle vtt directly so we'll update it so that it doesn't have to get converted on the server anymore. That will solve this.

  • Thanks 1
Posted
2 hours ago, Luke said:

The android app is having the server convert the vtt to srt and perhaps this process is failing, or something happened like being denied write access to the folder it was trying to write to.

Anyway, the player can handle vtt directly so we'll update it so that it doesn't have to get converted on the server anymore. That will solve this.

Perfect, thank you!

I assume that will also fix the Android TV client choosing to play the embedded VTT subtitles even though they're not even listed?

Perhaps while you're at it it'd be possible to show the embedded VTT subtitles in the subtitles selection menu since the player seems to be able to play them?

Posted
56 minutes ago, ItayT said:

 

Perhaps while you're at it it'd be possible to show the embedded VTT subtitles in the subtitles selection menu since the player seems to be able to play them?

The menu shows all of the subtitles detected by the server. If you changed the file you'll need to refresh metadata on it.

Posted

Right OK, no, then that's different. ffmpeg needs to be able to detect it first. we'll be updating our ffmpeg build in the near future so it's possible that will resolve it. We'll just have to see.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...