Transcoding icecast streams from stereo mp3 to mono mp3, stereo aac+v2, stereo ogg with liquidsoap


url = "http://ADDRESS:80/radio.mp3"
input = mksafe(input.http(url))

set("log.file.path","/var/log/liquidsoap/radio.log")

output.icecast(
%vorbis(samplerate=44100, channels=2, quality=0.9),
mount="/radio.ogg",
name="RADIO",
url="http://YOURSITE",
description="YOURDESC",
genre="YOURGENRE",
host="ADDRESS", port=PORT, password="PASSWORD",
input)

output.icecast(
# %aac(channels=2, samplerate=44100, bitrate=128, adts=true),
# %aacplus(channels=2, samplerate=44100, bitrate=64),
%fdkaac(channels=2, samplerate=44100, aot="mpeg2_he_aac_v2", transmux="adts", sbr_mode=false, bitrate=48),
mount="/radio.aac",
name="RADIO",
url="http://YOURSITE",
description="YOURDESC",
genre="YOURGENRE",
host="ADDRESS", port=PORT, password="PASSWORD",
input)

output.icecast(
%mp3(samplerate=44100, internal_quality=2, bitrate=64, stereo=false),
mount="/radio-mono.mp3",
name="RADIO",
url="http://YOURSITE",
description="YOURDESC",
genre="YOURGENRE",
host="ADDRESS", port=PORT, password="PASSWORD",
mean(input))

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s