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

Error "SRT_REJ_UNSECURE" when using SRT protocol for livestream #1697

Open
cryinrain69 opened this issue Jan 7, 2025 · 9 comments
Open

Error "SRT_REJ_UNSECURE" when using SRT protocol for livestream #1697

cryinrain69 opened this issue Jan 7, 2025 · 9 comments
Assignees
Labels

Comments

@cryinrain69
Copy link

Describe the bug

I am using SrtCamera2 + OpenGlView.
If on srt server no passphrase set, it works fine.
But when on srt server, using passphrase, app cannot livestream with reason "Error configure stream, SRT_REJ_UNSECURE" in onConnectionFailed callback.
In code I have set passphrase as follows:

srtCamera2.streamClient.setPassphrase("1234567890", EncryptionType.AES192)

I have tried changing EncryptionType to NONE, AES128, AES192, AES256 but still get the same error (on server is using keylength = 24).

If I use the CameraFi Live app (on Play Store) and set the SRT parameters as shown in the image below, the livestream is still normal.
Please check help me.

image

Smartphone (please complete the following information):
Library version [2.5.5]
Device: [Samsung Galaxy S22 Ultra]
OS: [Android 14]
Class used: [RtmpCamera2 + OpenGlView]

@pedroSG94
Copy link
Owner

Hello,

Can you tell me your server name and version to reproduce your case? I only tested this feature with MediaMTX server.

@cryinrain69
Copy link
Author

Hello,

Can you tell me your server name and version to reproduce your case? I only tested this feature with MediaMTX server.

Hi.
Sorry for the late reply.
I am running with vMix software.

@pedroSG94
Copy link
Owner

Hello,

vMix is used to send video/audio to the server, I can't see a media server of vMix?
Can you share a link to install and download?

@cryinrain69
Copy link
Author

Hello,

vMix is used to send video/audio to the server, I can't see a media server of vMix? Can you share a link to install and download?

Hi.
You can refer here:
vmix.com
https://www.vmix.com/help23/index.htm?SRT.html
https://www.vmix.com/help23/index.htm?SRTInput.html

@pedroSG94
Copy link
Owner

But this is the pusher side. I want the server side to configure it and reproduce the error using RootEncoder with the same enviroment

@cryinrain69
Copy link
Author

image

@cryinrain69
Copy link
Author

vMix is ​​also a media server.

@pedroSG94
Copy link
Owner

Ok, I see. I will check it.
Are you able to work using ffmpeg or other pusher? do you have command example?

@pedroSG94 pedroSG94 self-assigned this Jan 10, 2025
@pedroSG94 pedroSG94 added the bug label Jan 10, 2025
@cryinrain69
Copy link
Author

Ok, I see. I will check it. Are you able to work using ffmpeg or other pusher? do you have command example?

No.
This is already supported by the vMix software, I just need to set up the parameters and use it.
Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants