Hi;

On Mon, Feb 11, 2013 at 10:36 PM, Romain Beauxis <[email protected]> wrote:
> Hi,
>
> 2013/2/7 Rob Canning <[email protected]>:
>> On 02/05/2013 01:34 AM, Romain Beauxis wrote:
>>>
>>> Hi,
>>>
>>> 2013/2/4 Rob Canning <[email protected]>:
>>>>
>>>> On 02/05/2013 01:12 AM, Romain Beauxis wrote:
>>>>>
>>>>> Hi Rob!
>>>>>
>>>>> 2013/2/2 [email protected] <[email protected]>:
>>>>>>
>>>>>> am having some problems with input.external,
>>>>>>
>>>>>> input.mplayer had no -playlist so i made a new def called mplayerpls
>>>>>>
>>>>>> i simply copied input.mplayer and added the playlist flag
>>>>>> now when i listen to the ogg mountpoint it is noisy - sounds like a
>>>>>> combination of raw data and the original stream source getting piped to
>>>>>> the output
>>>>>>
>>>>>> i am guessing i am missing some encoding step and the raw pcm is ending
>>>>>> up inside a ogg container?? dunno..
>>>>>>
>>>>>> any pointers? code below:
>>>>>>
>>>>>> (i am trying to get a bunch of ugly streams in to liquidsoap realaudio
>>>>>> and the like - is the mplayer approach the best way to go?)
>>>>>>
>>>>>> rob
>>>>>> rob@tzara:~$ liquidsoap --version
>>>>>> Liquidsoap 1.0.0+scm (default@8c2ac2194e8c:20120125:093126)
>>>>>> rob@tzara:~$ uname -a
>>>>>> Linux tzara 2.6.32-17-pve #1 SMP Wed Nov 28 07:15:55 CET 2012 x86_64
>>>>>> GNU/Linux
>>>>>>
>>>>>>
>>>>>> #!/usr/local/bin/liquidsoap
>>>>>>
>>>>>> set("log.level",5)
>>>>>> set("log.file.append",true)
>>>>>> set("log.file.path","/var/log/liquidsoap/newrk.log")
>>>>>> set("log.file.perms",384)
>>>>>>
>>>>>> def input.mplayerpls(~id="input.mplayerpls",
>>>>>>            ~restart=true,~restart_on_error=false,
>>>>>>            ~buffer=0.2,~max=10.,s) =
>>>>>>     input.external(id=id,restart=restart,
>>>>>>         restart_on_error=restart_on_error,
>>>>>>         buffer=buffer,max=max,
>>>>>>         "mplayer -really-quiet \
>>>>>>                 -ao pcm:file=/dev/stdout \
>>>>>>                 -vc null -vo null -playlist #{quote(s)} \
>>>>>>                       2>/dev/null")
>>>>>> end
>>>>>>
>>>>>> ma =
>>>>>>
>>>>>>
>>>>>> input.mplayerpls("http://www.tv-radio.com/station/france_musique_mp3/france_musique_mp3-128k";)
>>>>>
>>>>> What happens if you manually do something like:
>>>>>     mplayer -really-quiet -ao pcm:file=/tmp/bla.wav -vc null -vo null
>>>>> -playlist uri
>>>>>
>>>>> Is the resulting /tmp/bla.wav file ok?
>>>>
>>>>
>>>> sorry - its all good now :/ working like a dream, not sure what changed -
>>>> all i can think is that i had some bad monitoring situation locally -
>>>> sorry
>>>> about that.
>>>
>>> Excellent news, no need to be sorry :-)
>>
>>
>> ok so whatever happened is happening again so there is something weird - i
>> dont know why it was bad at first and then fine when i checked later... some
>> header data getting piped to the output that takes ages to clear???
>> i dont know but this is definitly not a monitoring problem replaceing the
>> /dev/stdout with  /tmp/bla.wav produces a perfectly fine file.
>>
>> i leave the noise stream running for you to hear
>> http://stream.kiben.net:8800/inputmplayerstereo.ogg
>>
>> i have streamed the same thing from two different servers and got the same
>> results one with latest git and one with ubuntu packaged liquidsoap
>> something is funny somewhere...
>>
>> question is where and why
>
> I am not sure. Perhaps the WAVE format returned isn't properly
> parsed.. Have you tried a recent (less than 15 days ago) liquidsoap?
> Sam did some work on this matter with this commit:
>   
> https://github.com/savonet/liquidsoap/commit/6059b3dcbe771cd7daa1d0d9373fa2d043db8411

This one only improves situations where an exception was returned
before because the header could not be parsed. So, I don't think it
can change anything here.

> Also, could you provide a .wav file as returned by the encoder? Does
> it work if you play that file with liquidsoap?

Yes a dump would probably be helpful!

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to