Hi,
I have to embed a logo file (jpeg) on an MP3 using apic. I am almost a layman in mp3 file format and how to manipulate (read/write) it. Please help me to know how will i do this. Thanks
baburman
Hi,
I have to embed a logo file (jpeg) on an MP3 using apic. I am almost a layman in mp3 file format and how to manipulate (read/write) it. Please help me to know how will i do this. Thanks
baburman
I think you can do it with this, based on [url=http://********id3.org/phpBB3/viewtopic.php?f=3&t=807]this post[/url]...
I have used getID3() before (for reading only) and it has been great for the uses I have put it to - I have never tried to do anything as complicated as this, though...
Thanks DaveRandom.
I downloaded getid3 ver: 1.8.3 and when i run /getid3/demos/demo.browse.php it shows me an mp3 music file (which i had copied there). When i click "edit tags" it shows this message:
Parse error: syntax error, unexpected ';' in C:\wamp\www\getid3\getid3\write.php on line 468
and the line 468 from write.php reads:
$tag_data_id3v1['title'] = getid3_lib::iconv_fallback($this->tag_encoding, 'ISO-8859-1', implode(' ', (isset($this->tag_data['TITLE'] ) ? $this->tag_data['TITLE'] : array()));
I wonder what syntax error is that since this code is part of getid3 and i made no changes in it. Is there some configuration or security issue involved?
thanks
Missing a ')'.
I'd imagine that line should read:
$tag_data_id3v1['title'] = getid3_lib::iconv_fallback($this->tag_encoding, 'ISO-8859-1', implode(' ', (isset($this->tag_data['TITLE'] )) ? $this->tag_data['TITLE'] : array()));
I have never tried to write anything before, so never run into that problem... One of the great things about Open Source however, is that if the project made a mistake, you can correct it for them and they will thank you for it.
Unlike M$ who extend no such courtesy... :mad:
P.S. that second link from above should have been:
http://getid3.org/phpBB3/viewtopic.php?f=3&t=807
******g phpBB eating my links! Grrr...
Yes this was a Missing ')' on line 468 and the next 5. Then the same issue in function FormatDataForReal(). I fixed all this and its working perfectly. Bundle of thanks .
Hi,
You can use ID3v2 tag which allows to embed any image format in an MP3 file,You are advised to use either PNG or JPEG formats because these format have interoperability with playback devices.This standard is very flexible, its type and number of images that can be embedded in a MP3 single file.