PDA

View Full Version : Using ASP to convert MP3/WMA files..



higgsy
12-10-2003, 07:05 PM
Hi,

Is there any way that i can use asp to detect an mp3's settings such as bitrate, id3 tags etc and then convert the file to a lower bitrate using dbpoweramp.....


Thanks

Al

Spoon
12-10-2003, 07:53 PM
Not detect, but convert yes (asp is just like vbs?)

roncli
01-08-2004, 04:17 AM
Try this. This assumes Windows Media Player 7+ is installed on the server.

<%Set WMP = Server.CreateObject("WMPlayer.OCX")
Set WMPMedia = WMP.newMedia(Filename)
For MyCount = 0 to WMPMedia.attributeCount - 1
Response.write WMPMedia.getAttributeName(MyCount) & " = " & WMPMedia.getItemInfo(WMPMedia.getAttributeName(MyC ount)) & "<BR>"
Next
Response.write "Bitrate = " & WMPMedia.getItemInfo("Bitrate") & "<BR>"
Set WMPPlayer = nothing
Set WMP = nothing%>

-roncli