PDA

View Full Version : MP3 to SWF converter (hopefully PHP)


sneakyimp
04-09-2004, 06:23 PM
hi:

I was wondering if there is any kind of server-side resource that can make SWF files out of MP3. I'm also interested in server side software that can generate SWFs in general.

freddycodes
04-09-2004, 06:40 PM
Why do you need to ocnvert mp3s to swfs, why not just load mp3s into one swf dynamically at runtime?

sneakyimp
04-09-2004, 06:46 PM
I know you can do that, but I plan to use this project for rock bands...the mp3 files get stored in your cache and an enterprising user can go find them there and burn cds, send them to friends, etc.

i was hoping to use my server to convert the files to swf format for an additional degree of protection. i realize one could just pull the swfs from the cache and play them and if you have any sort of SWF ripping software you can just rip them outright, but it's one more hurtle that might protect the intellectual property of my potential clients. at the moment, you can't burn an audio CD with an SWF file. nor can you load it up onto your IPOD. see what i mean?

JerryScript
04-10-2004, 12:40 AM
You can use PHP's Ming module (http://ming.sourceforge.net) and it will stream the MP3 using the streamMP3 function, though I'm not certain that it will prevent the cache issue.

$myMovie->streamMp3(fopen("filename.mp3", "rb"));

sneakyimp
04-10-2004, 04:24 PM
thanks for the tip....as for caching, this is from the PHP documentation:

PHP scripts often generate dynamic content that must not be cached by the client browser or any proxy caches between the server and the client browser. Many proxies and clients can be forced to disable caching with

<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>