Hi,

I found a snippet of code which works not exactly what I after but it  
works. Mind you once started Ctrl "C" does not cease the application,  
had to kill the process.




#!/usr/bin/liquidsoap

# Define a Log file to monitor output
set("log.file.path","./soslug_alsa.log")

# Not used but this would define audio file to record a stream
recording = "soslug_jack.mp3"

# Define the stream input source
stream = mksafe(audio_to_stereo(input.alsa()))

# Define the icecast oput format etc..
output.icecast(%mp3(bitrate=128),
      host = "soslug.org", port = 8008,
      user = "<username>", password = "<password>", mount = "soslug_alsa.mp3",
      description = "Liquid Soap application Streaming by Southend on  
Sea Linux User Group",
      url = "http://soslug.org:8008/soslug_alsa.mp3";,
      stream)


output.dummy(visu.volume(smooth_add(special=delay(3.,blank(duration=4.)),normal=stream)))

# Defines output format for stream to be recorded
output.file(%mp3(bitrate=192), recording,
         fallible=true,
         on_stop=shutdown, stream)

Derek

Quoting Romain Beauxis <to...@rastageeks.org>:

> Hi,
>
> 2012/7/8 Derek Shaw <de...@techsys.co.uk>:
>> Still can't make it work here's my code
>>
>> #!/usr/bin/liquidsoap
>>
>> # Define a Log file to monitor output
>> set("log.file.path","./soslug_alsa.log")
>>
>> # Not used but this would define audio file to record a stream
>> # recording = "soslug_jack.mp3"
>>
>> # Define the stream input source
>> stream = mksafe(audio_to_stereo(input.alsa()))
>>
>> # Define the icecast output format etc..
>> output.icecast(%mp3(bitrate=128),
>>      host = "soslug.org", port = 8008,
>>      user = "<username>", password = "<password>", mount =
>> "soslug_alsa.mp3",
>>      description = "Liquid Soap application Streaming by Southend on Sea
>> Linux User Group",
>>      genre = "",
>>      url = "http://soslug.org:8008/soslug_alsa.mp3";,
>>      stream)
>>
>> # Reference code format
>> # vumeter(stream(audio='#a+1,video='#b,midi='#c))->
>> #       stream(audio='#a+1,video='#b,midi='#c)))
>>
>> # Defines output format for stream to be recorded not in use but works
>> #output.file(%mp3(bitrate=192), recording,
>> #        fallible=true,
>> #        on_stop=shutdown, stream)
>>
>> Help much appreciated
>
> In general, it's good to add log extracts to help diagnose your problem :-)
>
> I did not remember vumeter.. vumeter is for printing volume meter on
> the console terminal. I am not sure that it has been tested recently
> but it should work I think.
>
> As for visu.volume, it's a SDL operator so I would be a bit careful if
> used in production. It's a big chunk of code that may be less stable..
> Perhaps you could set it up on a second liq instance, which would be
> "allowed" to crash without major impact to production data..
>
> Romain
>




------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to