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 rtsp decapsulator #166

Merged
merged 8 commits into from
May 9, 2024
Merged

Improve rtsp decapsulator #166

merged 8 commits into from
May 9, 2024

Conversation

Noarkhh
Copy link
Contributor

@Noarkhh Noarkhh commented Apr 15, 2024

  • Start forwarding RTCP packets
  • Start forwarding packets from all interleaved channels, since they will be differentiated with ssrc
  • Handle cases where an interleaved RTSP message is split between multiple buffers or is succeded by a RTP packet in a buffer, where previously these packets would be dropped

@Noarkhh Noarkhh force-pushed the improve-rtsp-decapsulator branch from be30ba2 to a0b4ac4 Compare April 25, 2024 10:16
README.md Outdated
@@ -15,7 +15,7 @@ The package can be installed by adding `membrane_rtp_plugin` to your list of dep
```elixir
def deps do
[
{:membrane_rtp_plugin, "~> 0.27.1"},
{:membrane_rtp_plugin, "~> 0.28.0"},
Copy link
Member

Choose a reason for hiding this comment

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

I would bump the version and release after we move the decapsulator to the rtsp plugin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I wasn't planning on releasing, but the bump can be done when actually moving the element.

lib/membrane/rtp/rtsp_decapsulator.ex Show resolved Hide resolved
rest_length = actual_length - expected_length
rtsp_message_length = byte_size(rtsp_message_start) - rest_length

<<rtsp_message::binary-size(rtsp_message_length)-unit(8), rest::binary>> =
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<<rtsp_message::binary-size(rtsp_message_length)-unit(8), rest::binary>> =
<<rtsp_message::binary-size(rtsp_message_length), rest::binary>> =

@Noarkhh Noarkhh merged commit 549c65c into master May 9, 2024
3 checks passed
@Noarkhh Noarkhh deleted the improve-rtsp-decapsulator branch May 9, 2024 13:59
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