![]() |
[SOLVED] mpd error malformed utf-8 characters, possibly incorrectly encoded - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] mpd error malformed utf-8 characters, possibly incorrectly encoded (/showthread.php?tid=4859) |
RE: mpd error malformed utf-8 characters, possibly incorrectly encoded - TheOldPresbyope - 05-28-2022 The bottom line for me is that stuffing ID3 frames into a RIFF INFO chunk is a hack---allowable as user-defined fields but not standard and the result is not uniformly interpreted by commonly used apps. As for malformed UTF-8 characters, perhaps there's some UTF-16, with or without BOM, mixed in? I don't know what the contributed code would do in this case. Whatever, in Linux at least I can cut and paste the Chinese character strings from the example file into other metadata tagging schemes and they "just work". It's only the pesky WAV format which is causing me problems. This use of ffmpeg to copy without transcoding and to add the metadata I scrapped is close to a solution [1] Code: ffmpeg -i "06 但愿人长久.wav" -c:a copy \ The output first lists all the boring ffmpeg configuration info and then gets to the good stuff: Code: ... Two points to note: it discards the ID3 data, yay, and it shows it has seemingly written correct values for the RIFF INFO fields (replacing the ??? strings along the way). Here, IPRD is the album title; IART is the artist name; IPRT is the track name. As an aside, in the original file, the RIFF INFO chunk came last. The RIFF INFO chunk comes first in the new file, which makes more sense. However, we're not out of the woods yet. moOde is correctly displaying the IPRD and IART values as "album" and "artist" but it isn't displaying the IPRT value as "track". It appears to be displaying the file base-name instead, "out" in this case. As well, mediainfo is befuddled by the RIFF INFO fields and isn't displaying the correct glyphs either. I think I'm done here. Regards, Kent [1] for you nitpickers in the audience, exactly the same result is obtained if I use "album", "artist", and "track" instead of "IPRD", "IART", "IPRT" in this command. I just like using the "standard" keys. RE: mpd error malformed utf-8 characters, possibly incorrectly encoded - Tim Curtis - 05-28-2022 Either way it' looks like it's not as issue with moOde code but rather with the files themselves. RE: mpd error malformed utf-8 characters, possibly incorrectly encoded - TheOldPresbyope - 05-28-2022 Agreed. RE: mpd error malformed utf-8 characters, possibly incorrectly encoded - chaos333 - 06-04-2022 agree. so i think editing the tag will be the best and easiest way for noobie like me lol. thanks. so i think this issue is solved and can be references for those who has the same issues. thanks tim and kent. |