From 85a063fd77a611eae3f8e9cc01e67d9531af8e03 Mon Sep 17 00:00:00 2001 From: David Colburn Date: Mon, 17 Jun 2024 20:21:41 -0700 Subject: [PATCH] drop-backwards on input-selector --- pkg/pipeline/builder/video.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/pipeline/builder/video.go b/pkg/pipeline/builder/video.go index 0272399f..7bfb74b8 100644 --- a/pkg/pipeline/builder/video.go +++ b/pkg/pipeline/builder/video.go @@ -498,6 +498,9 @@ func (b *VideoBin) addSelector() error { if err != nil { return errors.ErrGstPipelineError(err) } + if err = inputSelector.SetProperty("drop-backwards", true); err != nil { + return errors.ErrGstPipelineError(err) + } videoRate, err := gst.NewElement("videorate") if err != nil { @@ -576,7 +579,7 @@ func (b *VideoBin) addEncoder() error { return errors.ErrGstPipelineError(err) } if err = caps.SetProperty("caps", gst.NewCapsFromString(fmt.Sprintf( - "video/x-h264,profile=%s,multiview-mode=mono", + "video/x-h264,profile=%s", b.conf.VideoProfile, ))); err != nil { return errors.ErrGstPipelineError(err)