kirankoyande / php-reader

Automatically exported from code.google.com/p/php-reader
0 stars 0 forks source link

Get APIC images in ID3v2.4 UTF-8 tags #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Tag an mp3 file with ID3v2.4 UTF-8 (mp3tag)
2. Add a cover to this file
3. $id3 = new ID3v2($file)
4. var_dump($id3->apic)

Issues :
- The mime type is in description attribute
- Encoding is set to 0 (ISO-8859-1), not UTF-8 ??
- $id3->apic->data does not return anything

The other utf-8 frames values (with special chars) are all good.

I am using the last 1.4 version of php-reader on a Zend Framework (1.5)
personal project on a Windows XP 32 bits machine.

The same file encoded with ID3v2.3 ISO-8859-1 works fine.

Any idea ?

Thanks

Original issue reported on code.google.com by johann.r...@gmail.com on 1 Aug 2008 at 11:59

Attachments:

GoogleCodeExporter commented 8 years ago
This is due to lack of unsynchronization support, see issue 8. 
Unsynchronization adds
extra bytes to the data in order to prevent syncronization sequences. With these
intact (as they are currently not dealt with), the parser gets odd results. I am
working on the solution. In the meanwhile, you might want to try to tag with 
iTunes,
instead.

Original comment by svollbehr on 2 Aug 2008 at 9:27

GoogleCodeExporter commented 8 years ago
Ok thanks a lot for the explanation !

Original comment by johann.r...@gmail.com on 2 Aug 2008 at 4:10

GoogleCodeExporter commented 8 years ago
And thanks for the great job too ;)

Original comment by johann.r...@gmail.com on 2 Aug 2008 at 5:02

GoogleCodeExporter commented 8 years ago
I have now added support for unsynchronisation for ID3v2.4. Please see the 
subversion
for the latest code.

Original comment by svollbehr on 3 Aug 2008 at 7:11

GoogleCodeExporter commented 8 years ago
Really good news, thanks for this !

Original comment by johann.r...@gmail.com on 3 Aug 2008 at 8:08

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by svollbehr on 20 Feb 2009 at 9:21