Re: [Vnc2swf-users] edit.py rejects certain mp3
Status: Alpha
Brought to you by:
euske
From: Andy L. <les...@ya...> - 2006-10-26 18:04:52
|
Hi,=0A=0AThx for the other reply to my problem, but I think I know what hap= pens. There is a small mp3 parsing issue. According to http://upload.wikime= dia.org/wikipedia/en/e/ee/Mp3filestructure.jpg last 2 bits of MP3 sync word= should be 0. After changing it in the mp3.py=0A=0A$ diff mp3.py mp3.py.ori= =0A171c171=0A< if (h & 0xfffb0003L) !=3D 0xfffb0000L: continue=0A---= =0A> if (h & 0xffe00000L) !=3D 0xffe00000L: continue=0A=0Aall is fine= now and my pymedia produced mp3 are perfectly fine.=0A=0A=0AI am total mul= timedia newbie so what I wrote might just an accident, but hey it WORKS now= !=0A-- =0AThx, alf=0A=0A=0A----- Original Message ----=0AFrom: Andy Leszczy= nski <les...@ya...>=0ATo: vnc...@li...=0ASe= nt: Thursday, October 26, 2006 11:11:07 AM=0ASubject: [Vnc2swf-users] edit.= py rejects certain mp3=0A=0AHi,=0AI see following crash:=0A=0A$ python24 ed= it.py -c -t shape -s 0.75 -a t10_000.swf.mp3 -o abc t10_000.swf=0AUsing pyg= ame 1.7.1release=0AUsing pymedia 1.3.7.0=0AReading mp3 file: t10_000.swf.mp= 3...=0ATraceback (most recent call last):=0A File "edit.py", line 234, in = ?=0A if __name__ =3D=3D "__main__": main(sys.argv[1:])=0A File "edit.py= ", line 155, in main=0A info.reg_mp3blocks(fp)=0A File "d:\src_mirror\p= yvnc2swf-0.8.2al\movie.py", line 106, in reg_mp3blocks=0A MP3Reader(self= .mp3).read_mp3file(fp, length, nsamples, seeksamples)=0A File "d:\src_mirr= or\pyvnc2swf-0.8.2al\mp3.py", line 174, in read_mp3file=0A assert (h & 0= x00060000L) =3D=3D 0x00020000L, '!Layer3'=0AAssertionError: !Layer3=0A=0A= =0ACloser look reveals that (h & 0x00060000L) is equal to '0x00060000L', no= t desired '0x00020000L'.=0A=0AI have to admit I first time in life see mp3 = code so any insight or clue would be desired :-).=0A=0A=0AFor the record: m= y current work around it to lame(unlame(it)).=0A=0AThx in advance,=0A-- =0A= alf=0A=0A=0A=0A=0A=0A=0A---------------------------------------------------= ----------------------=0AUsing Tomcat but need to do more? Need to support = web services, security?=0AGet stuff done quickly with pre-integrated techno= logy to make your job easier=0ADownload IBM WebSphere Application Server v.= 1.0.1 based on Apache Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&= kid=3D120709&bid=3D263057&dat=3D121642=0A__________________________________= _____________=0AVnc2swf-users mailing list=0AV...@li...urceforg= e.net=0Ahttps://lists.sourceforge.net/lists/listinfo/vnc2swf-users=0A=0A=0A |