Skip to content

Commit

Permalink
fix(formats): use read codec name for aac formats, rename files, fix …
Browse files Browse the repository at this point in the history
…profiles
  • Loading branch information
uZer committed Mar 12, 2024
1 parent 853bb45 commit 0fd3390
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion example/liquidsoap/myradiosurround.liq
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ radio_name = "myradiosurround"

# Radio settings
formats_picker = fun (formats) -> formats.surround
aac_encoder = "fdkaac"
aac_encoder = "libfdk_aac"
harbor_http_port = 7010
prometheus_server_port = 9011
liquidsoap_log_level = 3
Expand Down
10 changes: 5 additions & 5 deletions scripts/transcoder/30-formats.liq
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ let formats = {
}
}

%include "formats/hls-aac.liq"
%include "formats/hls-fdkaac.liq"
%include "formats/icecast-aac.liq"
%include "formats/icecast-fdkaac.liq"
%include "formats/icecast-mp3.liq"
%include "formats/hls.aac.liq"
%include "formats/hls.libfdk_aac.liq"
%include "formats/icecast.aac.liq"
%include "formats/icecast.libfdk_aac.liq"
%include "formats/icecast.mp3.liq"

formats = formats_picker(formats)
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ let formats.surround.hls.aac = [
channel_layout=5.1,
b="192k",
samplerate=48000,
profile="aac_he"
profile="aac_low"
))
),
("insane",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let formats.stereo.hls.fdkaac = [
let formats.stereo.hls.libfdk_aac = [
("lofi",
%ffmpeg(
format="mpegts",
Expand Down Expand Up @@ -49,7 +49,7 @@ let formats.stereo.hls.fdkaac = [
)
]

let formats.surround.hls.fdkaac = [
let formats.surround.hls.libfdk_aac = [
("hifi",
%ffmpeg(
format="mpegts",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let formats.stereo.icecast.fdkaac = {
let formats.stereo.icecast.libfdk_aac = {
sub_formats = [
("lofi",
%ffmpeg(
Expand Down Expand Up @@ -56,7 +56,7 @@ let formats.stereo.icecast.fdkaac = {
file_extension = ".aac"
}

let formats.surround.icecast.fdkaac = {
let formats.surround.icecast.libfdk_aac = {
sub_formats = [
("hifi",
%ffmpeg(
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions scripts/transcoder/outputs/hls.liq
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# HLS output

available_hls_formats =
if aac_encoder == "libfdkaac" then
formats.hls.fdkaac
if aac_encoder == "libfdk_aac" then
formats.hls.libfdk_aac
else
formats.hls.aac
end
Expand Down
4 changes: 2 additions & 2 deletions scripts/transcoder/outputs/icecast.liq
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Icecast output
icecast_aac_encoder =
if aac_encoder == "libfdkaac" then
formats.icecast.fdkaac
if aac_encoder == "libfdk_aac" then
formats.icecast.libfdk_aac
else
formats.icecast.aac
end
Expand Down

0 comments on commit 0fd3390

Please sign in to comment.