Re: [Savonet-users] mono for mp3 formats in 1.0.0

2010-12-20 Thread David Baelde
I should really write better error reports! That would be a good christmas assignment... On Sun, Dec 19, 2010 at 6:55 PM, Brandon Casci wrote: > At line 108, char 15: >   this value has type >     (...source(audio=2,video=0,midi=0))->source(audio=2,video=0,midi=0) >   but it should be a subtype o

Re: [Savonet-users] error during make with SVN trunk

2010-12-20 Thread David Baelde
Weird, Buffer is part of the OCaml standard library! What version of Ocaml are you using? (FYI I'm 3.11.2 on Debian testing.) -- David -- Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots,

Re: [Savonet-users] can't stream any file with trunk

2010-12-20 Thread David Baelde
Hi Brandon, First, welcome to SVN :p Then, thanks for your bug report. It *was* a bug, because normally without ocaml-magic liquidsoap should use filenames to avoid decoding any file with any library. I could reproduce your issue (and even get segfaults when libfaad was used on some MP3 files) an

[Savonet-users] Audio processing tips

2010-12-20 Thread Normando Hall
Hi all Well, I have discorer 4 months ago liquidsoap, and I am very happy with this powerful and smart software. Meanwhile I am learning about LS and caml language, I was tried a lot of tweaking to improve sound processing in my no-gui centos server. I was tried all the LS own filters, like hig

Re: [Savonet-users] error during make with SVN trunk

2010-12-20 Thread David Baelde
I've checked: Buffer.blit was indeed introduced in 3.11 only! So I changed the code, which didn't really need that function anyway. It should build fine now. Romain: Why is the mp4 decoder not using the same abstractions as all other "normal" decoders?

Re: [Savonet-users] error during make with SVN trunk

2010-12-20 Thread Brandon Casci
Nice, it builds. Is there a way to test it out without installing? On Mon, Dec 20, 2010 at 11:25 AM, David Baelde wrote: > I've checked: Buffer.blit was indeed introduced in 3.11 only! So I > changed the code, which didn't really need that function anyway. It > should build fine now. > > Romain:

Re: [Savonet-users] smart-crossfade issue

2010-12-20 Thread Normando Hall
Thank you David. I am very missed with ocaml language :-( Can you help me where I need to change the source? Here is the smart-crossfade function. I need to crossfade only the playlist named "tangos". def smart_crossfade (~start_next=5.,~fade_in=3.,~fade_out=3., ~default=(

Re: [Savonet-users] error during make with SVN trunk

2010-12-20 Thread David Baelde
You can always run liquidsoap without installing. The only trick is to get it to load the standard library, but you can always pass it by hand (e.g. src/liquidsoap scripts/pervasives.liq). It's sometimes useful to avoid that liquidsoap loads installed libraries (using --no-pervasives) but this shou

Re: [Savonet-users] mono for mp3 formats in 1.0.0

2010-12-20 Thread Brandon Casci
I understand why the type isn't getting matched, but I still don't understand the source isn't being converted to mono. I'm using mean below in two places, around the %mp3 format and the source. This is incorrect? output.icecast( mean( %mp3(samplerate=22050,bitrate=64)), host = "localhost",

Re: [Savonet-users] mono for mp3 formats in 1.0.0

2010-12-20 Thread David Baelde
Hi Brandon, On Mon, Dec 20, 2010 at 7:16 PM, Brandon Casci wrote: > output.icecast( >   mean( %mp3(samplerate=22050,bitrate=64)), This first mean is meaningless. Mean takes a stereo source, gives back a mono one. What you wanna write here is "please encode in mono mp3" which is just %mp3(sampler

Re: [Savonet-users] dual aac+ outputs

2010-12-20 Thread Brandon Casci
Hi Romain,,I think all my build issues are solved for now. It looks like the memory consumption on v 1.0.0 is much lower and with no leaks :) On Sun, Dec 19, 2010 at 10:42 AM, Romain Beauxis wrote: > Le samedi 18 décembre 2010 21:56:35, Brandon Casci a écrit : > > For some reason I'm not having

Re: [Savonet-users] error during make with SVN trunk

2010-12-20 Thread Romain Beauxis
Le lundi 20 décembre 2010 17:25:29, David Baelde a écrit : > Romain: Why is the mp4 decoder not using the same abstractions as all > other "normal" decoders? The aac decoder does not necessarily consumes all data it is provided. Therefore, you need to keep a buffer/offset at hand to feed it with