Interesting question,

I'm not sure about the Liquidsoap internals, but perhaps the following will hint to Liquidsoap that you want to encode only once:

encoder_type = %mp3(bitrate=64)

output.icecast(
         encoder_type,
         host = "127.0.0.1", port = 8000, password = "hackme",
         name = "tuner7 - #{radio}", description = "tuner7", genre = "",
url = "",
         mount = "tuner7.mp3",
         input_tuner7
)

# output v2
output.udp(
         encoder_type,
         host = "192.168.26.61", port = 5007,
         input_tuner7
)

Martin

On Thu, Aug 30, 2012 at 5:24 AM, Yoann QUERET <yoann@queret.net> wrote:
Hi,

On a liquidsoap 1.0.1, i have 1 input and 2 output with the same format
according to this configuration :


#!/usr/bin/lisquidsoap

# Radio configuration
radio = 'OUI FM'
freq = '102300'

# Tuner settings
system("amixer -q -c 0 sset 'tuner7 freq,0' #{freq}")
system("amixer -q -c 0 sset 'tuner7 band,0' 'FM stereo'")
system("amixer -q -c 0 sset 'tuner7 volume,0' 0")

# Source
source_tuner7 = input.alsa(
         device = "hw:0,0,7"
)
input_tuner7 = mksafe( source_tuner7 )

# output v1
output.icecast(
         %mp3(bitrate=64),
         host = "127.0.0.1", port = 8000, password = "hackme",
         name = "tuner7 - #{radio}", description = "tuner7", genre = "",
url = "",
         mount = "tuner7.mp3",
         input_tuner7
)

# output v2
output.udp(
         %mp3(bitrate=64),
         host = "192.168.26.61", port = 5007,
         input_tuner7
)


Mp3 encoding is done twice (one time for output.icecast, and other time
for output.udp). I there a way to have only 1 encoding to preserve CPU ?


Thk for your help :-)

Regards,
Yoann

------------------------------------------------------------------------------
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



--
Open source radio in the cloud. Get yours now! ---> http://airtime.pro

Martin Konecny
Software Developer, Sourcefabric
martin.konecny@sourcefabric.org

720 Bathurst St. Suite 203
M5S 2R4, Toronto, ON, Canada
+1 (416) 892-8420 (Cell)
Skype: martin.konecny15

http://www.sourcefabric.org
http://www.twitter.com/Sourcefabric