1
0
mirror of https://github.com/algora-io/tv.git synced 2024-11-16 00:58:59 +02:00

update hls mode and segment duration

This commit is contained in:
zafer 2024-06-04 17:25:20 +03:00
parent f767b8cb69
commit e4edb99854

View File

@ -15,6 +15,7 @@ defmodule Algora.Pipeline do
#
child(:sink, %Membrane.HTTPAdaptiveStream.SinkBin{
hls_mode: :muxed_av,
mode: :live,
manifest_module: Membrane.HTTPAdaptiveStream.HLS,
target_window_duration: :infinity,
@ -36,7 +37,7 @@ defmodule Algora.Pipeline do
get_child(:tee_audio)
|> via_out(:master)
|> via_in(Pad.ref(:input, :audio),
options: [encoding: :AAC, segment_duration: Membrane.Time.seconds(2)]
options: [encoding: :AAC, segment_duration: Membrane.Time.seconds(4)]
)
|> get_child(:sink),
@ -44,7 +45,7 @@ defmodule Algora.Pipeline do
get_child(:tee_video)
|> via_out(:master)
|> via_in(Pad.ref(:input, :video),
options: [encoding: :H264, segment_duration: Membrane.Time.seconds(2)]
options: [encoding: :H264, segment_duration: Membrane.Time.seconds(4)]
)
|> get_child(:sink)
]