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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.
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
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