feat(sei): add sei config

This commit is contained in:
zarazaex69
2026-05-07 01:08:35 +03:00
parent 9ca0e8f57f
commit e4212b346b
14 changed files with 356 additions and 94 deletions

View File

@@ -80,6 +80,10 @@ func Run(
videoTileRS int,
vp8FPS int,
vp8BatchSize int,
seiFPS int,
seiBatchSize int,
seiFragmentSize int,
seiAckTimeoutMS int,
) error {
runCtx, cancel := context.WithCancel(ctx)
defer cancel()
@@ -103,6 +107,7 @@ func Run(
videoWidth, videoHeight, videoFPS, videoBitrate, videoHW,
videoQRSize, videoQRRecovery, videoCodec, videoTileModule, videoTileRS,
vp8FPS, vp8BatchSize,
seiFPS, seiBatchSize, seiFragmentSize, seiAckTimeoutMS,
); err != nil {
return err
}
@@ -175,6 +180,7 @@ func (s *Server) bringUpLink(
videoCodec string,
videoTileModule, videoTileRS int,
vp8FPS, vp8BatchSize int,
seiFPS, seiBatchSize, seiFragmentSize, seiAckTimeoutMS int,
) error {
ln, err := link.New(ctx, linkName, link.Config{
Transport: transportName,
@@ -198,6 +204,10 @@ func (s *Server) bringUpLink(
VideoTileRS: videoTileRS,
VP8FPS: vp8FPS,
VP8BatchSize: vp8BatchSize,
SEIFPS: seiFPS,
SEIBatchSize: seiBatchSize,
SEIFragmentSize: seiFragmentSize,
SEIAckTimeoutMS: seiAckTimeoutMS,
})
if err != nil {
return fmt.Errorf("failed to create link: %w", err)