.ass file using UTF-16LE encoding with a BOM cannot be detected
Open
Nobody has claimed this yet.
down-upstream:ffmpeg
os:win
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
- mpv-x86_64-v3-20230319-git-a45995f
- Windows 10 22H2
- https://sourceforge.net/projects/mpv-player-windows/
The following is an example file:
[WLGO&PPX][Itazura_na_Kiss][DVDRip][05][x264_AAC][880x480][FB7AD9EF].gb.zip
After saving as a file using e.g. UTF-8 encoding, the problem disappears, but it'll be more convenient if UTF-16LE with a BOM is supported.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the linked example file in mpv on Windows 10, then trace the subtitle format-detection and encoding-handling entry points. The work is done when an .ass subtitle encoded as UTF-16LE with a BOM is detected and handled without requiring conversion to UTF-8.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100