[ecasound] erroneous error condition?

From: Noah Mercer <noah_ten@email-addr-hidden>
Date: Sat Oct 13 2007 - 17:15:35 EEST

When I issue the following command: ecasound -a:1 -f:16,1,44100 -i:'/usr/local/audio/tmp/userVocals2077.raw' -chcopy:1,2 -a:2 -f:16,2,44100 -i:'/usr/local/audio/instrumental/sos-high.mp3' -a:all -o:'/var/www/html/audio/userVocals2077-mix-high.mp3' I get the following error: (eca-engine) WARNING: An output object has raised an error! Possible causes: Out ... of disk space, permission denied, unable to launch external applications needed in ... processing, etc. Yet the mp3 file is written out correctly and seems fine. And when I pick the lame command out of the -ddd output (see below) and issue it by hand: ecasound -a:1 -f:16,1,44100 -i:'/usr/local/audio/tmp/userVocals2077.raw' -chcopy:1,2 -a:2 -f:16,2,44100 -i:'/usr/local/audio/instrumental/sos-high.mp3' -a:all -o:stdout | lame -b 128 -s 44.10 -x -S - /var/www/html/audio/userVocals2077-mix-high.mp3 ...everything completes without any errors. If this were just a one-time problem I wouldn't worry about it. But (a) it happens with multiple files (although not all files) and (b) this is happening in a scripted environment where I depend on the return code from ecasound to let me know whether things were successful or not. Does anyone have any suggestions about how to track this down? Does ecasound attempt to do any file permission operations as part of finalizing the output write? (I have group write perms on the directory the file is being written to, but not ownership of it.) Here's the version info: ecasound 2.4.6.1 lame 3.97 mpg123 0.6.5 CentOS 4 Many thanks, Noah -------------------------------------- Here's the -D -ddd output: ecasound -D -ddd -a:1 -f:16,1,44100 -i:'/usr/local/audio/tmp/userVocals2077.raw' -chcopy:1,2 -a:2 -f:16,2,44100 -i:'/usr/local/audio/instrumental/sos-high.mp3' -a:all -o:'/var/www/html/audio/userVocals2077-mix-high.mp3' ******************************************************************************** * ecasound v2.4.6.1 (C) 1997-2007 Kai Vehmanen and others ******************************************************************************** (eca-session) Set debug level to: 511 [* Session created *] (resource-file) Loading file /usr/share/ecasound/ecasoundrc. (resource-file) Loading file /home/noah/.ecasound/ecasoundrc. [* Chainsetup created (cmdline) *] (audioio-db-server) constructor (resource-file) Loading file /usr/share/ecasound/ecasoundrc. (resource-file) Loading file /home/noah/.ecasound/ecasoundrc. (eca-chainsetup-parser) Interpreting object option "-f:s16_le,2,44100,i". (eca-chainsetup-parser) Changed active format to (bits/channels/srate/interleave): s16_le/2/44100/i (eca-chainsetup) sample rate change, chainsetup command-line-setup to rate 44100. (eca-chainsetup-parser) Interpreting object option "-z:mixmode,avg". (eca-static-object-maps) register_chain_operator_objects() (samplebuffer) Buffer created, channels: 0, length-samples: 0. (eca-object-map) match (1): eS to regexp ^eS$ (eca-object-map) match (1): ea to regexp ^ea$ (eca-object-map) match (1): eac to regexp ^eac$ (eca-object-map) match (1): eal to regexp ^eal$ (eca-object-map) match (1): eaw to regexp ^eaw$ (eca-object-map) match (1): ec to regexp ^ec$ (eca-object-map) match (1): eca to regexp ^eca$ (eca-object-map) match (1): eemb to regexp ^eemb$ (eca-object-map) match (1): eemp to regexp ^eemp$ (eca-object-map) match (1): eemt to regexp ^eemt$ (eca-object-map) match (1): ef1 to regexp ^ef1$ (eca-object-map) match (1): ef3 to regexp ^ef3$ (eca-object-map) match (1): ef4 to regexp ^ef4$ (eca-object-map) match (1): efa to regexp ^efa$ (eca-object-map) match (1): efb to regexp ^efb$ (eca-object-map) match (1): efc to regexp ^efc$ (eca-object-map) match (1): efh to regexp ^efh$ (eca-object-map) match (1): efi to regexp ^efi$ (eca-object-map) match (1): efl to regexp ^efl$ (eca-object-map) match (1): efr to regexp ^efr$ (eca-object-map) match (1): efs to regexp ^efs$ (eca-object-map) match (1): ei to regexp ^ei$ (eca-object-map) match (1): enm to regexp ^enm$ (eca-object-map) match (1): epp to regexp ^epp$ (eca-object-map) match (1): chcopy to regexp ^chcopy$ (eca-object-map) match (1): erc to regexp ^erc$ (eca-object-map) match (1): chmove to regexp ^chmove$ (eca-object-map) match (1): chmute to regexp ^chmute$ (eca-object-map) match (1): erm to regexp ^erm$ (eca-object-map) match (1): chmix to regexp ^chmix$ (eca-object-map) match (1): etc to regexp ^etc$ (eca-object-map) match (1): etd to regexp ^etd$ (eca-object-map) match (1): ete to regexp ^ete$ (eca-object-map) match (1): etf to regexp ^etf$ (eca-object-map) match (1): etl to regexp ^etl$ (eca-object-map) match (1): etm to regexp ^etm$ (eca-object-map) match (1): etp to regexp ^etp$ (eca-object-map) match (1): etr to regexp ^etr$ (eca-object-map) match (1): ev to regexp ^ev$ (eca-object-map) match (1): evp to regexp ^evp$ (eca-object-map) match (1): ezf to regexp ^ezf$ (eca-object-map) match (1): ezx to regexp ^ezx$ (eca-object-map) match (1): gc to regexp ^gc$ (eca-object-map) match (1): ge to regexp ^ge$ (eca-static-object-maps) register_controller_objects() (eca-object-map) match (1): kf to regexp ^kf$ (eca-object-map) match (1): kog to regexp ^kog$ (eca-object-map) match (1): kl to regexp ^kl$ (eca-object-map) match (1): kl2 to regexp ^kl2$ (eca-object-map) match (1): klg to regexp ^klg$ (eca-object-map) match (1): km to regexp ^km$ (eca-object-map) match (1): kos to regexp ^kos$ (samplebuffer) Buffer created, channels: 0, length-samples: 0. (eca-object-map) match (1): ksv to regexp ^ksv$ (eca-chainsetup-parser) Interpreting global option "-a:1". (eca-chain) constructor: CHAIN (eca-chainsetup) Chain "1" created. (eca-chainsetup-parser) Selected chain ids: 1 (eca-chainsetup-parser) Interpreting global option "-f:16,1,44100". (eca-chainsetup-parser) Interpreting global option "-i:/usr/local/audio/tmp/userVocals2077.raw". (eca-chainsetup-parser) Interpreting global option "-chcopy:1,2". (eca-chainsetup-parser) Interpreting global option "-a:2". (eca-chain) constructor: CHAIN (eca-chainsetup) Chain "2" created. (eca-chainsetup-parser) Selected chain ids: 2 (eca-chainsetup-parser) Interpreting global option "-f:16,2,44100". (eca-chainsetup-parser) Interpreting global option "-i:/usr/local/audio/instrumental/sos-high.mp3". (eca-chainsetup-parser) Interpreting global option "-a:all". (eca-chainsetup-parser) Selected all chains. (eca-chainsetup-parser) Interpreting global option "-o:/var/www/html/audio/userVocals2077-mix-high.mp3". (eca-chainsetup-parser) Interpreting object option "-a:1". (eca-chainsetup-parser) Selected chain ids: 1 (eca-chainsetup-parser) Interpreting object option "-f:16,1,44100". (eca-chainsetup-parser) Changed active format to (bits/channels/srate/interleave): s16_le/1/44100/i (eca-chainsetup-parser) Interpreting object option "-i:/usr/local/audio/tmp/userVocals2077.raw". (eca-static-object-maps) register_audio_io_rt_objects() (eca-object-map) match (1): /dev/dsp to regexp /dev/dsp[0-9]* (eca-object-map) match (1): /dev/sound/dsp to regexp /dev/sound/dsp[0-9]* (eca-object-map) match (1): rtnull to regexp ^rtnull$ (eca-static-object-maps) register_audio_io_nonrt_objects() (eca-object-map) match (1): wav to regexp wav$ (samplebuffer) Buffer created, channels: 0, length-samples: 0. (eca-object-map) match (1): ewf to regexp ewf$ (eca-object-map) match (1): cdr to regexp cdr$ (eca-object-map) match (1): raw to regexp raw$ (eca-object-map) match (1): mp3 to regexp mp3$ (eca-object-map) match (1): mp2 to regexp mp2$ (eca-object-map) match (1): ogg to regexp ogg$ (eca-object-map) match (1): mikmod to regexp (^mikmod$)|(xm$)|(669$)|(amf$)|(dsm$)|(far$)|(gdm$)|(imf$)|(it$)|(m15$)|(ed$)|(mod$)|(mtm$)|(s3m$)|(stm$)|(stx$)|(ult$)|(uni$) (eca-object-map) match (1): mid to regexp (mid$)|(midi$) (eca-object-map) match (1): aac to regexp aac$ (eca-object-map) match (1): mp4 to regexp mp4$ (eca-object-map) match (1): m4a to regexp m4a$ (eca-object-map) match (1): - to regexp ^-$ (eca-object-map) match (1): stdin to regexp ^stdin$ (eca-object-map) match (1): stdout to regexp ^stdout$ (eca-object-map) match (1): null to regexp ^null$ (eca-object-map) match (1): typeselect to regexp ^typeselect$ (samplebuffer) Buffer created, channels: 0, length-samples: 0. (eca-object-map) match (1): resample to regexp ^resample$ (samplebuffer) Buffer created, channels: 0, length-samples: 0. (eca-object-map) match (1): resample-hq to regexp ^resample-hq$ (samplebuffer) Buffer created, channels: 0, length-samples: 0. (eca-object-map) match (1): resample-lq to regexp ^resample-lq$ (samplebuffer) Buffer created, channels: 0, length-samples: 0. (eca-object-map) match (1): reverse to regexp ^reverse$ (eca-object-map) match (1): flac to regexp flac$ (eca-object-map) match (1): .raw to regexp raw$ (eca-object-factory) Object "-i:/usr/local/audio/tmp/userVocals2077.raw" created, type "Raw audio file". Has 2 parameter(s). (eca-chainsetup-parser) adding file "/usr/local/audio/tmp/userVocals2077.raw". (audioio) set srate, aobj 'Raw audio file:/usr/local/audio/tmp/userVocals2077.raw' to 44100. (audioio-db-client) DB-client created for /usr/local/audio/tmp/userVocals2077.raw. (audioio) set srate, aobj 'DB => Raw audio file:uninitialized' to 44100. (audioio) set srate, aobj 'Raw audio file:/usr/local/audio/tmp/userVocals2077.raw' to 44100. (audioio) set srate, aobj 'Raw audio file:/usr/local/audio/tmp/userVocals2077.raw' to 44100. (eca-chainsetup) Assigning file to chains: 1 (eca-chainsetup-parser) Interpreting object option "-chcopy:1,2". (eca-object-factory) Creating chain operator "Channel copy" (eca-object-factory) Setting parameters: from-channel = 1.000, to-channel = 2.000 (eca-chainsetup) Adding chainop to chain 1. (audiofx) Setting samplerate to 44100 for object Channel copy. Old value 384000. (eca-chainsetup-parser) Interpreting object option "-a:2". (eca-chainsetup-parser) Selected chain ids: 2 (eca-chainsetup-parser) Interpreting object option "-f:16,2,44100". (eca-chainsetup-parser) Changed active format to (bits/channels/srate/interleave): s16_le/2/44100/i (eca-chainsetup-parser) Interpreting object option "-i:/usr/local/audio/instrumental/sos-high.mp3". (eca-object-map) match (1): .mp3 to regexp mp3$ (eca-object-factory) Object "-i:/usr/local/audio/instrumental/sos-high.mp3" created, type "Mp3 stream". Has 2 parameter(s). (eca-chainsetup-parser) adding file "/usr/local/audio/instrumental/sos-high.mp3". (audioio) set srate, aobj 'Mp3 stream:/usr/local/audio/instrumental/sos-high.mp3' to 44100. (audioio-db-client) DB-client created for /usr/local/audio/instrumental/sos-high.mp3. (audioio) set srate, aobj 'DB => Mp3 stream:uninitialized' to 44100. (audioio) set srate, aobj 'Mp3 stream:/usr/local/audio/instrumental/sos-high.mp3' to 44100. (audioio) set srate, aobj 'Mp3 stream:/usr/local/audio/instrumental/sos-high.mp3' to 44100. (eca-chainsetup) Assigning file to chains: 2 (eca-chainsetup-parser) Interpreting object option "-a:all". (eca-chainsetup-parser) Selected all chains. (eca-chainsetup-parser) Interpreting object option "-o:/var/www/html/audio/userVocals2077-mix-high.mp3". (eca-object-map) match (1): .mp3 to regexp mp3$ (eca-object-factory) Object "-o:/var/www/html/audio/userVocals2077-mix-high.mp3" created, type "Mp3 stream". Has 2 parameter(s). (eca-chainsetup-parser) adding file "/var/www/html/audio/userVocals2077-mix-high.mp3". (audioio) set srate, aobj 'Mp3 stream:/var/www/html/audio/userVocals2077-mix-high.mp3' to 44100. (audioio-db-client) DB-client created for /var/www/html/audio/userVocals2077-mix-high.mp3. (audioio) set srate, aobj 'DB => Mp3 stream:uninitialized' to 44100. (audioio) set srate, aobj 'Mp3 stream:/var/www/html/audio/userVocals2077-mix-high.mp3' to 44100. (audioio) set srate, aobj 'Mp3 stream:/var/www/html/audio/userVocals2077-mix-high.mp3' to 44100. (eca-chainsetup) Assigning file to chains: 1 2 (eca-control) ECA_CONTROL constructor [* Connecting chainsetup *] (eca-chainsetup) bmode-selection case-5 (eca-chainsetup) 'nonrt' buffering mode selected. (eca-chainsetup) Set buffering parameters to: --cut-- buffersize: 1024 raised_priority: 0 sched_priority: 50 double buffering: 0 double buffer size: 100000 max buffers: 1 --cut-- (eca-chainsetup) Switching to direct mode. (audioio-db-client) destructor /usr/local/audio/tmp/userVocals2077.raw. (audioio-db-server) unregister_client Raw audio file. (audioio-db-server) unregister_client failed (2) (audioio-db-client) destructor /usr/local/audio/instrumental/sos-high.mp3. (audioio-db-server) unregister_client Mp3 stream. (audioio-db-server) unregister_client failed (2) (audioio-db-client) destructor /var/www/html/audio/userVocals2077-mix-high.mp3. (audioio-db-server) unregister_client Mp3 stream. (audioio-db-server) unregister_client failed (2) (eca-chainsetup) Audio object "/usr/local/audio/tmp/userVocals2077.raw", mode "read". (audio-io) Format: s16_le, channels 1, srate 44100, interleaved. (audioio-mp3) Found mp3 header at offset 0 (audioio-mp3) Found mp3 header at offset 4 (audioio-mp3) Total file size (bytes): 743130.00 (audioio-mp3) Bitrate (bits/s): 128000.00 (audioio-mp3) Sampling frequncy (Hz): 44100.00 (audioio) set srate, aobj 'Mp3 stream:/usr/local/audio/instrumental/sos-high.mp3' to 44100. (audioio-mp3) Total length (frames): 1777 (audioio-mp3) Total length (seconds): 47 (audioio-mp3) Pcm per mp3 frames: 1152 (eca-chainsetup) Audio object "/usr/local/audio/instrumental/sos-high.mp3", mode "read". (audio-io) Format: s16_le, channels 2, srate 44100, interleaved. (eca-chainsetup) sample rate change, chainsetup command-line-setup to rate 44100. (audioio) set srate, aobj 'Raw audio file:/usr/local/audio/tmp/userVocals2077.raw' to 44100. (audioio) set srate, aobj 'Mp3 stream:/usr/local/audio/instrumental/sos-high.mp3' to 44100. (audioio) set srate, aobj 'Mp3 stream:/var/www/html/audio/userVocals2077-mix-high.mp3' to 44100. (eca-chain) sample rate change, chain '1' object 'Channel copy' rate 44100. (audiofx) Setting samplerate to 44100 for object Channel copy. Old value 44100. (eca-chainsetup) Audio object "/var/www/html/audio/userVocals2077-mix-high.mp3", mode "write". (audio-io) Format: s16_le, channels 2, srate 44100, interleaved. [* Chainsetup connected *] (eca-control-objects) Connected chainsetup: "command-line-setup". [* Controller/Starting batch processing *] (eca-engine) ECA_ENGINE constructor (samplebuffer) Buffer created, channels: 0, length-samples: 1024. (eca-engine) Prefill loops: 7 (blocksize 1024). (samplebuffer) Increasing channel-count (1). (samplebuffer) Buffer created, channels: 2, length-samples: 1024. (samplebuffer) Buffer created, channels: 2, length-samples: 1024. (eca-chain) Initialized chain 1 with 1 chainops and 0 gcontrollers. Sbuf points to 136733056. (eca-chain) Initialized chain 2 with 0 chainops and 0 gcontrollers. Sbuf points to 136735464. (eca-control-base) Engine-thread pid: 32559 [* Engine init - Driver start *] (eca-engine) Request start (eca-engine) starting engine operation! (audioio-mp3) mpg123 --stereo -r %s -b 0 -q -s -k 0 %f (audioio-forked-stream) Fork child-for-read: 'mpg123 --stereo -r 44100 -b 0 -q -s -k 0 %f' (audioio-mp3) Starting to encode /var/www/html/audio/userVocals2077-mix-high.mp3 with lame. (audioio-forked-stream) Fork child-for-write: 'lame -b 128 -s 44.10 -x -S - %f' (eca-engine) output error - stop (eca-engine) stopping engine operation! (eca-engine) Signaling stop (eca-engine) Signaling exit (eca-engine) WARNING: An output object has raised an error! Possible causes: Out of disk space, permission denied, unable to launch external applications needed in processing, etc. (eca-engine) Engine state when finishing: 4 [* Controller/Batch processing finished (-3) *] ecasound: Warning! Errors detected during processing. (eca-control-objects) Disconnecting chainsetup: "command-line-setup". (eca-chainsetup) Closing chainsetup "command-line-setup" (eca-chainsetup) Closing audio device/file "/usr/local/audio/tmp/userVocals2077.raw". (eca-chainsetup) Closing audio device/file "/usr/local/audio/instrumental/sos-high.mp3". (audioio-mp3) Cleaning child process pid=32563. (audioio-forked-stream) Child process exit ok (eca-chainsetup) Closing audio device/file "/var/www/html/audio/userVocals2077-mix-high.mp3". (audioio-mp3) Cleaning child process pid=32564. (audioio-forked-stream) Child process exit ok [* Chainsetup disconnected *] (eca-control) ECA_CONTROL destructor (eca-chainsetup) ECA_CHAINSETUP destructor! (eca-chainsetup) Deleting chain "1". (eca-chain) CHAIN destructor! (eca-chainsetup) Deleting chain "2". (eca-chain) CHAIN destructor! (eca-chainsetup) Deleting audio object "/usr/local/audio/tmp/userVocals2077.raw". (eca-chainsetup) Deleting audio object "/usr/local/audio/instrumental/sos-high.mp3". (eca-chainsetup) Deleting audio object "/var/www/html/audio/userVocals2077-mix-high.mp3". (audioio-db-server) destructor When I issue the following command:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Sat Oct 13 20:15:02 2007

This archive was generated by hypermail 2.1.8 : Sat Oct 13 2007 - 20:15:02 EEST