drupal 5.1
audio 1.3
getid3 1.7.7 ( and tried 1.7.8b2 )
I can upload mp3 fine, but when I try to upload a wav:
-the upload page doesn't have a fieldgroup for metadata ( same for mp3s)
- The file uploads but gives me two errors 1) unable to determine file format, and 2) This file is not compatible with the Flash audio player. Flash can only play MP3 files with a sample rate of 11, 22 or 44KHz.
- On the newly uploaded file, 'Click to play' leads to a broken quicktime page, no flash player loads
- I have the 1pixelout player selected for wav files
- i tried to use the getid3 demo.browse app and was able to navigate to twhere audio.module uploaded my files and was able to see that getid3 did recognize the file correctly.
thanks,
Comments
Comment #1
meecect commentedwell, I've been looking at the code, and I think the 'wav' support is very confusing. I guess it will only accept wav files that are actually mp3 files?
So I modified it a bit to work the way I _think_ it should. I added a player .inc file called 'embedded.inc' . This player can be registered to handle wav files and 'riff' files ( what getid3 recognizes wav files as) and will put the mediaplayer control on the pages with wav's, much akin to how the 1pixelout player shows up for mp3's.
Another change you may need to make is on the getid3 settings page, uncheck the default 'write to file' columns. Otherwise, the module will attempt to write id3 tags to the file _regardless of type_. That's why people ini other threads were compaining about wav files unable to be downloaded and played after uploading, because the file is corrupt after writing id3 tags to a perfectly good wav.
A better solution would be to change the audio_getid3 module to only write tags to files that actually can have tags. I may write a patch to just that, actually.
Another thing to do would be to support macs somehow, but I haven't gotten that to work yet for embedded wavs. Btw, this will probably work for wma's as well with a small modification.
embedded.inc:
Comment #2
drewish commentedthis is a duplicate of an existing issue: http://drupal.org/node/162321 lets keep the conversation in one place.
Comment #3
Ashford commentedNo hacking or extra files required. I found a freeware program called Switch to convert files -- wav can convert to mp3 with one click of the button. A reasonable priced shareware upgrade is available for those who need more power and options.
http://www.nch.com.au/switch
I converted my .wav file before uploading and all is working sweet. I am using Drupal 4.7, but it should not make any difference since the problem was between the Player and the file and not the Drupal module.
I hope this works for everyone. It is so easy.
Ashford
Comment #4
lainel commentedCan someone zip this? So we can download the file and upload it?
I haven't got a clue where to add this patch.