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

OpenGl RTSP record vedio 20s, but only have 17s, loss 3s #1565

Open
HoanChen opened this issue Sep 1, 2024 · 7 comments
Open

OpenGl RTSP record vedio 20s, but only have 17s, loss 3s #1565

HoanChen opened this issue Sep 1, 2024 · 7 comments

Comments

@HoanChen
Copy link

HoanChen commented Sep 1, 2024

Describe the bug
in branch feature/extra-video-source ,OpenGl RTSP record vedio 20s, but only have 17s, loss 3s

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

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

Smartphone (please complete the following information):

  • Library version [e.g. 2.2.7]
  • Device: [e.g. Pixel 6a]
  • OS: [e.g. Android13]
  • Media server [e.g. srs, version 5.0]
  • Class used [e.g. RtmpCamera1]

Additional context
Add any other context about the problem here.

@pedroSG94
Copy link
Owner

pedroSG94 commented Sep 1, 2024

Hello,

Are you using the listener to know the moment when the video record start?
https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/rotation/CameraFragment.kt#L139

@HoanChen
Copy link
Author

HoanChen commented Sep 2, 2024 via email

@pedroSG94
Copy link
Owner

I don't understand you.
Are you using the listener in startRecord method or not?

@HoanChen
Copy link
Author

HoanChen commented Sep 2, 2024 via email

@pedroSG94
Copy link
Owner

pedroSG94 commented Sep 3, 2024

I still don't understand you.

You can check the moment the video really start recording but It is not immediately after call startRecord.

The video start when a keyframe is detected so you can check that moment using the listener in startRecord method like this:

        genericStream.startRecord(recordPath) { status ->
          if (status == RecordController.Status.RECORDING) {
            //The video start to record now
          }
        }

@HoanChen
Copy link
Author

HoanChen commented Sep 8, 2024 via email

@pedroSG94
Copy link
Owner

Hello,

First of all. I can't see images if you uploaded it. Maybe because you send the response from the email.

About watermark, you have an example here:
https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/utils/FilterMenu.kt#L212

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