Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: How to use PERL get the properties of a Flash file

by ikegami (Patriarch)
on Nov 14, 2008 at 20:22 UTC ( [id://723721]=note: print w/replies, xml ) Need Help??


in reply to How to use PERL get the properties of a Flash file

Off the top of my head:

Get swfdump from SWFTOOLS (GPL)

# Windows syntax my $size = `swfdump -X -Y "$qfn"` or die "..."; my ($x, $y) = $size =~ /^-X (\d+) -Y (\d+)$/ or die "...";

I strongly recommend a solution that doesn't use an external program.

By the way, it's not called PERL. It's not called FLASH either.

Update: Added missing "= $size". Tested. Added recommendation.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://723721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-25 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found