Re: [ecasound] ecasound and ecasound-iam give different length output

From: Linux Media <linuxmedia4@email-addr-hidden>
Date: Sat Jan 03 2009 - 23:58:32 EET

reza@email-addr-hidden 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
> ********************************************************************************
> * ecasound v2.4.6.1 (C) 1997-2007 Kai Vehmanen and others
> ********************************************************************************
> - [ Session created ]
> ----------------------------------------------------------
> - [ Chainsetup created (cmdline) ]
> ---------------------------------------------
> (eca-session) Note! Unable to create a valid chainsetup from the command-line
> ... arguments.
> ecasound ('h' for help)> cs-add mixed
> - [ Chainsetup created (empty) ]
> -----------------------------------------------
> (eca-control-objects) Added a new chainsetup with name "mixed".
> ecasound ('h' for help)> c-add 1
> (eca-control-objects) Added chains: 1.
> ecasound ('h' for help)> ai-add media/samples/41/41_1_3255.wav
> (eca-control-objects) Added audio input "media/samples/41/41_1_3255.wav".
> ecasound ('h' for help)> ao-add media/output/mixed2.mp3
> (eca-control-objects) Added audio output "media/output/mixed2.mp3".
> ecasound ('h' for help)> run
> (eca-control) WARNING: No chainsetup connected. Trying to connect currently
> ... selected chainsetup.
> - [ Connecting chainsetup ]
> ----------------------------------------------------
> (eca-chainsetup) 'nonrt' buffering mode selected.
> (eca-chainsetup) Audio object "media/samples/41/41_1_3255.wav", mode
> ... "read".
> (audio-io) Format: s16_le, channels 1, srate 44100, interleaved.
> (eca-chainsetup) Audio object "media/output/mixed2.mp3", mode
> ... "write".
> (audio-io) Format: s16_le, channels 2, srate 44100, interleaved.
> - [ Chainsetup connected ]
> -----------------------------------------------------
> (eca-control-objects) Connected chainsetup: "mixed".
> - [ Controller/Starting batch processing ]
> -------------------------------------
> - [ Engine init - Driver start ]
> -----------------------------------------------
> (audioio-mp3) Starting to encode media/output/mixed2.mp3 with lame.
> - [ Controller/Batch processing finished (0) ]
> ---------------------------------
> ecasound ('h' for help)>
> ===========================================================
>
> after that I also check the output:
>
> # ecalength media/output/mixed2.mp3
>
> ***********************************************************************
> * Message from libecasoundc:
> *
> * 'ECASOUND' environment variable not set. Using the default value
> * value 'ECASOUND=ecasound'.
> ***********************************************************************
>
> media/output/mixed2.mp3: 3.840s (0m4s)
> -------------------------------------------------------
>
> does anybody know why it happen?
>
> thanks,
> Reza

I noticed that if I write to a file, then (while ecasound is still
running... in interactive mode obviously), I do ecalength on the file, I
will get a differnet length than when I close out ecasound and do
ecalength again.

See if you get the same results. Write to the file in interactive
mode... then do...

> engine-status

if it says 'finished', then keep ecasound running and do ecalength on
the written file.

Then close out ecasound and do ecalength on the file now. Are the
results (the lengths) different?

Rocco

------------------------------------------------------------------------------
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Sun Jan 4 00:15:01 2009

This archive was generated by hypermail 2.1.8 : Sun Jan 04 2009 - 00:15:01 EET