media icon indicating copy to clipboard operation
media copied to clipboard

Enable heuristic character set detection for SRT subtitles

Open WoKee opened this issue 10 months ago • 1 comments

verion: 1.6.0-rc01

Two ways:

  1. Using a local cheat, it appears as garbled code. After transcoding the file stream to UTF-8, it can be displayed normally. Path.utf8(file)

  2. When adding subtitles online, it appears as garbled text. new MediaItem.SubtitleConfiguration.Builder(Uri.parse(getUrl())).setLabel(getName()).setMimeType(getFormat()).setSelectionFlags(getFlag()).setLanguage(getLang()).build();

file :

【ATV】【大俠霍元甲】01.zip

WoKee avatar Mar 19 '25 10:03 WoKee

The provided file is an SRT file. I agree with https://github.com/androidx/media/issues/2167#issuecomment-2736041777, this is a duplicate of https://github.com/google/ExoPlayer/issues/3644. I will close that and use this to track it instead, to move it to this issue tracker.

icbaker avatar Mar 19 '25 10:03 icbaker

The provided file is an SRT file. I agree with https://github.com/androidx/media/issues/2167#issuecomment-2736041777, this is a duplicate of https://github.com/google/ExoPlayer/issues/3644. I will close that and use this to track it instead, to move it to this issue tracker.

  • Is there a planned solution?
  • It has been a long time.

WoKee avatar Aug 20 '25 02:08 WoKee

  • Is there a planned solution?

Plans have not changed since https://github.com/google/ExoPlayer/issues/3644#issuecomment-565503504, in particular this sentence is still true:

It's unlikely we'll find the time to add this support any time soon - but we would accept a high quality PR adding this.

icbaker avatar Aug 20 '25 10:08 icbaker