[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] Cannot extract wav file from swf
From: |
Chris |
Subject: |
Re: [Swftools-common] Cannot extract wav file from swf |
Date: |
Wed, 25 Apr 2012 15:35:39 -0100 |
>On Tue, 24 Apr 2012 11:57:37 +0200
>Daniel Arteaga <address@hidden> wrote:
> Hi Chris,
>
> [...]
>
> >> Sorry, perhaps I didn't make myself clear: the file exists, the problem
> >> is that it doesn't extract the wav file, and it doesn't give any error
> >> message either.
> >
> > You seem to have miunderstood me Daniel, I was referring to your statement
> > that the swfextract tool DID NOT give any error message, a fact which you
> > just reaffirmed.
>
> Ok sorry for the confusion.
>
> > Kindy care to link to the offending swf so as we can test also?
>
> It is here: http://dl.dropbox.com/u/17132043/ens_ab.swf
>
> Thank you very much for your help!
>
> Daniel
Dan,
swfdump -D ens_ab.swf
gives,
[HEADER] File version: 8
[HEADER] File is zlib compressed. Ratio: 91%
[HEADER] File size: 9216464
[HEADER] Frame rate: 12.000000
[HEADER] Frame count: 1
[HEADER] Movie width: 1000.00
[HEADER] Movie height: 600.00
[045] 4 FILEATTRIBUTES
[009] 3 SETBACKGROUNDCOLOR (ff/ff/ff)
[018] 31 PROTECT
[00e] 9216259 DEFINESOUND defines id 0001 (Raw little-endian 44Khz 16Bit
stereo)
[038] 15 EXPORTASSETS
exports 0001 as "ens_AB.wav"
[02d] 4 SOUNDSTREAMHEAD2
[00c] 97 DOACTION
( 47 bytes) action: Constantpool(5 entries)
String:"soundDatei" String:"this" String:"Sound" String:"ens_AB.wav"
String:"attachSound"
( 4 bytes) action: Push Lookup:0 ("soundDatei") Lookup:1
("this")
( 0 bytes) action: GetVariable
( 7 bytes) action: Push int:1 Lookup:2 ("Sound")
( 0 bytes) action: NewObject
( 0 bytes) action: DefineLocal
( 9 bytes) action: Push Lookup:3 ("ens_AB.wav") int:1
Lookup:1 ("this")
( 0 bytes) action: GetVariable
( 2 bytes) action: Push Lookup:0 ("soundDatei")
( 0 bytes) action: GetMember
( 2 bytes) action: Push Lookup:4 ("attachSound")
( 0 bytes) action: CallMethod
( 0 bytes) action: Pop
( 0 bytes) action: End
[001] 0 SHOWFRAME 1 (00:00:00,000)
[000] 0 END
and,
swfextract ens_ab.swf
Objects in file ens_ab.swf:
[-s] 1 Sound: ID(s) 1
[-f] 1 Frame: ID(s) 0
[-m] 1 MP3 Soundstream
You can't extract the MP3 Soundstream - it's something that isn't yet in the
file, and thus has no ID.
swfextract -s 1 -o sound.wav ens_ab.swf
should pull the wave file from the swf. BUT it doesn't. You're right, there
is no visible error message to the command line, and no file written out.
Same result using swfextract from 0.9.1 and from 0.9.2. Quite what that
reason is, I have no clue. Maybe a corrupted file? How was the original swf
file compiled?
Using an alternative tool, I managed to extract ens_AB.wav. All 52 seconds
of the wind sample seem fine.
As a further experiment, I re-embedded it into another swf using swfc, made
sure it played back, then extracted it out again using swfextract -s. No
issues whatsoever. If you wish me to post my resulting swf so you can check it
also, then let me know.
Regards,
Chris.
- [Swftools-common] Cannot extract wav file from swf, Daniel Arteaga, 2012/04/20
- Re: [Swftools-common] Cannot extract wav file from swf, Daniel Arteaga, 2012/04/20
- Re: [Swftools-common] Cannot extract wav file from swf, Chris, 2012/04/21
- Re: [Swftools-common] Cannot extract wav file from swf, Daniel Arteaga, 2012/04/23
- Re: [Swftools-common] Cannot extract wav file from swf, Chris, 2012/04/23
- Re: [Swftools-common] Cannot extract wav file from swf, Daniel Arteaga, 2012/04/24
- Re: [Swftools-common] Cannot extract wav file from swf,
Chris <=
- Re: [Swftools-common] Cannot extract wav file from swf, Daniel Arteaga, 2012/04/26
- Re: [Swftools-common] Cannot extract wav file from swf, Chris, 2012/04/27
- Re: [Swftools-common] Cannot extract wav file from swf, Daniel Arteaga, 2012/04/30
- Re: [Swftools-common] Cannot extract wav file from swf, Chris, 2012/04/30