Odd problem with 1.4.0 from opam on Debian testing: The script jumps back and forth.
When I try to connect to an input.harbor.ssl, I use this script: parec --raw --rate=48000 --channels=1 | \ oggenc -Q -r -R 48000 -C 1 -q 10 --utf8 --title 'test från Stävgränd 20' --artist penner --genre 'curl test' - | \ curl --basic --user jenna:traci -ssl -H "Content-Type: audio/ogg" -T - https://mustafejen.se:8080 /verketgive.ogg exec "/home/per/tmp/vlogga" The part of the .liq I try to connect to looks like this: default = single("/home/per/Musik/verket/Instängd/03-instangd-kott_ar_mord.mp3") #default = single("/home/per/Musik/diverse/silence.opus") lista = playlist("/home/per/playlist.txt") # Play user requests if there are any, # otherwise one of our playlists, # and the default file if anything goes wrong. radio = fallback(track_sensitive=false, [(lista), (default)]) # Play user requests if there are any, # otherwise one of our playlists, # and the default file if anything goes wrong. #radio = fallback([ #(default)]) # Add the ability to relay live shows #live = input.http(max=30.0, buffer=20.0, "http://mustafejen.se:8000/verketlive.ogg") def verket_auth(port,login,password) = # Alice connects on port 9000 between 20h and 21h # with password "rabbit" (port == 8082 and login == "jenna" and password == "traci") end vauth = verket_auth(8082) #kive = audio_to_stereo(input.harbor(id="kive", replay_metadata=true, "verketlive.ogg", port=8081, password="top_secret", buffer=1.0)) give = amplify(5.0, audio_to_stereo(input.harbor.ssl(id="give", replay_metadata=true, auth=vauth, "verketgive.ogg", port=8082, password="top_secret", buffer=1.0))) verket = fallback(track_sensitive=false, [(give), (radio)]) verket = register_flow( radio="Verket", website="http://verketumea.se/", description="Bands from Verket", genre="Mainly Punk", streams=[("mp3/128k", "http://mustafejen.se:8000/verket"), ("opus/64k", "http://mustafejen.se:8000/verket.opus")], verket) # Output to FLAC file # output.file(id="inspelning", fallible=true, %flac(channels=2, bits_per_sample=16, samplerate=48000, compression=5), "/home/per/Musik/live/verket/dump.ogg", hive) # Output to vorbis file # output.file(id="inspelning", fallible=true, %vorbis(quality=1.0 , samplerate=48000, channels=2), "/home/per/Musik/live/verket/dump.ogg", hive) # Output to OPUS clock.assign_new(sync=false,[output.icecast( %mp3(bitrate=128, samplerate=48000, stereo=true), mount="verket", host="mustafejen.se", port=8000, user="source", public=true, genre="Mainly Punk", url="http://verketumea.se", password="top_secret", description="Bands from Verket", name="Verket mp3", verket)]) In the log file, I see this: 2019/12/14 18:26:42 >>> LOG START 2019/12/14 18:26:41 [main:3] Liquidsoap 1.4.0 2019/12/14 18:26:41 [main:3] Using: bytes=[distributed with OCaml 4.02 or above] pcre=7.4.3 sedlex=2.1 menhirLib=20190924 dtools=0.4.1 duppy=0.8.0 cry=0.6.4 mm=0.5.0 xmlplaylist=0.1.4 lastfm=0.3.2 ogg=0.5.2 vorbis=0.7.1 opus=0.1.3 speex=0.2.1 mad=0.4.5 flac=0.1.5 flac.ogg=0.1.5 dynlink=[distributed with Ocaml] lame=0.3.3 shine=0.2.1 gstreamer=0.3.0 frei0r=0.1.1 theora=0.3.1 gavl=0.1.6 bjack=0.1.5 alsa=0.2.3 ao=0.2.1 samplerate=0.1.4 taglib=0.3.6 ssl=0.5.9 magic=0.7.3 camomile=1.0.2 inotify=2.3 yojson=1.7.0 faad=0.4.0 soundtouch=0.1.8 portaudio=0.2.1 pulseaudio=0.1.3 ladspa=0.1.5 dssi=0.1.2 camlimages=4.2.6 lo=0.1.2 gd=1.0a5 2019/12/14 18:26:41 [gstreamer.loader:3] Loaded GStreamer 1.16.1 0 2019/12/14 18:26:41 [dynamic.loader:3] Could not find dynamic module for fdkaac encoder. 2019/12/14 18:26:41 [decoder:3] Method "MAD" accepted "/home/per/ustiusti.mp3". 2019/12/14 18:26:41 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master. 2019/12/14 18:26:41 [frame:3] Frame size must be a multiple of 1764 ticks = 1764 audio samples = 1 video samples. 2019/12/14 18:26:41 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio samples = 1764 ticks. 2019/12/14 18:26:41 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video samples = 1764 ticks. 2019/12/14 18:26:41 [lang.deprecated:2] WARNING: "input.external" is deprecated! Please use "input.external.rawaudio". 2019/12/14 18:26:41 [decoder:3] Method "OGG" accepted "/home/per/Musik/prat/norn.ogg". 2019/12/14 18:26:42 [decoder:3] Method "MAD" accepted "/home/per/Musik/verket/Inst\195\164ngd/03-instangd-kott_ar_mord.mp3". 2019/12/14 18:26:42 [sandbox:3] Sandboxing disabled 2019/12/14 18:26:42 [video.converter:3] Using preferred video converter: gavl. 2019/12/14 18:26:42 [audio.converter:3] Using samplerate converter: libsamplerate. 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/bakfickan1.opus' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/bakfickan2.opus' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/bakfickan3.opus' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/bakfickan4.opus' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/maxine.opus' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/ak.opus' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/berghem.ogg' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/test.ogg' on port 8081 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/tset.ogg' on port 8082 2019/12/14 18:26:42 [harbor:3] Adding mountpoint '/mopidy.ogg' on port 8081 2019/12/14 18:26:42 [tomtetest:3] Starting process 2019/12/14 18:26:42 [single_11426:3] "/home/per/Musik/prat/norn.ogg" is static, resolving once for all... 2019/12/14 18:26:42 [haylist(dot)txt:3] Loading playlist... 2019/12/14 18:26:42 [haylist(dot)txt:3] No mime type specified, trying autodetection. 2019/12/14 18:26:42 [decoder:3] Method "AAC" accepted "audio/aacp". 2019/12/14 18:26:42 [http_11423:3] Decoding... 2019/12/14 18:26:42 [decoder:3] Method "MAD" accepted "audio/mpeg". 2019/12/14 18:26:42 [http_11420:3] Decoding... 2019/12/14 18:26:43 [http_11420:3] New metadata chunk: ? -- Music of the World. 2019/12/14 18:26:43 [http_11423:3] New metadata chunk: ? -- . 2019/12/14 18:26:44 [haylist(dot)txt:3] Playlist treated as format application/x-mpegURL 2019/12/14 18:26:44 [haylist(dot)txt:3] Successfully loaded a playlist of 15898 tracks. 2019/12/14 18:26:44 [single_11367:3] "/home/per/ustiusti.mp3" is static, resolving once for all... 2019/12/14 18:26:44 [single_11367:3] Prepared "/home/per/ustiusti.mp3" (RID 0). 2019/12/14 18:26:44 [mustafejen_opus:3] Connecting mount stream.opus for sou...@mustafejen.se... 2019/12/14 18:26:44 [mustafejen_opus:3] Connection setup was successful. 2019/12/14 18:26:44 [harbor:3] Adding mountpoint '/verketgive.ogg' on port 8082 2019/12/14 18:26:44 [playlist(dot)txt:3] Loading playlist... 2019/12/14 18:26:44 [clock.wallclock_main:3] Streaming loop starts, synchronized with wallclock. 2019/12/14 18:26:44 [fallback_11437:3] Switch to fallback_11434. 2019/12/14 18:26:44 [fallback_11434:3] Switch to single_11367. 2019/12/14 18:26:44 [playlist(dot)txt:3] No mime type specified, trying autodetection. 2019/12/14 18:26:44 [decoder:3] Method "MAD" accepted "/home/per/Musik/Jane's Addiction and Porno for Pyros - Discography (1987-2011)/1993 - Porno for Pyros - Porno for Pyros/05 Cursed Male.mp3". 2019/12/14 18:26:44 [playlist(dot)txt:3] Playlist treated as format application/x-mpegURL 2019/12/14 18:26:44 [playlist(dot)txt:3] Successfully loaded a playlist of 75 tracks. 2019/12/14 18:26:44 [single_11496:3] "/home/per/Musik/verket/Inst\195\164ngd/03-instangd-kott_ar_mord.mp3" is static, resolving once for all... 2019/12/14 18:26:44 [single_11496:3] Prepared "/home/per/Musik/verket/Inst\195\164ngd/03-instangd-kott_ar_mord.mp3" (RID 2). 2019/12/14 18:26:44 [Verket_mp3:3] Connecting mount verket for sou...@mustafejen.se... 2019/12/14 18:26:44 [mksafe:3] Switch to safe_blank. 2019/12/14 18:26:44 [Verket_mp3:3] Connection setup was successful. 2019/12/14 18:26:44 [Verket_opus:3] Connecting mount verket.opus for sou...@mustafejen.se... 2019/12/14 18:26:45 [Verket_opus:3] Connection setup was successful. 2019/12/14 18:26:45 [clock.wallclock_output.icecast_11576:3] Streaming loop starts, synchronized by active sources. 2019/12/14 18:26:45 [fallback_11523:3] Switch to fallback_11500. 2019/12/14 18:26:45 [fallback_11500:3] Switch to single_11496. 2019/12/14 18:26:45 [haylist(dot)txt:3] Prepared "/home/per/Musik/Jane's Addiction and Porno for Pyros - Discography (1987-2011)/1993 - Porno for Pyros - Porno for Pyros/05 Cursed Male.mp3" (RID 4). 2019/12/14 18:26:45 [fallback_11434:3] Switch to haylist(dot)txt with transition. 2019/12/14 18:26:45 [decoder:3] Method "MAD" accepted "/home/per/Musik/verket/The Collissions/02 Without Salvation.mp3". 2019/12/14 18:26:45 [decoder:3] Method "MAD" accepted "/home/per/Musik/Tom waits/Tom Waits - 2002 - Alice (192)/12 - I'm Still Here.mp3". 2019/12/14 18:26:45 [playlist(dot)txt:3] Prepared "/home/per/Musik/verket/The Collissions/02 Without Salvation.mp3" (RID 6). 2019/12/14 18:26:45 [fallback_11500:3] Switch to playlist(dot)txt with transition. 2019/12/14 18:26:45 [decoder:3] Method "MAD" accepted "/home/per/Musik/verket/Dick Cheney/03-dick_cheney-jag_gar_och_dor-cor.mp3". 2019/12/14 18:26:45 [clock.wallclock_main:2] We must catchup 1.23 seconds! 2019/12/14 18:26:46 [clock.wallclock_main:2] We must catchup 1.51 seconds! 2019/12/14 18:26:46 [mksafe:3] Switch to warp_prod_11492 with transition. 2019/12/14 18:26:47 [clock.wallclock_main:2] We must catchup 1.30 seconds! 2019/12/14 18:26:50 [clock.wallclock_main:2] We must catchup 0.31 seconds! 2019/12/14 18:26:52 [http_11423:3] Buffer overrun: Dropping 0.02s. Consider increasing the max buffer size! 2019/12/14 18:26:52 [http_11423:3] Buffer overrun: Dropping 0.04s. Consider increasing the max buffer After the buffer overruns, when I try to connect to "give" in the script, I get this in the log file: 2019/12/14 18:33:23 [fallback_11523:3] Switch to amplify_11521 with transition. 2019/12/14 18:33:24 [fallback_11523:3] Switch to fallback_11500 with forgetful transition. 2019/12/14 18:33:25 [fallback_11523:3] Switch to amplify_11521 with transition. 2019/12/14 18:33:26 [fallback_11523:3] Switch to fallback_11500 with forgetful transition. 2019/12/14 18:33:27 [fallback_11523:3] Switch to amplify_11521 with transition. 2019/12/14 18:33:27 [fallback_11523:3] Switch to fallback_11500 with forgetful transition. 2019/12/14 18:33:28 [fallback_11523:3] Switch to amplify_11521 with transition. 2019/12/14 18:33:29 [fallback_11523:3] Switch to fallback_11500 with forgetful transition. Regards, Per Gunnarsson _______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users