Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new metadata for segment duration. #34

Merged
merged 2 commits into from
Sep 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/test-liquidsoap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
name: liquidsoap syntax (transcoder stereo)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
image: savonet/liquidsoap:rolling-release-v2.3.x # TODO: Fix version after release/merge.
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -37,7 +37,7 @@ jobs:
name: liquidsoap syntax (transcoder surround)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
image: savonet/liquidsoap:rolling-release-v2.3.x
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -47,7 +47,7 @@ jobs:
name: liquidsoap syntax (streamer stereo)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
image: savonet/liquidsoap:rolling-release-v2.3.x
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand All @@ -57,7 +57,7 @@ jobs:
name: liquidsoap syntax (streamer surround)
runs-on: ubuntu-latest
container:
image: savonet/liquidsoap:v2.2.5@sha256:2b3ab71509dc48f47f0f99b98316090081eeaf37bea3c96a3edaa4a55ec57f41
image: savonet/liquidsoap:rolling-release-v2.3.x
options: --user root
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
Expand Down
4 changes: 2 additions & 2 deletions scripts/transcoder/outputs/hls.liq
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ end

## HLS segments

def segment_name(~position, ~extname=_, stream_name) =
def segment_name(metadata) =
let {position, duration, extname, stream_name} = metadata
segment_timestamp = int_of_float(time())
duration = int_of_float(4.0)

# Add the codec to the segment name because it's expected by segment-forwarder
segment_prefix = string.replace(pattern="_", fun (_) -> "_aac_", stream_name)
Expand Down