I have a liquidsoap script, it work with stereotool. I use a selfmade radio automation without metadata. The metadata is in files /tmp/artiest.txt and /tmp/titel.txt The script work and by starting, there is metadata. But... I don't refresh by a new track. What is wrong ?
#!/usr/bin/liquidsoap set("log.file.path","/tmp/basic-radio.log") set("frame.size",940) # output.file(%wav(stereo=true,channels=2,samplesize=16,header=true,duration=1.), "/tmp/stereo_tool_in.pcm", mksafe(input.alsa())) broadcast=mksafe(input.external("dd if=/tmp/stereo_tool_out.pcm 2>/dev/null")) # This function is called when # a new metadata block is passed in # the stream. def apply_metadata(m) = title = list.hd(get_process_lines("cat /tmp/titel.txt")) artist = list.hd(get_process_lines("cat /tmp/artiest.txt")) print("Now playing: #{title} by #{artist}") end broadcast = on_metadata(apply_metadata,broadcast) output.shoutcast( %mp3(bitrate = 96), host = "xxxxxx", port = 8007, password = "xxxxxx", genre = "Easy/Pop/Rock", name = "LinuxRadio.Tools V1807", public=true,broadcast) output.file(%mp3, reopen_when={0h0m0s}, "/home/lrt/opname/opname-%Y-%m-%d.mp3",broadcast) Radio Automation (LinuxRadio.Tools) and Stereotool script: #!/bin/bash cd /home/lrt && /opt/refresh & mkfifo /tmp/stereo_tool_in.pcm && mkfifo /tmp/stereo_tool_out.pcm && sleep 10 && /opt/stereo_tool_cmd_64 /tmp/stereo_tool_in.pcm /tmp/stereo_tool_out.pcm -s /opt/settings.sts
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users