Re: problem with standard output to browser with mp3 encoder

From: Date: Mon, 16 Sep 2002 13:46:03 +0000
Subject: Re: problem with standard output to browser with mp3 encoder
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116512@lists.php.net to get a copy of this message
I don't know much about 'cat' but I assume that when it encounters the EOF marker Chr(26) it will stop viewing the file! therefore 'lame' won't get a valid .wav file and Ming won't get a valid mp3 file. try to pass the wave file as a parameter so that 'lame' can read it as binary file. good luck, Elias "Electroteque" <daniel@electroteque.org> wrote in message news:20020915105050.1943.qmail@pb1.pair.com... > hi guys i'm trying to standard output a variable back to the screen, > basically i'm trying to dynamically output an encoded wav file to throw back > into ming flash > i've tried both > $filename = shell_exec("cat Aloop56.wav | lame -b 32kbps - - > > ".$filename.""); > > and > > shell_exec("cat Aloop56.wav | lame -b 32kbps - - > ".$filename.""); > > without any luck > >

« previous php.general (#116512) next »