I have a script that on-the-fly transcodes audio files. You pass a input file and an output file to the transcoder, and based on the extension of both, it transcodes the input to the output. The problem is that I want to then immediately output the transcoded file without waiting for it to be fully encode. Is there anyway to output a file as it is being written? Or alternatively, if I can make the transcoder encode the file to stdout, can php then read stdin and print that?

Thanks for any help.
Qest

    Congradulations on being able to use google. I can do that too, by the way... and you're link has nearly no relivance.

    Jinzora (music server project), I've read, has done something similar to what I'm trying to do and they used passthru in their code. So I'm looking into that, and seeing if maybe that will do the trick.

      Okay... I have this:

      path\to\flac.exe -d -c --totally-silent "path\to\song.flac" | path\to\bladeenc.exe stdin stdout

      and then I passthru it, but it doesn't work (loads forever).

        Write a Reply...