I have a live input like this:
# A live source
live = input.harbor("radio",port=8088,password="hackme")
All works fine (it streams a playlist + a live DJ when he is presented to the
SHOUTcast server). But when I try to output the live source to the file, I have
"[stderr:3] strange error flushing buffer".
I use Liquidsoap 1.1.1 on Ubuntu 14.04 server (Liquidsoap was installed from
Ubuntu repository, apt-get install liquidsoap, I have not made any changes)
>From the .liq:
# Write live source to the file when connects
output.file(%mp3, "/var/radio/records/myradio-%d-%m-%Y_%H-%M-%S.mp3", live,
fallible=true)
>From the .log:
2015/03/13 14:59:54 [harbor:3] Adding mountpoint '/radio' on port 8088
2015/03/13 14:59:54 [music:3] Loading playlist...
2015/03/13 14:59:54 [music:3] Playlist is a directory.
2015/03/13 14:59:54 [music:3] Successfully loaded a playlist of 3 tracks.
2015/03/13 14:59:54 [single_4757:3] Prepared "/var/radio/security/music.mp3"
(RID 0).
2015/03/13 14:59:54 [output(dot)shoutcast:3] Connecting mount / for
source@localhost...
2015/03/13 14:59:54 [decoder:3] Method "MAD" accepted "/var/radio/music/2.mp3".
2015/03/13 14:59:54 [output(dot)shoutcast:3] Connection setup was successful.
2015/03/13 14:59:54 [threads:3] Created thread "wallclock_main" (1 total).
2015/03/13 14:59:54 [clock.wallclock_main:3] Streaming loop starts,
synchronized with wallclock.
2015/03/13 14:59:54 [fallback_4763:3] Switch to single_4757.
2015/03/13 14:59:54 [music:3] Prepared "/var/radio/music/2.mp3" (RID 2).
2015/03/13 14:59:54 [fallback_4763:3] Switch to music with transition.
2015/03/13 14:59:54 [output(dot)shoutcast:3] Metadata update may have failed
with error: bad answer
2015/03/13 14:59:54 [/var/radio/records/bezdelniki-%d-%m-%Y_%H-%M-%S(dot)mp3:3]
Source failed (no more tracks) stopping output...
2015/03/13 14:59:54 [stderr:3] strange error flushing buffer ...
2015/03/13 14:59:54 [stderr:3] strange error flushing buffer ...
2015/03/13 14:59:54 [output(dot)shoutcast:3] Metadata update may have failed
with error: bad answer
What can it be? How to output a live source (input.harbor) to an mp3 file
correctly?
Thank you
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users