Stereo Tool
https://forums.stereotool.com/

Bijdrage Linux: liquidsoap icm stereotool (command line versie)
https://forums.stereotool.com/viewtopic.php?f=18&t=33454
Page 1 of 1

Author:  StephanVerrips [ Fri Jan 13, 2023 5:27 pm ]
Post subject:  Bijdrage Linux: liquidsoap icm stereotool (command line versie)

Ik draai al een tijd met liquidsoap icm stereotool. Ik weet dat er soms vragen komen hoe je die twee samen kunt laten werken. in het verleden heb ik die vraag ook gehad en ben na een aantal weken op het juiste spoor gekomen. Elders op dit forum staat die tijd nog. Maar nu de script al een jaar of 2 probleemloos werkt, wil ik het nogmaals delen en denk dat ik vooral linux mensen helpt die liquidsoap willen draaien icm stereotool.

Script ( streaming.liq ) die momenteel draait op https://mixcloud.com/live/linuxradio en je horen kunt (icm. LinuxRadio.Tools V2301 radio automation) is:

#!/usr/share/liquidsoap/bin/liquidsoap

%include "/usr/share/liquidsoap/libs/utils.liq"

set("log.file.path","/tmp/stream.log")
set("frame.audio.size", 2048)

# Lees audiokaart ingang en stuur deze door naar de processing
input = input.pulseaudio(clock_safe=false)

# Stereotool verzorgt de processing
radio = normalize(pipe(process='/usr/bin/stereo_tool_cmd_64 - - -s /opt/stephanverrips.sts -q -k "<licentie key>"', input))

# Icecast2 Web Live Streams STEREO !
output.icecast(
%mp3(bitrate=192, stereo=true),
host = "mscp2.live-streams.nl",
port = 8240,
password = "ga ik niet vertellen !",
mount = "/live",
icy_metadata="true",
genre = "Pop, Rock",
name = "LinuxRadio.Tools V2301",
url = "https://annet.linuxradio.tools",
description = "LinuxRadio.Tools V2301",
mksafe(radio)
)

# Icecast2 Mobiel Live Streams STEREO !
output.icecast(
%opus(bitrate=32, samplerate=24000, stereo),
host = "mscp2.live-streams.nl",
port = 8240,
password = "ga ik niet vertellen !",
mount = "/mobile",
icy_metadata="true",
genre = "Pop, Rock",
name = "LinuxRadio.Tools V2301",
url = "https://annet.linuxradio.tools",
description = "LinuxRadio.Tools V2301",
mksafe(radio)
)

# Sla een opname op om te kunnen downloaden
output.file(%opus(bitrate=64, stereo, samplerate=48000), "/home/lrt/opname/uitgezonden-%H.opus", reopen_when={0m0s},mksafe(radio))

Doe je voordeel ermee. Tussen -k "<licentie key>" moet natuurlijk de licentiekey, de mijne heb ik weggehaald ! Ik ben weinig actief op dit forum, maar ja..... bij mij werkt alles ook gewoon !

Author:  RMZW [ Tue Mar 21, 2023 7:57 pm ]
Post subject:  Re: Bijdrage Linux: liquidsoap icm stereotool (command line versie)

Leuke update: in Liquidsoap 2.2.0 zit blijkbaar native ondersteuning voor Stereo Tool! Er is al een beta uit, maar ik heb er nog niet mee getest.

Author:  rgriep [ Fri Jun 16, 2023 6:37 pm ]
Post subject:  Re: Bijdrage Linux: liquidsoap icm stereotool (command line versie)

Ik ben nu aan het testen met LiquidSoap 2.2.0 in combinatie met Stereo Tool en werkt perfect. Goede vooruitgang bij LiquidSoap.

Author:  StephanVerrips [ Tue Jun 20, 2023 11:01 pm ]
Post subject:  Re: Bijdrage Linux: liquidsoap icm stereotool (command line versie)

rgriep,

Kun je uitleggen hoe je dat gedaan hebt ? Ik gebruik nog de bovenstaande script die ik gepost had.

EDIT: Heb het al gevonden ! Ik merk zelf geen problemen, dus hou ik de bestaande script in stand, maar hier vindt je wat ik vroeg:

https://github.com/savonet/liquidsoap/discussions/3088

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/