Hi guys,

I'm wondering, technically, is there a way for the mplayer input to
enforce that its input stream matches its type, so as to avoid such
problems?

Cheers,

David

On Sat, Nov 2, 2013 at 8:10 PM, Eduardo Martinez
<[email protected]> wrote:
> Samuel,
>
> This worked perfectly.  Thank you very much!
>
> On Nov 2, 2013 9:56 AM, "Samuel Mimram" <[email protected]> wrote:
>>
>> Hi,
>>
>> This is because the stream is mono and you are requesting stereo. In
>> order to correct this please add the following definition of
>> input.mplayer at the beginning of your file:
>>
>> def input.mplayer(~id="input.mplayer",
>>          ~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 -af channels=2 -ao
>> pcm:file=/dev/stdout \
>>                     -vc null -vo null #{quote(s)} 2>/dev/null")
>> end
>>
>> It is adapted from input.external, I just added the "-af channels=2"
>> option to mplayer and now it seems to work nicely!
>>
>> Cheers,
>>
>> Samuel.
>>
>> On Fri, Nov 1, 2013 at 10:26 PM, Eduardo Martinez
>> <[email protected]> wrote:
>> > Hello.
>> >
>> > I have the following script used to transcode a mms wma mono stream into
>> > Icecast MP3,
>> >
>> > The conversion is successful, but unfortunately the audio output sounds
>> > like
>> > chipmunks.
>> >
>> > s =
>> >
>> > input.mplayer("mms://a1477.l3760635476.c37606.g.lm.akamaistream.net/D/1477/37606/v0001/reflector:35476",
>> > buffer=10., max=60.)
>> > s = drop_video(s)
>> > s = mksafe(s)
>> >
>> > output.icecast(
>> >   %mp3(bitrate=32 ,samplerate=44100),
>> >   mount="/test",
>> >   host="x.x.x.x", port=80, password="x.x.x.x",
>> >   s)
>> >
>> > I am running liquidsoap 1.1.1, compiled from source.
>> >
>> > Any help is greatly appreciated.
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Android is increasing in popularity, but the open development platform
>> > that
>> > developers love is also attractive to malware creators. Download this
>> > white
>> > paper to learn more about secure code signing practices that can help
>> > keep
>> > Android apps secure.
>> >
>> > http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
>> > _______________________________________________
>> > Savonet-users mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Android is increasing in popularity, but the open development platform
>> that
>> developers love is also attractive to malware creators. Download this
>> white
>> paper to learn more about secure code signing practices that can help keep
>> Android apps secure.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>



-- 
David

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to