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

Audio not sending shortly after beginning #1286

Open
mkrn opened this issue Sep 18, 2023 · 6 comments
Open

Audio not sending shortly after beginning #1286

mkrn opened this issue Sep 18, 2023 · 6 comments

Comments

@mkrn
Copy link
Contributor

mkrn commented Sep 18, 2023

Describe the bug
We've noticed that on some streams audio stops sending shortly after start or not sending at all:
http://bit.ly/3PLdgZG

Here's the chart of audio and video packets in the received video on RTMP server:
image

To Reproduce
Steps to reproduce the behavior:
This only happens in small % of streams

Expected behavior
Audio and video be sent continiously

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Samsung Galaxy S20 5G
Samsung Galaxy S23 Ultra

Additional context
Probably non-ideal connection on 4G with interruptions.

@mkrn
Copy link
Contributor Author

mkrn commented Sep 18, 2023

Forgot to mention this was com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.2.4
If the problem is fixed in 2.2.8 feel free to close.

@pedroSG94
Copy link
Owner

pedroSG94 commented Sep 18, 2023

Hello,

I will try investigate. I noticed that sometimes (I could reproduce like 1 or 2 times, long time ago, that I remember) AudioEncoder class stop to process frames with no reason (no crash report) but it is really rare and I was no able to reproduce.
I'm not sure if AudioEncoder crash without report it or Microphone stop send frames.

I think that internet is not related if you can receive video because in that case audio and video frames should be affected and you should receive both channels but maybe losing few frames.

Do you have anyway to reproduce it easier?

@mkrn
Copy link
Contributor Author

mkrn commented Sep 19, 2023

No way to reproduce unfortunately, but I can introduce more logging to catch it. Any ideas where it could happen?
Is it possible it happens in some "catch" and microphone restart should be started?

FYI setMicrophoneMode(MicrophoneMode.ASYNC); is used.

@pedroSG94
Copy link
Owner

I have 2 main suspects:

Let me know if you can detect the error and we can try to solve it.

@mkrn
Copy link
Contributor Author

mkrn commented Sep 20, 2023

Can we release a new version if anything was fixed? Having trouble with adding master branch via implementation in gradle /jitpack.

@pedroSG94
Copy link
Owner

Hello,

Try this gradle:

implementation 'com.github.pedroSG94:RootEncoder:library:0005d02b5b'

This will compile the library in the actual last commit of master

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

No branches or pull requests

2 participants