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

fix(HLS): Fix audio grouping by codec #185

Merged
merged 1 commit into from
Nov 4, 2024
Merged
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
5 changes: 4 additions & 1 deletion streamer/packager_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from . import node_base
from . import pipeline_configuration

from streamer.input_configuration import MediaType
from streamer.output_stream import OutputStream
from streamer.pipeline_configuration import EncryptionMode, PipelineConfig
from streamer.util import is_url
Expand Down Expand Up @@ -126,7 +127,6 @@ def start(self) -> None:
stdout=stdout)

def _setup_stream(self, stream: OutputStream) -> str:

dict = {
'in': stream.ipc_pipe.read_end(),
'stream': stream.type.value,
Expand All @@ -135,6 +135,9 @@ def _setup_stream(self, stream: OutputStream) -> str:
if stream.input.skip_encryption:
dict['skip_encryption'] = str(stream.input.skip_encryption)

if stream.type == MediaType.AUDIO:
dict['hls_group_id'] = str(stream.codec.value)

if stream.input.drm_label:
dict['drm_label'] = stream.input.drm_label

Expand Down