Re: [ecasound] Launch ecasound with PHP

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [ecasound] Launch ecasound with PHP
From: William Goldsmith (bill_AT_radioparadise.com)
Date: Sun Jan 25 2004 - 01:48:35 EET


I may be wrong, but I think Apache would need to be run by a priveleged user
(rather than the default 'nobody') in order for this to work. That's what I
do, anyway. In any event, the Apache user would have to have write
permission on the /var/www directory.

Hope that helps
-bg

----- Original Message -----
From: "Didier BELLAMY" <didier_AT_digitaldeejay.com>
To: <ecasound-list_AT_wakkanet.fi>
Sent: Friday, January 23, 2004 8:15 AM
Subject: [ecasound] Launch ecasound with PHP

> Hi !
>
>
>
> I'm trying to use ecasound with PHP (PHP 4.1.2 - Debian
Stable).
>
>
>
> It works like a charm when I launch it from an SSH session as
> root but when I tried to launch the same command line with this code in
PHP
> :
>
>
>
> error_reporting(E_ALL);
>
>
>
> $handle = popen('ecasound -i:/var/www/davina.mp3 -o:/var/www/davina.ogg
> 2>&1', 'r');
>
> echo "'$handle'; " . gettype($handle) . "\n";
>
> $read = fread($handle, 2096);
>
> echo nl2br($read);
>
> pclose($handle);
>
>
>
> I get :
>
>
>
> 'Resource id #1'; resource
>
****************************************************************************
> *[1m ecasound v2.0.3 (C) 1997-2001 Kai Vehmanen [m*
>
****************************************************************************
> - [ [1mChainsetup/Enabling audio inputs[m ]
> -------------------------------------
> (eca-audio-objects) Audio object "/var/www/davina.mp3", mode "read".
> (audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
> - [ [1mChainsetup/Enabling audio outputs[m ]
> ------------------------------------
> (eca-audio-objects) Audio object "/var/www/davina.ogg", mode "write".
> (audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
> - [ [1mEngine/Init - mixmode "simple"[m ]
> ---------------------------------------
> (audioio-ogg) Starting to encode /var/www/davina.ogg with vorbize.
>
****************************************************************************
> *[1m ecasound v2.0.3 (C) 1997-2001 Kai Vehmanen [m*
>
****************************************************************************
> - [ [1mChainsetup/Enabling audio inputs[m ]
> -------------------------------------
> (eca-audio-objects) Audio object "/var/www/davina.mp3", mode "read".
> (audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
> - [ [1mChainsetup/Enabling audio outputs[m ]
> ------------------------------------
> (eca-audio-objects) Audio object "/var/www/davina.ogg", mode "write".
> (audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
> - [ [1mEngine/Init - mixmode "simple"[m ]
> ---------------------------------------
> (audioio-ogg) Starting to encode /var/www/davina.ogg with vorbize.
> (eca-main) Warning! An output object has raised an error! Out of disk
space,
> permission denied, etc?
> - [ [1mEngine/Exiting[m ]
> -------------------------------------------------------
>
>
>
> Can someone help me ?
>
>
>
> Didier
>
>
>
>


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Sun Jan 25 2004 - 01:47:37 EET