2.0.0-b4 Uncaught exception

Locked
WaldoMonster
getID3() contributor
Posts: 112
Joined: Mon Apr 01, 2002 12:20 am
Location: Netherlands
Contact:

2.0.0-b4 Uncaught exception

Post by WaldoMonster » Mon Nov 26, 2007 7:47 pm

When analyzing this file with the code below I get an error message.
I want to use the results for playtime, bitrate, etc that is why I have disabled all the tag options.
When I enable "option_tag_id3v2" the error message disappears.
Any idea what the problem is?

Thanks,

Willem


http://forum.netjukebox.nl/share/11%20- ... nciple.mp3

Code: Select all

<?php
require_once('../netjukebox/getid3/getid3/getid3.php');
$file = 'E:/Media/Video/test1/11 - Uncertainty Principle.mp3';

// initGetID3();
$getID3 = new getID3;

// Encoding
$getID3->encoding                   = 'ISO-8859-1';
$getID3->encoding_id3v1             = 'ISO-8859-1';
$getID3->encoding_id3v2             = 'ISO-8859-1';
// Tags - disable for speed
$getID3->option_tag_id3v1           = false;
$getID3->option_tag_id3v2           = false;
$getID3->option_tag_lyrics3         = false;
$getID3->option_tag_apetag          = false;
// Misc calucations - disable for speed
$getID3->option_analyze             = true;
$getID3->option_accurate_results    = true;
$getID3->option_tags_process        = false;
$getID3->option_tags_images         = false;
$getID3->option_extra_info          = true;
$getID3->option_max_2gb_check       = false;
// Misc data hashes - slow - require hash module
$getID3->option_md5_data            = false;
$getID3->option_md5_data_source     = false;
$getID3->option_sha1_data           = false;

$getID3->analyze($file);
?>
Fatal error: Uncaught exception 'getid3_exception' with message 'Synch pattern (0x0FFF) not found at offset 0 (found 0x0494 instead)' in D:\Internet\develop.netjukebox.nl\netjukebox\getid3\getid3\module.audio.aac_adts.php:124 Stack trace: #0 D:\Internet\develop.netjukebox.nl\netjukebox\getid3\getid3\getid3.php(303): getid3_aac_adts->Analyze() #1 D:\Internet\develop.netjukebox.nl\test\getid3xx.php(29): getid3->Analyze('E:/Media/Video/...') #2 {main} thrown in D:\Internet\develop.netjukebox.nl\netjukebox\getid3\getid3\module.audio.aac_adts.php on line 124

WaldoMonster
getID3() contributor
Posts: 112
Joined: Mon Apr 01, 2002 12:20 am
Location: Netherlands
Contact:

Post by WaldoMonster » Tue Nov 27, 2007 12:40 am

Another file with the same problem:
http://forum.netjukebox.nl/share/213%20 ... itters.mp3

vollmerk
User
Posts: 18
Joined: Wed Jun 14, 2006 9:42 pm

Post by vollmerk » Sun Dec 16, 2007 8:22 pm

Check out

viewtopic.php?t=780

This won't solve your problem but it will let you trap the error correctly :)
Last edited by James Heinrich on Thu Nov 25, 2010 8:55 pm, edited 1 time in total.
Reason: fix forum URL

WaldoMonster
getID3() contributor
Posts: 112
Joined: Mon Apr 01, 2002 12:20 am
Location: Netherlands
Contact:

Post by WaldoMonster » Sun Dec 16, 2007 8:36 pm

Thanks vollmerk for the replay.
What a coincidence, I have something similar implemented two weeks ago.
I also used the code from the demo script ;-)
And it works very well.

Locked