Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Image output in egress #506

Merged
merged 39 commits into from
Oct 5, 2023
Merged

Support for Image output in egress #506

merged 39 commits into from
Oct 5, 2023

Conversation

biglittlebigben
Copy link
Contributor

This adds preliminary support for generating images at regular interval for a session in egress. This is still mostly untested with only basic integration test support.

@@ -33,5 +34,9 @@ func BuildWebsocketBin(pipeline *gstreamer.Pipeline, appSinkCallbacks *app.SinkC
return nil, err
}

b.SetGetSrcPad(func(name string) *gst.Pad {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably isn't needed since the sink will only have one template

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

}

var w, h uint32
for _, t := range rp.Tracks() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if the participant publishes video late?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, it will default to the video encoding settings (which themselves default to 1080p). I just added a small fix to make sure this is true.

Changing the behavior to start the image output only when a video track joins would be better, but I do not have any way to add the image output on the running pipeline yet. This will come when I implement "UpdateOutputs".

@frostbyte73 frostbyte73 merged commit 0bb2568 into main Oct 5, 2023
1 check passed
@frostbyte73 frostbyte73 deleted the benjamin/image_output branch October 5, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants