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