**Describe the bug**
I'm trying to pipe a portaudio source to an Icecast server. Running against a 
local Icecast server, I'm able to get audio coming back from Icecast:

```
#!/usr/bin/env liquidsoap
set("log.file.path", "cast.log")
set("log.stdout", true)

# Audio source
source = mksafe(
        input.portaudio()
)

output.icecast(
  %mp3(bitrate=320),
  host = "localhost",
  port = 8000,
  password = "hackme",
  mount = "stream",
  source)
```

However: if I change the server from my local machine to a remote machine, 
liquidprompt exits with an error:

```
2018/11/12 00:12:40 >>> LOG START
2018/11/12 00:12:39 [main:3] Liquidsoap 1.3.4
2018/11/12 00:12:39 [main:3] Using: bytes=[distributed with OCaml 4.02 or 
above] pcre=7.1.3 dtools=0.4.1 duppy=0.7.3 duppy.syntax=0.7.3 cry=0.6.2 
mm=0.4.0 ogg=0.5.2 vorbis=0.7.1 opus=0.1.2 mad=0.4.5 dynlink=[distributed with 
Ocaml] lame=0.3.3 samplerate=0.1.4 taglib=0.3.3 camomile=1.0.1 portaudio=0.2.1
2018/11/12 00:12:39 [dynamic.loader:3] Could not find dynamic module for fdkaac 
encoder.
2018/11/12 00:12:40 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2018/11/12 00:12:40 [frame:3] Frame size must be a multiple of 1764 ticks = 
1764 audio samples = 1 video samples.
2018/11/12 00:12:40 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio 
samples = 1764 ticks.
2018/11/12 00:12:40 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video 
samples = 1764 ticks.
2018/11/12 00:12:40 [threads:3] Created thread "generic queue #1".
2018/11/12 00:12:40 [threads:3] Created thread "generic queue #2".
2018/11/12 00:12:40 [threads:3] Created thread "non-blocking queue #1".
2018/11/12 00:12:40 [threads:3] Created thread "non-blocking queue #2".
2018/11/12 00:12:40 [13ce710c0250:3] Connecting mount <REDACTED> for 
source@<REDACTED>...
2018/11/12 00:12:40 [13ce710c0250:3] Connection setup was successful.
2018/11/12 00:12:40 [threads:3] Created thread "wallclock_pa" (1 total).
2018/11/12 00:12:40 [clock.wallclock_pa:3] Streaming loop starts, synchronized 
by active sources.
2018/11/12 00:12:40 [clock.wallclock_pa:2] Source portaudio_in failed while 
streaming: Failure("Portaudio error in read_stream: Input overflowed")!
2018/11/12 00:12:40 [clock.wallclock_pa:3] Raised at file "stdlib.ml", line 33, 
characters 17-33
2018/11/12 00:12:40 [clock.wallclock_pa:3] Called from file 
"io/portaudio_io.ml", line 169, characters 6-17
2018/11/12 00:12:40 [clock.wallclock_pa:3] Called from file 
"tools/start_stop.ml", line 181, characters 49-63
2018/11/12 00:12:40 [clock.wallclock_pa:3] Called from file "clock.ml", line 
160, characters 17-25
2018/11/12 00:12:40 [mksafe:3] Switch to portaudio_in.
2018/11/12 00:12:40 [main:3] Shutdown started!
2018/11/12 00:12:40 [main:3] Waiting for threads to terminate...
2018/11/12 00:12:40 [threads:3] Shuting down thread wallclock_pa
2018/11/12 00:12:40 [<REDACTED>:3] Closing connection...
2018/11/12 00:12:40 [clock.wallclock_pa:3] Streaming loop stopped.
2018/11/12 00:12:40 [threads:3] Thread "wallclock_pa" terminated (0 remaining).
2018/11/12 00:12:40 [main:3] Threads terminated.
2018/11/12 00:12:40 [threads:3] Shutting down scheduler...
2018/11/12 00:12:40 [threads:3] Scheduler shut down.
2018/11/12 00:12:40 [threads:3] Shutting down queues...
2018/11/12 00:12:40 [threads:3] Thread "non-blocking queue #2" terminated.
2018/11/12 00:12:40 [threads:3] Thread "non-blocking queue #1" terminated.
2018/11/12 00:12:40 [threads:3] Thread "generic queue #1" terminated.
2018/11/12 00:12:40 [threads:3] Thread "generic queue #2" terminated.
2018/11/12 00:12:40 [threads:3] Queues shut down
2018/11/12 00:12:40 [main:3] Cleaning downloaded files...
2018/11/12 00:12:40 [main:3] Freeing memory...
2018/11/12 00:12:40 >>> LOG END
```

I've no idea how to debug this any further!

**To Reproduce**
Run my script against a local icecast instance, then against a remote icecast 
instance.

**Expected behavior**
I expect the audio to send throught to the remote icecast server at the same 
level of quality as the local one.

**Version details**
 - OS: OSX
 - Version 10.14.1

**Install method**
I installed via opam




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/655
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to