Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
engine-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
engine-core
Commits
4e9895b0
Verified
Commit
4e9895b0
authored
11 months ago
by
Ole Binder
Browse files
Options
Downloads
Patches
Plain Diff
Chore: change default encoding for icecast
parent
2eceae99
No related branches found
No related tags found
1 merge request
!17
Yaml configuration file
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/library.liq
+26
-22
26 additions, 22 deletions
src/library.liq
with
26 additions
and
22 deletions
src/library.liq
+
26
−
22
View file @
4e9895b0
...
@@ -75,35 +75,38 @@ def stream_to_icecast(
...
@@ -75,35 +75,38 @@ def stream_to_icecast(
# TODO Refactor all outgoing stream formats this way
# TODO Refactor all outgoing stream formats this way
let stereo = (int_of_string(channels) >= 2)
let stereo = (int_of_string(channels) >= 2)
let format = %mp3(bitrate = 128, stereo = true)
let format = %vorbis(stereo = true)
# let format = %mp3(bitrate = 128, stereo = true)
# FIXME: the format is never overwritten, it is alwas mp3
if encoding == "mp3" then%include "outgoing_streams/mp3.liq" end
if encoding == "mp3" then%include "outgoing_streams/mp3.liq" end
if encoding == "ogg" then%include "outgoing_streams/ogg.liq" end
if encoding == "ogg" then%include "outgoing_streams/ogg.liq" end
log(
log(
"Icecast output format: #{encoding} #{bitrate}"
"Icecast output format: #{encoding} #{bitrate}
- #{format}
"
)
)
# Liquidsoap cannot handle one output definition for mono and stereo
# Liquidsoap cannot handle one output definition for mono and stereo
# FIXME should be working since Liquidsoap 2
# FIXME should be working since Liquidsoap 2
output_icecast_mono =
#
output_icecast_mono =
output.icecast(
#
output.icecast(
id=id,
#
id=id,
host=host,
#
host=host,
port=port,
#
port=port,
password=pass,
#
password=pass,
mount=mount_point,
#
mount=mount_point,
fallible=true,
#
fallible=true,
url=url,
#
url=url,
description=description,
#
description=description,
name=name,
#
name=name,
genre=genre,
#
genre=genre,
user=user_ref(),
#
user=user_ref(),
on_error=on_error,
#
on_error=on_error,
on_connect=on_connect,
#
on_connect=on_connect,
send_icy_metadata=true,
#
send_icy_metadata=true,
format,
#
format,
source()
#
source()
)
#
)
output_icecast_stereo =
output_icecast_stereo =
output.icecast(
output.icecast(
id=id,
id=id,
...
@@ -123,7 +126,8 @@ def stream_to_icecast(
...
@@ -123,7 +126,8 @@ def stream_to_icecast(
format,
format,
source()
source()
)
)
ignore(output_icecast_mono)
# ignore(output_icecast_mono)
ignore(output_icecast_stereo)
ignore(output_icecast_stereo)
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment