Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: mpd error malformed utf-8 characters, possibly incorrectly encoded
#16
@chaos333

Quote:so can  you advice what is the cause or how to avoid it permantly? i might have more than 1000 sound tracks or 200+albums that has the same problem...

Ouch. Obviously, editing tracks by hand is not an option!

If every track were like this one then I can imagine a script which extracts the track title from the file name and writes it into an ID3v23 TIT2 tag. For example, one could use the mutagen module available in Python. 

What I don't know how to do is reconcile the conflicting RIFF and ID3v23 tag values in a WAV file.

It would seem like there would be some open-source packages already available in a library or at github which would help, but I haven't found any yet. Maybe someone else knows of software which can help.

I avoided this dilemma by transcoding the WAV file into a FLAC file and then hand-editing the FLAC metadata. To automate the process one would need a script which did something like

1. read metadata and file name from WAV file
2. transcode WAV to FLAC
3. use the values read in step 1 to write appropriate metadata to the FLAC file
4. save the file

On a Linux system like my laptop, this could be scripted using ffmpeg for the transcoding and, for the metadata work, Python with its mutagen module or bash with, say, the mediainfo and metaflac programs. There are other possibilities as well; I've just cited programs I've been comfortable using for similar purposes.

Regards,
Kent
Reply


Messages In This Thread
RE: mpd error malformed utf-8 characters, possibly incorrectly encoded - by TheOldPresbyope - 05-14-2022, 09:15 PM

Forum Jump: