Thank you for your donation!


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


Solved: Norwegian charaters
#8
(08-24-2024, 02:57 AM)TheOldPresbyope Wrote: @Bjørn Roar 

I didn't have time tonight to dig deep into the metadata encoding in your files, but it looks like the files which misbehave for you all have metadata, apparently encoded differently, in both an ID3 tag and in a RIFF INFO chunk. The files which behave have metadata in only an ID3 tag. FYI, INFO chunks are optional in RIFF. To borrow from the Wikipedia article about WAV

Quote:As a derivative of RIFF, WAV files can be tagged with metadata in the INFO chunk. In addition, WAV files can embed any kind of metadata, including but not limited to Extensible Metadata Platform (XMP) data[24] or ID3 tags[25] in extra chunks. The RIFF specification requires that applications ignore chunks they do not recognize and applications may not necessarily use this extra information.

At a minimum, the encoding should be the same in the two metadata containers. I'm not sure how MPD's decoders deal with WAV containing metadata in both RIFF INFO and ID3.

Regards,
Kent

Here's what MPD database looks like for the failure and success case.

Code:
pi@moode9:~ $ telnet localhost 6600
Trying ::1...
Connection failed: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
OK MPD 0.23.5

# Failure
lsinfo "USB/VFAT64/Test/Bjørn Roar/01 - Du er p† Youtube n†.wav"
file: USB/VFAT64/Test/Bjørn Roar/01 - Du er p† Youtube n†.wav
Last-Modified: 2016-11-13T20:06:02Z
Format: 44100:16:2
Artist: ?ystein Sunde
Album: Bestefar
Title: Du er p? Youtube n?
Track: 1
Date: 2016
Time: 182
duration: 182.080
OK

# Success
lsinfo "USB/VFAT64/Test/Bjørn Roar/Some files without the problem/01 Den gr† eminensen.wav"
file: USB/VFAT64/Test/Bjørn Roar/Some files without the problem/01 Den gr† eminensen.wav
Last-Modified: 2011-02-24T20:31:30Z
Format: 44100:16:2
Artist: Blå Tåget
Album: Brustna hjärtans hotell  (LP)
Title: Den grå eminensen
Track: 1
Genre: Progg
Date: 1972
AlbumArtist: Blå Tåget
Time: 338
duration: 338.090
OK
Connection closed by foreign host.

IIRC ffmpeg is being used by MPD to decode WAV format and extract the tags.

The result of ffmpeg tag extract for the failure case shows @ (at sign) where the Norwegian character should be. That indicates that particular character could not be decoded correctly, prolly having something to do with the presence of RIFF INFO tags in the file.

Code:
# Failure
pi@moode9:~ $ ffprobe -loglevel error -show_entries stream_tags:format_tags /media/VFAT64/Test/Bjørn\ Roar/20\ F†glar\ \(Intro\).wav
[STREAM]
[/STREAM]
[STREAM]
TAG:comment=Cover (front)
[/STREAM]
[FORMAT]
TAG:artist= -  (Intro)
TAG:title=F�glar (Intro)
TAG:album=Den Flygande Holl�ndaren
TAG:track=20
TAG:date=1988
[/FORMAT]

# Success
pi@moode9:~ $ ffprobe -loglevel error -show_entries stream_tags:format_tags /media/VFAT64/Test/Bjørn\ Roar/Some\ files\ without\ the\ problem/01\ Den\ gr†\ eminensen.wav
[STREAM]
[/STREAM]
[STREAM]
TAG:comment=Cover (front)
[/STREAM]
[FORMAT]
TAG:album_artist=Blå Tåget
TAG:title=Den grå eminensen
TAG:track=01
TAG:genre=Progg
TAG:publisher=MNW 32-32P
TAG:artist=Blå Tåget
TAG:album=Brustna hjärtans hotell  (LP)
TAG:comment=
TAG:disc=Side A
TAG:date=1972
[/FORMAT]
pi@moode9:~ $

I would try to re-tag those files so that only ID3 tags are present.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Norwegian charaters - by Bjørn Roar - 08-23-2024, 04:45 PM
RE: Norwegian charaters - by Tim Curtis - 08-23-2024, 06:28 PM
RE: Norwegian charaters - by Tim Curtis - 08-23-2024, 09:48 PM
RE: Norwegian charaters - by Bjørn Roar - 08-23-2024, 10:14 PM
RE: Norwegian charaters - by Bjørn Roar - 08-23-2024, 10:08 PM
RE: Norwegian charaters - by Tim Curtis - 08-23-2024, 10:13 PM
RE: Norwegian charaters - by TheOldPresbyope - 08-24-2024, 02:57 AM
RE: Norwegian charaters - by Tim Curtis - 08-24-2024, 01:25 PM
RE: Norwegian charaters - by TheOldPresbyope - 08-24-2024, 04:07 PM
RE: Norwegian charaters - by Bjørn Roar - 08-24-2024, 11:19 PM
RE: Norwegian charaters - by Tim Curtis - 08-24-2024, 11:29 PM
RE: Norwegian charaters - by Bjørn Roar - 08-25-2024, 04:40 PM

Forum Jump: