pedroSG94 / RootEncoder

RootEncoder for Android (rtmp-rtsp-stream-client-java) is a stream encoder to push video/audio to media servers using protocols RTMP, RTSP, SRT and UDP with all code written in Java/Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

HoanChen opened this issue · comments

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.

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

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
          }
        }

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