Hello,

I have a very simple script that tries to decode a live HLS video stream,
and output only the audio back to Icecast.

#!/usr/local/bin/liquidsoap -v

set("log.file.path","/home/liquidsoap/logs/ed.log")
set("log.stdout",true)

input = drop_video(gstreamer.hls("
http://public.infozen.cshls.lldns.net/infozen/public/public/public_1000.m3u8
"))

output.icecast(
%fdkaac(samplerate=44100, bitrate=32),
mount="/test.aac",
host="my.server", port=80, password="password",
mksafe(input))

output.icecast(
%mp3(samplerate=44100, bitrate=32),
mount="/test.mp3",
host="my.server", port=80, password="password",
mksafe(input))

The output plays ok for a few seconds, but then it terminates abruptly.

The log output is as follows:

2015/02/17 18:17:03 >>> LOG START
2015/02/17 18:17:03 [protocols.external:3] Found "/usr/bin/wget".
2015/02/17 18:17:03 [main:3] Liquidsoap 1.1.1
2015/02/17 18:17:03 [main:3] Using: graphics=[distributed with Ocaml]
pcre=7.0.4 dtools=0.3.1 duppy=0.5.1 duppy.syntax=0.5.1 cry=0.2.2 mm=0.2.1
xmlplaylist=0.1.3 lastfm=0.3.0 ogg=0.4.5 vorbis=0.6.1 opus=0.1.0
speex=0.2.0 mad=0.4.4 flac=0.1.1 flac.ogg=0.1.1 dynlink=[distributed with
Ocaml] lame=0.3.2 shine=0.1.1 gstreamer=0.2.0 frei0r=0.1.0 voaacenc=0.1.0
fdkaac=0.1.0 theora=0.3.0 schroedinger=0.1.0 gavl=0.1.5 ffmpeg=0.1.0
bjack=0.1.4 alsa=0.2.1 ao=0.2.0 samplerate=0.1.2 taglib=0.3.1 magic=0.7.3
camomile=0.8.4 inotify=1.0 faad=0.3.2 soundtouch=0.1.7 portaudio=0.2.0
pulseaudio=0.1.2 ladspa=0.1.4 dssi=0.1.1 sdl=0.9.1 camlimages=4.0.0
lo=0.1.0 yojson=1.1.8 gd=1.0a5
2015/02/17 18:17:03 [dynamic.loader:3] Could not find dynamic module for
aacplus encoder.
2015/02/17 18:17:03 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz
master.
2015/02/17 18:17:03 [frame:3] Frame size must be a multiple of 1764 ticks =
1764 audio samples = 1 video samples.
2015/02/17 18:17:03 [frame:3] Targetting 'frame.duration': 0.04s = 1764
audio samples = 1764 ticks.
2015/02/17 18:17:03 [frame:3] Frames last 0.04s = 1764 audio samples = 1
video samples = 1764 ticks.
2015/02/17 18:17:03 [threads:3] Created thread "generic queue #1".
2015/02/17 18:17:03 [threads:3] Created thread "generic queue #2".
2015/02/17 18:17:03 [/test(dot)aac:3] Connecting mount /test.aac for
[email protected]...
2015/02/17 18:17:04 [/test(dot)aac:3] Connection setup was successful.
2015/02/17 18:17:04 [/test(dot)mp3:3] Connecting mount /test.mp3 for
[email protected]...
2015/02/17 18:17:04 [/test(dot)mp3:3] Connection setup was successful.
2015/02/17 18:17:04 [threads:3] Created thread "wallclock_main" (1 total).
2015/02/17 18:17:04 [clock.wallclock_main:3] Streaming loop starts,
synchronized with wallclock.
2015/02/17 18:17:04 [mksafe:3] Switch to safe_blank.
2015/02/17 18:17:04 [mksafe:3] Switch to safe_blank.
2015/02/17 18:17:05 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:05 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:20 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:20 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:20 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:20 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:22 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:22 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:23 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:23 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:23 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:23 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:23 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:23 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:25 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:25 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:26 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:26 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:28 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:28 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:29 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:29 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:31 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:31 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:32 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:32 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:32 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:33 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:34 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:34 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:35 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:35 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:37 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:37 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:39 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:39 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:40 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:40 [mksafe:3] Switch to safe_blank with transition.
2015/02/17 18:17:41 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:41 [mksafe:3] Switch to drop_video_6155 with transition.
2015/02/17 18:17:41 [input(dot)gstreamer(dot)audio_video_6154:3] Incorrect
stream type!
2015/02/17 18:17:41 [clock.wallclock_main:2] Source /test(dot)mp3 failed
while streaming: Generator.Incorrect_stream_type!
2015/02/17 18:17:41 [clock.wallclock_main:3] Raised at file "list.ml", line
154, characters 16-25
2015/02/17 18:17:41 [/test(dot)mp3:3] Closing connection...
2015/02/17 18:17:41 [input(dot)gstreamer(dot)audio_video_6154:3] Incorrect
stream type!
2015/02/17 18:17:41 [clock.wallclock_main:2] Source /test(dot)aac failed
while streaming: Generator.Incorrect_stream_type!
2015/02/17 18:17:41 [/test(dot)aac:3] Closing connection...
2015/02/17 18:17:42 [clock.wallclock_main:3] Streaming loop stopped.
2015/02/17 18:17:42 [main:3] Shutdown started!
2015/02/17 18:17:42 [main:3] Waiting for threads to terminate...
2015/02/17 18:17:42 [threads:3] Thread "wallclock_main" terminated (0
remaining).
2015/02/17 18:17:42 [main:3] Cleaning downloaded files...
2015/02/17 18:17:42 [main:3] Freeing memory...
2015/02/17 18:17:42 >>> LOG END

Thanks in advance.
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to