1
0
mirror of https://github.com/algora-io/tv.git synced 2024-11-26 01:00:20 +02:00

update stream config

This commit is contained in:
zafer 2024-03-02 14:47:14 +03:00
parent 0a43ac61a6
commit fdf3d5adf0

View File

@ -13,9 +13,10 @@ defmodule Algora.Pipeline do
})
|> via_out(:audio)
|> via_in(Pad.ref(:input, :audio),
options: [encoding: :AAC, segment_duration: Membrane.Time.seconds(4)]
options: [encoding: :AAC, segment_duration: Membrane.Time.seconds(1)]
)
|> child(:sink, %Membrane.HTTPAdaptiveStream.SinkBin{
mode: :live,
manifest_module: Membrane.HTTPAdaptiveStream.HLS,
target_window_duration: :infinity,
persist?: false,
@ -24,7 +25,7 @@ defmodule Algora.Pipeline do
get_child(:src)
|> via_out(:video)
|> via_in(Pad.ref(:input, :video),
options: [encoding: :H264, segment_duration: Membrane.Time.seconds(4)]
options: [encoding: :H264, segment_duration: Membrane.Time.seconds(1)]
)
|> get_child(:sink)
]