Hi there,

Is there any special configuration necessary to make input.external  
work?

I'm unable to get a program like wavrec (which simply reads from the  
soundcard and dumps to stdout) to work correctly. Here's my config:

#!/usr/local/bin/liquidsoap
set("log.file.path","/tmp/liq.log")
set("log.stdout",true)
set("log.level",5)
set("root.sync",false)

live = input.external(id="live",
      buffer=2.0,
      max=10.0,
      channels=2,
      samplerate=44100,
      restart=false,
      restart_on_error=false,
      "wavrec -s 44100 -S -d /dev/dsp -t -1 /dev/stdout");

live = mksafe(live);

    output.icecast.vorbis(
      host = "127.0.0.1", port = 8000,
      password = "password", mount = "/mount.ogg",
      quality = 0.0,
      live)



And the log shows this every 2 seconds:

2009/07/18 00:22:32 [/mount(dot)ogg:3] Connecting mount /mount.ogg for 
[email protected] 
...
2009/07/18 00:22:32 [/mount(dot)ogg:3] Connection setup was successful.
2009/07/18 00:22:32 [root:3] Broadcast starts up!
2009/07/18 00:22:32 [mksafe:3] Switch to safe_blank.
2009/07/18 00:22:32 [safe_blank:4] Activations changed:  
static=[mksafe:/mount(dot)ogg:/mount(dot)ogg], dynamic=[mksafe:/ 
mount(dot)ogg:/mount(dot)ogg].
2009/07/18 00:22:33 [ogg.encoder:4] /mount(dot)ogg: Starting all streams
2009/07/18 00:22:42 [mksafe:3] Switch to livelag with transition.
2009/07/18 00:22:42 [safe_blank:4] Activations changed: static=[],  
dynamic=[mksafe:/mount(dot)ogg:/mount(dot)ogg].
2009/07/18 00:22:42 [livelag:4] Activations changed: static=[mksafe:/ 
mount(dot)ogg:/mount(dot)ogg], dynamic=[mksafe:/mount(dot)ogg:/ 
mount(dot)ogg].
2009/07/18 00:22:51 [livelag:4] End of track.
2009/07/18 00:22:51 [livelag:4] Buffer emptied, starting buffering.
2009/07/18 00:22:51 [mksafe:3] Switch to safe_blank with forgetful  
transition.
2009/07/18 00:22:51 [livelag:4] Activations changed: static=[],  
dynamic=[mksafe:/mount(dot)ogg:/mount(dot)ogg].
2009/07/18 00:22:51 [safe_blank:4] Activations changed:  
static=[mksafe:/mount(dot)ogg:/mount(dot)ogg], dynamic=[mksafe:/ 
mount(dot)ogg:/mount(dot)ogg].
2009/07/18 00:23:01 [mksafe:3] Switch to livelag with transition.
2009/07/18 00:23:01 [safe_blank:4] Activations changed: static=[],  
dynamic=[mksafe:/mount(dot)ogg:/mount(dot)ogg].
2009/07/18 00:23:01 [livelag:4] Activations changed: static=[mksafe:/ 
mount(dot)ogg:/mount(dot)ogg], dynamic=[mksafe:/mount(dot)ogg:/ 
mount(dot)ogg].
2009/07/18 00:23:10 [livelag:4] End of track.
2009/07/18 00:23:10 [livelag:4] End of track.
2009/07/18 00:23:10 [livelag:4] Buffer emptied, starting buffering.
2009/07/18 00:23:10 [mksafe:3] Switch to safe_blank with forgetful  
transition.
mount

Am I missing something? I've done some tests and I'm certain that  
wavrec is dumping sound data to standard out at 44100 sample rate.

I'm aware that I could use input.oss directly, however this is  
actually a test step on the way to creating a different program that  
will be used by input.external.

I'm using FreeBSD 7.1.

Any help would be greatly appreciated!

Andrew

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to