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

Improve Redirect to WebRTC compatibility #459

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

joaoantoniocardoso
Copy link
Collaborator

Since WebRTC only works with a narrow option of stream formats, we are now re-encoding the RTP packages for Redirect streams, using the same strategy as for the Onvif sources.

An example is the stream from the Swell Pro. It's a 720p H264 stream but with an RTP incompatible with WebRTC.


let pipeline = gst::parse::launch(&description)
.expect("Failed to create pipeline")
.downcast::<gst::Pipeline>()
.expect("Pipeline is not a valid gst::Pipeline");

let typefinder = pipeline.by_name("typefinder")?;

let (tx, rx) = mpsc::channel(10);
Copy link
Member

Choose a reason for hiding this comment

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

A oneshot makes more sense here, no ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That was my first try, but oneshot requires T to impl copy :(

@patrickelectric patrickelectric merged commit cc774b3 into mavlink:master Dec 19, 2024
7 checks passed
@joaoantoniocardoso joaoantoniocardoso deleted the improve_redirect branch December 19, 2024 14:17
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