mirror of
https://github.com/algora-io/tv.git
synced 2024-11-26 01:00:20 +02:00
update hls mode and segment duration
This commit is contained in:
parent
f767b8cb69
commit
e4edb99854
@ -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)
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user