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
metadata encoding detection not working #8844
Comments
This adds an option to mpv to set the codepage that should be used for decoding the icy-title metadata. By default, "auto" is chosen, which uses uchardet for guessing if mpv was built with support for it, and otherwise effectively uses utf-8. Fixes mpv-player#8844.
This adds an option to mpv to set the codepage that should be used for decoding the icy-title metadata. By default, "auto" is chosen, which uses uchardet for guessing if mpv was built with support for it, and otherwise effectively uses utf-8. Fixes mpv-player#8844.
this is remotely related to #8812(?) |
there is still no solution to this issue? File tags: i tried setting --metadata-codepage=auto, tried changing different system encodings, have no affect, this issue is so annoying, |
I haven't gotten around to reworking that PR yet, so there still is no solution to this issue as of now. |
thanks for update |
a343666 made demux options public, so we can take advantage of that here as well. This lets users guess the codepage if the stream doesn't use UTF-8 characters. Fixes mpv-player#8844.
a343666 made demux options public, so we can take advantage of that here as well. This lets users guess the codepage if the stream doesn't use UTF-8 characters. Fixes mpv-player#8844.
a343666 made demux options public, so we can take advantage of that here as well. This lets users guess the codepage if the stream doesn't use UTF-8 characters. Fixes mpv-player#8844.
a343666 made demux options public, so we can take advantage of that here as well. This lets users guess the codepage if the stream doesn't use UTF-8 characters. Fixes mpv-player#8844.
When opening a file/stream with non UTF-8 characters (e.g. this stream: 'http://ic7.101.ru:8000/c1_2' which almost always has non UTF-8 characters in the metadata) non UTF-8 characters are not decoded. The relevant line in terminal output is something like this:
However when I open the same stream with Rhythmbox, it is shown correctly:
It also should be mentioned that this also occurs in other languages, e.g. for German streams the "Umlaute" (ä,ü.ö) are not shown correctly.
I first assumed that the problem occurs because mpv hasn't been built with uchardet as the docs mention:
but the behavior is still the same one a custom build with uchardet. AFAICS the problem either occurs because I haven't built it correctly or due to a bug. The building log included the following line why I assumed I haven't made a mistake:
Important Information
Reproduction steps
Expected behavior
Actual behavior
Log file
log.txt
Sample files
Unfortunately I don't have a sample file but it is usually very good reproducible with the stream mentioned above. It also occurs with this stream: http://wdr-wdr2-rheinruhr.icecast.wdr.de/wdr/wdr2/rheinruhr/mp3/128/stream.mp3. However in this case it occurs much less often due the fact that many titles don't include non UTF-8 characters.
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: