reza | 1 Jan 2009 20:31
Picon

working with multi track file

Hi All,

I am new in using ecasound cmd-line to process audio files.

I have a numbers of .wav sample files and want to mix them into single mp3
file. each .wav file has length (duration) 4secs

Let's say the files arranged in matrix format like this:

Segment1   Segment2   Segment3   Segment4
--------------------------------------------------
41_1_3254  NULL       41_1_3257  41_1_3259
NULL       41_2_3264  41_2_3273  NULL
41_3_3284  41_3_3286  41_3_3280  NULL
41_4_3293  41_4_3297  41_4_3298  NULL
--------------------------------------------------

what I'm trying to do is:
1. mixdown each segment into a single loop device
2. mix all segments (loop) with certain start position into a single file
3. get an mp3 output from combination of .wav samples

Then I use ecasound cmdline like this,
----------------------------------------------
ecasound \
-a:s1_t1 -i:samples/41/41_1_3254.wav -y:0 \
-a:s1_t3 -i:samples/41/41_3_3281.wav -y:0 \
-a:s1_t4 -i:samples/41/41_4_3293.wav -y:0 \
-a:s1_t1,s1_t3,s1_t4 -o loop,s1 \
-a:s2_t2 -i:samples/41/41_2_3264.wav -y:4 \
(Continue reading)

Julien Claassen | 2 Jan 2009 01:46
Picon

Re: working with multi track file

Hi!
   If you have an ecasound version >2.4.7pre2.5.0 you can use playat instead of 
-y (it doesn't do what you want).
ecasound -a:1 -i playat,4.0,file.wav
   Will play file.wav from its start,, but only after 4 seconds have passed.
   If you have an older verion you can use .ewf-files:
edit my_ewf.ewf
# start of file
source = file.wav
offset = 4.0
# end of file
   then you can do:
ecasound -a:1 -i my_ewf.ewf
   The -y option is to start the amount of seconds into the corresponding 
input-file. So:
ecasound -i your_file.wav -y:4.0
   will play nothing, because your fragments are only 4 seconds each.
   Btw.: You don't have to se your loop-devices is just mixing is your intend:
ecasound -a:1 -i input -a:2 -i input -a:3 -i input -a:all -o output
   This will work just fine. You only need the loop-devices to do more 
exravagant routine and processing. Say when using effects on a group of 
inputs.
   Kindest regards
         Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
(Continue reading)

reza | 2 Jan 2009 12:45
Picon

Re: working with multi track file

Hi Julien,

Thank you for your response.

It works for me, exactly what I want. thank you. Here it is the cmd
combination that I use.

ecasound \
-a:s1_t1 -i:playat,0,samples/41/41_1_3254.wav \
-a:s1_t3 -i:playat,0,samples/41/41_3_3281.wav \
-a:s1_t4 -i:playat,0,samples/41/41_4_3293.wav \
-a:s2_t2 -i:playat,4,samples/41/41_2_3264.wav \
-a:s2_t3 -i:playat,4,samples/41/41_3_3286.wav \
-a:s2_t4 -i:playat,4,samples/41/41_4_3297.wav \
-a:s3_t1 -i:playat,8,samples/41/41_1_3257.wav \
-a:s3_t2 -i:playat,8,samples/41/41_2_3273.wav \
-a:s3_t3 -i:playat,8,samples/41/41_3_3280.wav \
-a:s3_t4 -i:playat,8,samples/41/41_4_3298.wav \
-a:s4_t1 -i:playat,12,samples/41/41_1_3259.wav \
-a:all -o output/mixed.mp3

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

reza | 2 Jan 2009 12:58
Picon

php pecl ecasound

Hi All,

I want to use ECI API using PHP.

I build and install ecasound-2.5.2 from source, then I install ecasound
extension for php. Everything looks okay.

# which ecasound
/usr/local/bin/ecasound

Then I call ECI API, like this:

<?php
eci_init();
eci_command("engine-status");
printf("Engine is %s", last_string());
?>

but it return zero sized reply from web server. And this is error message
from httpd

***********************************************************************
* Message from libecasoundc:
*
* 'ECASOUND' environment variable not set. Using the default value
* value 'ECASOUND=ecasound'.
***********************************************************************


(ecasoundc_sa) Error='read() error', cmd='' last_error='' cmd_cnt=1
(Continue reading)

reza | 2 Jan 2009 16:44
Picon

ecasound and ecasound-iam give different length output

Hi All,

I try to use ecasound in interactive mode, but give me different output
length than input.

Using ecasound cmd line:

# ecasound -i media/samples/41/41_1_3255.wav -o media/output/mixed1.mp3

then I check the output:
==================================================================
# ecalength media/output/mixed1.mp3

***********************************************************************
* Message from libecasoundc:
*
* 'ECASOUND' environment variable not set. Using the default value
* value 'ECASOUND=ecasound'.
***********************************************************************

media/output/mixed1.mp3: 4.049s         (0m4s)
===============================================================

then I try use ecasound -c

======================================
# ecasound -c
********************************************************************************
*        ecasound v2.4.6.1 (C) 1997-2007 Kai Vehmanen and others
********************************************************************************
(Continue reading)

Linux Media | 3 Jan 2009 22:58

Re: ecasound and ecasound-iam give different length output

reza <at> chipset.or.id wrote:
> Hi All,
> 
> I try to use ecasound in interactive mode, but give me different output
> length than input.
> 
> Using ecasound cmd line:
> 
> # ecasound -i media/samples/41/41_1_3255.wav -o media/output/mixed1.mp3
> 
> then I check the output:
> ==================================================================
> # ecalength media/output/mixed1.mp3
> 
> ***********************************************************************
> * Message from libecasoundc:
> *
> * 'ECASOUND' environment variable not set. Using the default value
> * value 'ECASOUND=ecasound'.
> ***********************************************************************
> 
> media/output/mixed1.mp3: 4.049s         (0m4s)
> ===============================================================
> 
> 
> 
> then I try use ecasound -c
> 
> ======================================
> # ecasound -c
(Continue reading)

Joel Roth | 4 Jan 2009 10:35
Picon
Favicon

[ANN] Ecasound/Nama recorder-mixer version 0.978

Hullo all,

The newest version of Nama is available at CPAN
for your downloading and testing pleasure.

I was able to implement several suggestions
I received from Julien Claassen, who kindly
took the time to test out the previous version.

It pleased me to hear Julien comment that 
using Nama simplified his work, allowing
him to attempt complicated audio 
processing tasks that might otherwise avoid.

Here is an except from the Changelog for this version.

	- much improved JACK support

	- jack/nojack commands enable/disable JACK

	- source command sets track input to
	  either JACK client name or soundcard channel number

	- jack_auto is used to automatically
	  connect Ecasound to the JACK ports of the 
      designated clients. 

	- stereo/mono commands to set the channel count of each 
	  track. 

(Continue reading)

Julien Claassen | 4 Jan 2009 20:41
Picon

Re: [ANN] Ecasound/Nama recorder-mixer version 0.978

Hi Joel!
   I didn't use it yet, just came home... BUT: You're an animal! And that is to 
be a compliment. :-) Such a lot of work in such a short time. I'll get around 
to it some time this week, when university lets me breathe for a moment.
   Kindest regards and many thanks
          Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Julien Claassen | 4 Jan 2009 22:52
Picon

Re: [ANN] Ecasound/Nama recorder-mixer version 0.978

Found something: Multitrack.pm line 628
         $project_root or $project_root = join_path($ENV{HOME}, "nama" );
   Before that you look for commandline option -d, which looks fine, but this 
looks like always ending up with the ~/nama dir. I don't know?
   Bis spaeter (see you later :-) this time in my mother tongue)
           Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Julien Claassen | 4 Jan 2009 22:44
Picon

Re: [ANN] Ecasound/Nama recorder-mixer version 0.978

Hi!
   Bugreport: You seem to have a problem with consistency concerning the 
$project_root .
   It seems nama always wants to create:
$HOME/nama
   But then looks for the project_root entered in .namarc. So I end up having
/root/nama
   and nama itself looking for:
/home/songs/long/nama/untitled/.wav
   and more in that location. Unfortuintely I couldn't find the point where 
project_root ought to be set and I haven't the slightest clue what to search 
for... :-( I tried grepping for .namarc, no luck though.
   Kindest regards
        Julien

--------
Music was my first love and it will be my last (John Miles)

======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

(Continue reading)


Gmane