Hi,
thanks for your fast answer.
In general I switch between several source streams, but do not know if they are
mono or stereo.
As I understand the source() of your example this would handle all streams s as
mono -
would this work even for stereo streams?
> Thus, you need to force the type to a mono stream this way:
> # Mono input.http
> s = (input.http("http://radiopi.org:8080/reggae"):source(1,0,0))
BR, Peter
Am 03.01.2012 04:09, schrieb Romain Beauxis:
> 2012/1/2 Peter Retep<[email protected]>:
>> Hi,
> Hi Peter!
>
>> a happy new year!
> Happy new year to you too!
>
>> Mostly we stream stereo but sometimes some sources are mono.
>> In the past we got "Incorrect stream type!" and fails, but then there was
>> the audio_to_stereo invention.
>> I upgraded to latest hg and tried to switch from a stereo to a mono stream
>> by using the audio_to_stereo operation applied to all sources.
>> Unfortunately this does not help and fallback is played as without
>> audio_to_stereo.
>> Error messages is same as without audio_to_stereo: "Incorrect stream type!"
>>
>> Do you have any idea?
> Yes, there is a glitch that we need to document more: default source
> type for input.http and input.harbor is to expect stereo streams.
> Thus, you need to force the type to a mono stream this way:
> # Mono input.http
> s = (input.http("http://radiopi.org:8080/reggae"):source(1,0,0))
>
> David commented on this and should be a better reference that me
> concerning this issue:
>
> http://www.mail-archive.com/[email protected]/msg03850.html
>
>> station1.url http://mp3-live.swr.de/swr1bw_s.m3u
>> station1.url.play
>>
>> config:
>>
>> station1 = input.http(id="station1", "http://localhost:8000/default1")
>> # stereo stream
>> station2 = input.http(id="station2", "http://localhost:8000/defaul2")
>> # stereo stream
>> net_outage = mksafe(single(id="net_outage", "var/media/outage.mp3"))
>>
>> station1 = audio_to_stereo(station1)
>> station2 = audio_to_stereo(station2)
>> net_outage = audio_to_stereo(net_outage)
>>
>> radio = fallback(
>> id="http_input fallback",
>> track_sensitive=false,
>> [
>> station1,
>> station2,
>> net_outage
>> ]
>> )
>>
>> output.alsa(device="pcm.liquidsoap",radio)
>> output.dummy(fallible=true, station1);
>> output.dummy(fallible=true, station2);
>> ...
>>
>> output.icecast(
>> %vorbis.cbr(samplerate=44100, channels=2, bitrate=160),
>> %include "icecast.inc",
>> # restart=true,
>> radio
>> )
>>
>> logs:
>>
>> 2012/01/02 14:55:15 [decoder:3] Method "MP3" accepted "audio/mpeg".
>> 2012/01/02 14:55:15 [station1:3] Decoding...
>> 2012/01/02 14:55:16 [station1:3] New metadata chunk: ? -- .
>> 2012/01/02 14:55:16 [station1:3] Buffer overrun: Dropping 0.01s.
>> ...
>> 2012/01/02 14:55:16 [station1:3] Buffer overrun: Dropping 0.03s.
>> 2012/01/02 14:55:16 [station1:3] Incorrect stream type!
>> 2012/01/02 14:55:16 [http_input_fallback:3] Switch to fallback_4969 with
>> forgetful transition.
>> 2012/01/02 14:55:16 [station1:2] Feeding stopped: Incorrect stream type!
>> 2012/01/02 14:55:16 [dummy:3] Source failed (no more tracks) stopping
>> output...
>> 2012/01/02 14:55:18 [decoder:3] Method "MP3" accepted "audio/mpeg".
>> ...
>>
>> btw, whats the right replacement for "restart=true," in output.icecast?
> The restart argument was super seeded by a new "on_error" callback.
> This callback is executed every time an error occurs. It receives a
> string representation of the error that occurred and returns a float.
> If this float is positive, connection will be tried again after its
> value, in seconds. Otherwise, connection is not retried.
>
> Default callback is: fun (_) -> 3., that is: restart after 3 seconds.
>
> Romain
>
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users