Ricardo Antunes | 5 Sep 2007 16:36
Picon
Favicon

Ecasound for long continuous recordings.

Hi

I'm looking into an open source command line sound recorder to use in an 
embedded linux system, to record sound files continuously for long periods.
Ideally, the recorder would split the sound files into smaller, 
pre-determined size, files. Ideally no samples would be lost when 
switching to a new file, and file name would be some kind of timestamp 
(e.g. system clock time).

I'm new to Ecasound, so not sure if it would be possible to use it for 
this application, but decided to check before starting to code something 
to do it myself.

Any one knows how could I use Ecasound for this?

Thanks in advance.

-------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Enzo | 8 Sep 2007 02:40
Picon
Favicon

equivalent of .ewf offset in console

Hi

for now, to make begin a wav at 4 seconds from the begining, i can use the offset = 4.0 in a .ewf file
Is there a paramater i can use on the console to do an equivalent of this offset ?

I've tried -y, but it's equivalent to the start-position from an ewf file

In fact i don't see in the manual the equivalent of offset

Thanks for your help

Enzo


Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Enzo | 8 Sep 2007 19:37
Picon
Favicon

Coredump

Hi

I make some tests on ecasound, but it crashes from time to time on the same example

I've made of it a tarball to reproduct the bug

The command is in the file called launch:
ecasound -a:20 -i:20.ewf -ea:400 -a:21 -i:21.ewf -ea:500 -a:22 -i:22.ewf -ea:500 -a:23 -i:23.ewf -ea:500 -a:24 -i:24.ewf -ea:400 -a:25 -i:25.ewf -ea:200 -a:26 -i:26.ewf -ea:200 -t 22.125

Hope this helps


Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Attachment (bug.tgz): application/x-compressed, 31 KiB
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Enzo | 8 Sep 2007 19:50
Picon
Favicon

DBC_CHECK DBC_REQUIRE

Hi

concerning the segfault on my previous example, i've used now only .wav and no .mp3, it doesn't crash anymore, but i get these warnings, don't know why:

Warning: DBC_CHECK failed - "sbuf->length_in_samples() - tail < sbuf->length_in_samples()", audioio-ewf.cpp, 211.
Warning: DBC_REQUIRE failed - "to_pos < length_in_samples()", samplebuffer.cpp, 295.
Warning: DBC_CHECK failed - "sbuf->length_in_samples() - tail < sbuf->length_in_samples()", audioio-ewf.cpp, 211.
Warning: DBC_REQUIRE failed - "to_pos < length_in_samples()", samplebuffer.cpp, 295.
Warning: DBC_CHECK failed - "sbuf->length_in_samples() - tail < sbuf->length_in_samples()", audioio-ewf.cpp, 211.
Warning: DBC_REQUIRE failed - "to_pos < length_in_samples()", samplebuffer.cpp, 295.


Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list
textchimp | 11 Sep 2007 03:11
Picon

Smooth on-the-fly volume control?


Hi,

I'm using ecasound v2.4.6.1 (on Ubuntu Feisty 7.0.4) to pipe audio from a
USB radio device into the Jack server. I'm also using the '-ea:nn' option to
change the volume of the radio stream,  but in order to change the volume on
the fly (in interactive mode) I seem to have to use the two commands
'c-clear' and then 'cs-option -ea:nn', and these commands disconnect the
chainsetup and stop processing, causing gaps in the audio. 

My question is, is there any way to modify the '-ea' value (or otherwise
change the volume/gain of the stream) on the fly without interrupting the
audio?

It also seems worth pointing out that I'm having trouble using the
daemon-mode of ecasound - I can send commands to the ecasound server via
telnet but sooner or later a command (one of the two I mentioned above) will
cause the server to start maxing out the CPU, and the only way to stop it is
to kill the server process. I'm not sure if this is something the developers
are already aware of. Maybe it would be a useful feature to be able to
define a file or files which ecasound could poll for changes and read
parameter values from, to allow them to be changed on the fly?

Anyway, any help with this issue would be appreciated. Ecasound is a cool
piece of software.

-Luke

--

-- 
View this message in context: http://www.nabble.com/Smooth-on-the-fly-volume-control--tf4419681.html#a12606106
Sent from the Ecasound - General mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Julien Claassen | 11 Sep 2007 10:09
Picon

Re: Smooth on-the-fly volume control?

Hi!
  There are several ways to change volume.
  First of all: you should use some realtime stuff. Low buffersize, which you 
can configure in the ecasoundrc file.
  Then you can use the following three ways:
1. Use a static linear envelop:
ecasound -c -i input -o output -ea:100 -klg:1,0,100,3,0,1,3,1,6,0.5
  This will start at 0sec 100% volume (0,1), go to 3sec full volume (3,1) and 
take 3sec to half-volume (6,0.5).
  Probably not esactly what you'd like.
2. Use a midi-controller:
ecasound -c -i input -o output -ea:100 -km:1,0,100,1,1
  This will use mididevice from ecasoundrc and channel 1 and controller 1 (the 
modwheel) to change volume. With this you can turn volume from 0 to 100%.
  You could probably use some virtual midi-controller (I think the GUI offers 
a few) or a hardware device.
3. You can use some kind of compressor or volume-automation, for example:
ecasound -c -i input -o output -eli:1982,2,0.8,1,10,0
  This will use ladspa-plugin with id: 1982 (vlevel) to automatically adapt 
volume. It's a kind of look-ahead compressor. See their website for more info.
  You can find vlevel and steve Harris' plugins listed at:
http://linux-sound.org
Table of contents / audio plugins.
  About your server problem: I don't know.
  Hope that helps.
  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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Kai Vehmanen | 11 Sep 2007 22:22

Re: Smooth on-the-fly volume control?

Hi,

Julien already gave quite a few options, but just in case you are looking 
for something even simpler...

On Mon, 10 Sep 2007, textchimp wrote:

> USB radio device into the Jack server. I'm also using the '-ea:nn' option to
> change the volume of the radio stream,  but in order to change the volume on
> the fly (in interactive mode) I seem to have to use the two commands
> 'c-clear' and then 'cs-option -ea:nn', and these commands disconnect the
> chainsetup and stop processing, causing gaps in the audio.

You might be looking for 'cop-set' and other "real-time commands" (see 
ecasound-iam(1) man page and the section on real-time commands). In short, 
"cop-set XX" will set amplify to XX (and do so without interrupting playback).
Check the man page for more details.

> It also seems worth pointing out that I'm having trouble using the
> daemon-mode of ecasound - I can send commands to the ecasound server via
> telnet but sooner or later a command (one of the two I mentioned above) will
> cause the server to start maxing out the CPU, and the only way to stop it is
> to kill the server process. I'm not sure if this is something the developers
> are already aware of. Maybe it would be a useful feature to be able to
> define a file or files which ecasound could poll for changes and read
> parameter values from, to allow them to be changed on the fly?

Hmm, that is new to me. Sounds like a bug in the polling mechanism... tips 
on how to reproduce this with a mimimal ecasound setup would be welcome.

--

-- 
  links, my public keys, etc at http://eca.cx/kv

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Kai Vehmanen | 11 Sep 2007 22:34

Re: Ecasound for long continuous recordings.

Hi,

On Wed, 5 Sep 2007, Ricardo Antunes wrote:

> I'm looking into an open source command line sound recorder to use in an
> embedded linux system, to record sound files continuously for long periods.
> Ideally, the recorder would split the sound files into smaller,
> pre-determined size, files. Ideally no samples would be lost when
> switching to a new file, and file name would be some kind of timestamp
> (e.g. system clock time).
>
> I'm new to Ecasound, so not sure if it would be possible to use it for
> this application, but decided to check before starting to code something
> to do it myself.

at the moment ecasound cannot do this. People have asked for this many, 
many times, so it would be great to have the feature sooner or later.

Technically, the solution could be something like "resample" and "reverse" 
objects that provide a "added-value" wrapper for other audio objects. So 
you could have something like:

sh> ecasound -i jack -o splice,foo_%v_%t.wav,200

This would:
   - record to file foo_%v_%t.wav from JACK
   - every 200secs, switch to a new file
   - in filename, %v is the serial number (1...N) while
     %t would be the cutoff (0 for first, 200 for next, and so on)

Any volunteers to implement this? :) The ewf file format implementation 
is probably a good starting point (in addition to "resample" and 
"reverse").

I'm currently working on a test tone generator for ecasound (aimed to help 
reproducing complex issue/bugs without the need to create lots and lots 
test input files) so I'm going to have my hands full for quite a while.

--

-- 
  links, my public keys, etc at http://eca.cx/kv

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Kai Vehmanen | 11 Sep 2007 22:51

Re: equivalent of .ewf offset in console

Hi,

On Sat, 8 Sep 2007, Enzo wrote:

> for now, to make begin a wav at 4 seconds from the begining, i can use 
> the offset = 4.0 in a .ewf file Is there a paramater i can use on the console
> to do an equivalent of this offset ?

unfortunately no, you need an ewf file for this.

There have been some discussion about exposing ewf functionality as 
audio object parameters. For instance this mail from 2004:

http://eca.cx/ecasound-list/2003/03/0086.html

So basicly you could have:

sh> ecasound -i range,foo.wav,offset-sec,start-sec,length-sec,looping-toggle -o alsa

Thinking about this now, this seems superior to ewf-files in all respects. 
OTOH, back when ewf-file support was added (sometime in 1999), the idea 
was that the ewf-files would evolve to provide much more functionality. 
But that didn't happen, and for currently functionality, just specifying 
the params on command-line (or via ECI) seems much, much easier.

--

-- 
  links, my public keys, etc at http://eca.cx/kv

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

textchimp | 13 Sep 2007 05:47
Picon

Re: Smooth on-the-fly volume control?


Hi,

Thanks to everyone who replied. It looks like Kai's suggestion of "cop-set"
does just what I need - and furthermore, this command does not break the
server-mode (as in maxing out the CPU) the way that the combination of the
"c-clear" and "cs-option" commands did, when sent via telnet. So I can now
change the volume of my radio stream remotely, without interrupting it. 

The MIDI control option also seemed like it might be useful, but I couldn't
find a simple command-line program to send specific MIDI events to a
particular channel/controller...

Thanks for the help guys.

-Luke

Kai Vehmanen wrote:
> 
> Hi,
> 
> Julien already gave quite a few options, but just in case you are looking 
> for something even simpler...
> 
> On Mon, 10 Sep 2007, textchimp wrote:
> 
>> USB radio device into the Jack server. I'm also using the '-ea:nn' option
>> to
>> change the volume of the radio stream,  but in order to change the volume
>> on
>> the fly (in interactive mode) I seem to have to use the two commands
>> 'c-clear' and then 'cs-option -ea:nn', and these commands disconnect the
>> chainsetup and stop processing, causing gaps in the audio.
> 
> You might be looking for 'cop-set' and other "real-time commands" (see 
> ecasound-iam(1) man page and the section on real-time commands). In short, 
> "cop-set XX" will set amplify to XX (and do so without interrupting
> playback).
> Check the man page for more details.
> 
>> It also seems worth pointing out that I'm having trouble using the
>> daemon-mode of ecasound - I can send commands to the ecasound server via
>> telnet but sooner or later a command (one of the two I mentioned above)
>> will
>> cause the server to start maxing out the CPU, and the only way to stop it
>> is
>> to kill the server process. I'm not sure if this is something the
>> developers
>> are already aware of. Maybe it would be a useful feature to be able to
>> define a file or files which ecasound could poll for changes and read
>> parameter values from, to allow them to be changed on the fly?
> 
> Hmm, that is new to me. Sounds like a bug in the polling mechanism... tips 
> on how to reproduce this with a mimimal ecasound setup would be welcome.
> 
> -- 
>   links, my public keys, etc at http://eca.cx/kv
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Ecasound-list mailing list
> Ecasound-list <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ecasound-list
> 
> 

--

-- 
View this message in context: http://www.nabble.com/Smooth-on-the-fly-volume-control--tf4419681.html#a12648240
Sent from the Ecasound - General mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list


Gmane