Hi, 2013/7/31 Tony Miller <[email protected]>: > I had it sort of working in the branch before, but now I seem to be > getting this "Feeding stopped: Generator.Incorrect_stream_type." > error: > > 2013/07/30 22:18:56 [harbor:4] New client on port 8080: 192.168.0.200 > 2013/07/30 22:18:56 [harbor:4] Header: Upgrade, value: websocket. > 2013/07/30 22:18:56 [harbor:4] Header: Connection, value: Upgrade. > 2013/07/30 22:18:56 [harbor:4] Header: Host, value: 192.168.0.106:8080. > 2013/07/30 22:18:56 [harbor:4] Header: Origin, value: > http://192.168.0.106:5678. > 2013/07/30 22:18:56 [harbor:4] Header: Sec-WebSocket-Protocol, value: webcast. > 2013/07/30 22:18:56 [harbor:4] Header: Pragma, value: no-cache. > 2013/07/30 22:18:56 [harbor:4] Header: Cache-Control, value: no-cache. > 2013/07/30 22:18:56 [harbor:4] Header: Sec-WebSocket-Key, value: > cfCUH4RpmGn6eISv26CuDg==. > 2013/07/30 22:18:56 [harbor:4] Header: Sec-WebSocket-Version, value: 13. > 2013/07/30 22:18:56 [harbor:4] Header: Sec-WebSocket-Extensions, > value: x-webkit-deflate-frame. > 2013/07/30 22:18:56 [harbor:4] Header: User-Agent, value: Mozilla/5.0 > (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) C > hrome/30.0.1581.2 Safari/537.36. > 2013/07/30 22:18:56 [harbor:5] Hello packet: > {"type":"hello","data":{"mime":"audio/mpeg","audio":{"channels":1,"samplerate":48000,"bit > rate":64,"encoder":"libmp3lame"}}} > > 2013/07/30 22:18:56 [harbor:4] Mime type: audio/mpeg > 2013/07/30 22:18:56 [harbor:4] Mount point: /mount > 2013/07/30 22:18:56 [decoder:4] Trying method "WAV" for "audio/mpeg"... > 2013/07/30 22:18:56 [decoder:4] Trying method "PCM/BASIC" for "audio/mpeg"... > 2013/07/30 22:18:56 [decoder:4] Trying method "RAW AUDIO" for "audio/mpeg"... > 2013/07/30 22:18:56 [decoder:4] Trying method "MAD" for "audio/mpeg"... > 2013/07/30 22:18:56 [decoder:3] Method "MAD" accepted "audio/mpeg". > 2013/07/30 22:18:56 [threads:3] Created thread "harbor source feeding" > (2 total). > 2013/07/30 22:18:56 [harbor_4923:3] Decoding... > 2013/07/30 22:18:34 [harbor_4923:3] No network activity for 1.00 second(s). > 2013/07/30 22:18:59 [fallback_4927:3] Switch to harbor_4923 with transition. > 2013/07/30 22:18:59 [single_4925:4] Activations changed: static=[], > dynamic=[fallback_4927:icecast:icecast]. > 2013/07/30 22:18:59 [harbor_4923:4] Activations changed: > static=[fallback_4927:icecast:icecast], > dynamic=[fallback_4927:icecast:icecast]. > 2013/07/30 22:18:34 [harbor_4923:3] Incorrect stream type! > 2013/07/30 22:18:59 [harbor_4923:4] End of track. > 2013/07/30 22:18:59 [harbor_4923:4] Buffer emptied, buffering needed. > 2013/07/30 22:18:59 [fallback_4927:3] Switch to single_4925 with > forgetful transition. > 2013/07/30 22:18:59 [harbor_4923:4] Activations changed: static=[], > dynamic=[fallback_4927:icecast:icecast]. > 2013/07/30 22:18:59 [source:4] Source replay_metadata_4945 gets up. > 2013/07/30 22:18:59 [replay_metadata_4945:4] Content kind is > {audio=2;video=0;midi=0}. > 2013/07/30 22:18:59 [single_4925:4] Activations changed: > static=[replay_metadata_4945:fallback_4927:icecast:icecast], > dynamic=[fallback_4927:icecast:icecast]. > 2013/07/30 22:18:59 [replay_metadata_4945:4] Activations changed: > static=[fallback_4927:icecast:icecast], dynamic=[]. > 2013/07/30 22:18:59 [harbor_4923:2] Feeding stopped: > Generator.Incorrect_stream_type. > 2013/07/30 22:18:59 [threads:3] Thread "harbor source feeding" > terminated (1 remaining). > > I'm using the client example in the webcast repo, my liquidsoap script > is pretty simple: > #!/usr/local/bin/liquidsoap > # > set("log.file.path","/tmp/liquidsoap.log") > set("log.stdout",true) > set("log.level",5) > > set("server.telnet",false) > > set("harbor.bind_addr","0.0.0.0") > > live_dj = input.harbor("/mount",port=8080) > > on_fail = single("/home/tony/RadioScotvoid06242013.mp3") > source = fallback(track_sensitive=false, > [live_dj,on_fail]) > > output.icecast(%mp3,id="icecast", > mount="datafruits.mp3", > host="localhost", > icy_metadata="true",description="datafruits.fm", > url="http://datafruits.fm", > source) > > If you have any ideas, let me know. Thanks!
This is because the incoming stream is mono. You should use audio_to_stereo() to convert input.harbor's source to stereo. Btw, I am still working on the demo client. I'm starting to wonder that there could be a bug in the Lame and Shine encoders, so I'd recommend sticking to raw encoding for your tests.. Romain ------------------------------------------------------------------------------ Get your SQL database under version control now! Version control is standard for application code, but databases havent caught up. So what steps can you take to put your SQL databases under version control? Why should you start doing it? Read more to find out. http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
