Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: WMA / WMV files

by The Mad Hatter (Priest)
on Mar 26, 2004 at 00:58 UTC ( #339920=note: print w/ replies, xml ) Need Help??


in reply to WMA / WMV files

Given a list of files (generated via File::Find or something), you could try opening each one with Audio::WMA and see if you can read any info from them. If you can, then do something with it, otherwise leave it alone. I'm almost sure this wouldn't be failsafe. In fact, it might be more accurate to do it the other way, trying to detect if the file is an MP3 (see the many MP3 modules) and then separate them.

Update Using File::MimeInfo might be the best solution in determining the filetype.


Comment on Re: WMA / WMV files

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-12-19 14:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (84 votes), past polls