Le 12.11.2012 16:26, Romain Beauxis a écrit :
> Hi,
>
> 2012/11/12 Yoann QUERET <yo...@queret.net>:
>> Testing in progress ...
>
> Thanks for that!
>
>> Need to have ~/music/ available ? and with audio file ?
>
> Yeah. The idea is to try to reduce the script to as few as we can so
> that we start looking at, hopefully, a very specific operator/output.
> So far, my findings are:
> * ffmpeg is not the culprit, it also leaks with "cat > /dev/null"
> * %mp3 encoder resampling is also not the culprit, it also leaks 
> without it.
> * A simple noise() or sine() source with output.external does not 
> leak
>
> That's where I became suspicious of the playlist, but it'd seem too
> big to believe the bug comes from there.
>
> I'm curious: what source do you plug into your output.external?

You're right to be curious :-)

I don't see any suspicious memory usage with output.dummy :
02:59:19 PM       PID  minflt/s  majflt/s     VSZ    RSS   %MEM  
Command
03:00:19 PM     22499      0.03      0.00  171568  15664   0.13  
liquidsoap
[...]
04:47:19 PM     22499      0.03      0.00  171568  15664   0.13  
liquidsoap


I use various internet stream such as:
- http://91.121.163.143:8000/rcimq_relay1.mp3
- http://mp3.live.tv-radio.com/fbidf/all/fbidfhautdebit.mp3
- http://vivrefm.cnrwebradio.fr:8050/
- http://www.radiocampusparis.org:8000/stream_rcp
- [...]
-


Or use alsa via Audioscience ASI8921 multi tuner card.



Here my liq with an internet stream for input :

set("init.daemon.pidfile.path", "/var/run/liquidsoap/178857.pid")
set("log.file.path", "/var/log/liquidsoap/178857.log")
def handler_blank()
         system("echo \"Blank\" | mail -s \"[`hostname`] Blank\" 
yo...@queret.net")
end
def handler_noise()
         system("echo \"Noise\" | mail -s \"[`hostname`] Noise\" 
yo...@queret.net")
end

# Turn a source into an infaillible source by adding blank when the 
source is not available.
def mksafe(s)
   
fallback(id="mksafe",track_sensitive=false,[s,blank(id="safe_blank")])
   end

source = input.http(
         autostart=true,
         "http://www.radiocampusparis.org:8000/stream_rcp";
)
source = mksafe(source)
source = on_blank(
         length=20.,
         threshold=-50.,
         on_noise=handler_noise,
         handler_blank,
         source
         )

output.external(
         %mp3(bitrate=128,stereo_mode="stereo",samplerate=48000),
         fallible=true,
         "ffmpeg -i - -acodec copy -f mpegts 
udp://239.168.31.4:5000,?pktsize=1316",
         source
)


And the same for my tuner card :

set("init.daemon.pidfile.path", "/var/run/liquidsoap/tuner0.pid")
set("log.file.path", "/var/log/liquidsoap/tuner0.log")

# tuner configuration
system("amixer -q -c 0 sset 'tuner0 freq,0' 92300")
system("amixer -q -c 0 sset 'tuner0 band,0' 'FM stereo'")
system("amixer -q -c 0 sset 'tuner0 volume,0' 0")

def handler_blank()
         system("echo \"Blank\" | mail -s \"[`hostname`] Blank\" 
yo...@queret.net")
end
def handler_noise()
         system("echo \"Noise\" | mail -s \"[`hostname`] Noise\" 
yo...@queret.net")
end

source = input.alsa(
         device = "hw:0,0,0"
)
source = on_blank(
         length=5.,
         threshold=-30.,
         on_noise=handler_noise,
         handler_blank,
         source
         )

# output 1
output.icecast(
         %mp3(bitrate=64),
         host = "127.0.0.1", port = 8000, password = "TryToHackMe",
         name = "tuner0", description = "tuner0", genre = "", url = "",
         mount = "tuner0.mp3",
         source
)
# output 2
output.external(
         %mp3(bitrate=64,stereo_mode="stereo",samplerate=48000),
         "ffmpeg -i - -acodec copy -f mpegts 
udp://239.168.31.5:5000,?pktsize=1316",
         source
)


I can listen my multicast output with vlc and this url : 
udp://@239.168.31.5:5000

Thk you for taking the time to look for the problem :-)

Yoann

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to