IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
how can i fix a damaged wavpack header?, some of my apps think they are mp3s
BearcatSandor
post Jun 17 2011, 01:04
Post #1





Group: Members
Posts: 152
Joined: 18-May 10
From: Montana, USA
Member No.: 80732



Folks,

I'm not sure what tagger created this mess ( I think it was Banshee and it all happened recently). I have a collection of wavpack files. A large majority of them are reported as being mp3s. Some tagging programs won't even load them at all, yet they all play just fine.

At first i thought that id3v1 tags had been added to them but i'm not sure that's the case:
Looking at an example with wavunpack -ss
CODE
wvunpack -ss /home/hometheater/audio/d
ougie_maclean/2000-live_from_two_ends_of_the_earth/01-she_will_find_me.wv      

WVUNPACK  Hybrid Lossless Audio Decompressor  Linux Version 4.60.1
Copyright (c) 1998 - 2009 Conifer Software.  All Rights Reserved.


file name:         /home/hometheater/audio/dougie_maclean/2000-live_from_two_end
s_of_the_earth/01-she_will_find_me.wv
file size:         24828360 bytes
source:            16-bit ints at 44100 Hz
channels:          2 (stereo)
duration:          0:05:38.53
modalities:        lossless, very high, extra-1
compression:       58.42%
ave bitrate:       587 kbps
encoder version:   4
original md5:      64b2983bcb8952b5340d231f343e9c52
file wrapper:      44 byte RIFF header

APEv2 tag items:   14
Title:             She Will Find Me
Artist:            Dougie Maclean
Album:             Live From the Ends of the Earth
Year:              2000
Track:             1/11
Genre:             Scottish Folk
Comment:           Recorded live at the Main Auditorium of the Glasgow Royal Alb
ert Hall during the Celtic Connections Festival in Jult 1998
replaygain_track_gain: +6.71 dB
replaygain_track_peak: 0.390686
replaygain_album_gain: +4.19 dB
replaygain_album_peak: 0.729187
Album Artist:      Dougie Maclean
Lyrics:            95-byte multi-line text string
Grouping:          buffalo


Looking at them with mutagen-inspect shows me:
CODE
mutagen-inspect /home/hometheater/audio/dougie_maclean/2000-live_from_two_ends_of_the_earth/01-she_will_find_me.wv
-- /home/hometheater/audio/dougie_maclean/2000-live_from_two_ends_of_the_earth/01-she_will_find_me.wv
- MPEG 2.5 layer 2, 80000 bps, 12000 Hz, 2480.09 seconds (sketchy) (audio/mp3)
TDRC=2000
TIT2=She Will Find Me
COMM=='eng'=Recorded live at the Main Auditorium of the Glasgow Royal Albert Hall during the Celtic Connections Festival in Jult 1998
TRCK=1/11
TPE2=Dougie Maclean
TPE1=Dougie Maclean
TALB=Live From the Ends of the Earth
TIT1=buffalo
USLT=[unrepresentable data]
TCON=Scottish Folk


in contrast looking at an uncorrupted wavpack file with mutagen-inspect gives me:
CODE
mutagen-inspect /home/hometheater/audi
o/pagans_mind/2003-celestial_entrance/01-approaching.wv
-- /home/hometheater/audio/pagans_mind/2003-celestial_entrance/01-approaching.wv
- WavPack, 168.51 seconds, 44100 Hz (audio/x-wavpack)
Album=Celestial Entrance
Album Artist=Pagan's Mind
Albumartistsort=Pagan's Mind
Artist=Pagan's Mind
Artistsort=Pagan's Mind
Asin=B00007BHBW
Barcode=693723653129
CatalogNumber=LMP 0211-046 CD
Composer=Pagan's Mind
Format=CD
Label=Limb Music Products
Language=eng
Lyricist=Pagan's Mind
Lyrics=
{{instrumental}}

Powered by LyricWiki (http://lyrics.wikia.com/api.php?action=query&prop=revisio
ns&rvprop=content&format=xml&titles=)
MUSICBRAINZ_ALBUMSTATUS=official
MUSICBRAINZ_ALBUMTYPE=album
Mixer=Fredrik Nordström
Musicbrainz_Albumartistid=a2e815a8-54d1-405f-a3b2-1fc9367ed0d3
Musicbrainz_Albumid=4946eeab-d667-4579-98da-d5aa2e539c8b
Musicbrainz_Artistid=a2e815a8-54d1-405f-a3b2-1fc9367ed0d3
Musicbrainz_Trackid=a48e94de-dff2-4ec7-b2d4-d0c5153383e5
Originaldate=2003-02-25
Producer=Fredrik Nordström / Pagan's Mind
Releasecountry=DE
Script=Latn
Title=Approaching
Track=1/12
Year=2003-02-25
genre=Progressive Metal
replaygain_album_gain=-8.94 dB
replaygain_album_peak=0.998871
replaygain_track_gain=-8.07 dB
replaygain_track_peak=0.998871


Any ideas how i might fix this? I've tried using rmid3tag.py from apetag-1.12 and it doesn't find any idv3 tags to remove. My guess is that the headers were borked somehow. Again, they play just fine (for the apps that load them up), but i'd like to be able to work with the tags, and i've recently moved to Ampache which seems to have trouble reading them.

I run linux, but i can run most apps in Wine so any suggestions of apps that may fix this are welcome. I can also code a bit so if someone knows what the steps are to resolve this is i can likely write code or scripts to do it.

Thanks,

Bearcat

This post has been edited by BearcatSandor: Jun 17 2011, 01:13


--------------------
Music lover and recovering high end audiophile
Go to the top of the page
+Quote Post
saratoga
post Jun 17 2011, 01:12
Post #2





Group: Members
Posts: 5116
Joined: 2-September 02
Member No.: 3264



I don't know anything about wavpack, but that sounds like an id3v2 rather then id3v1 tag. Have you tried looking at the file in a hex editor to see if theres an ID3 tag stuck on the front?
Go to the top of the page
+Quote Post
BearcatSandor
post Jun 17 2011, 01:47
Post #3





Group: Members
Posts: 152
Joined: 18-May 10
From: Montana, USA
Member No.: 80732



Saratoga,

An excellent suggestion as far as looking at it with a hex editor (why didn't i think of that?). Thank you.

It does appear as if there is an id3v2 tag-set at the beginning of these files. The first characters in the file are "ID3"
Since wavpack files are only supposed to contain APE and id3v1 tags, it's no wonder some apps are getting confused.

Now what?

Screen shot of hex editor with "She Will Find Me" (as referenced above) is here: Screen shot of hex editor


Thanks,


--------------------
Music lover and recovering high end audiophile
Go to the top of the page
+Quote Post
tuffy
post Jun 17 2011, 03:33
Post #4





Group: Members
Posts: 119
Joined: 20-August 07
Member No.: 46367



idconvert can strip ID3v2 tags, and typically comes packed with libid3/id3lib. Something like:
CODE
% id3convert -s2 file.wv

should do the trick.
Go to the top of the page
+Quote Post
BearcatSandor
post Jun 17 2011, 05:45
Post #5





Group: Members
Posts: 152
Joined: 18-May 10
From: Montana, USA
Member No.: 80732



Thanks Tuffy! I discovered a program called Mp3Tag that can do it as well. I'll try out your suggestion as i feel i'd have more control over it in a script anyhow.

Thanks for the help all!

Bearcat


--------------------
Music lover and recovering high end audiophile
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd November 2014 - 03:33