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

eglswapbuffers failed when i use prepareVideo method #1625

Open
user97116 opened this issue Oct 25, 2024 · 1 comment
Open

eglswapbuffers failed when i use prepareVideo method #1625

user97116 opened this issue Oct 25, 2024 · 1 comment

Comments

@user97116
Copy link

com.github.pedroSG94.RootEncoder:library:2.5.2

for start recording working fine

rtmpCamera1.prepareAudio();
rtmpCamera1.prepareVideo(1280, 720, 30, 1024 * 1024, 0);
rtmpCamera1.setExposure(exposure);
rtmpCamera1.startRecord(path);

for start streaming showing eglswapbuffers error

rtmpCamera1.prepareAudio();
rtmpCamera1.prepareVideo(640, 360, 30, 1024 * 1024, 0);
rtmpCamera1.setExposure(exposure);
rtmpCamera1.startStream(url);

Errors

eglSwapBuffers failed
egl_window_surface_t::swapBuffers called with NULL buffer
tid 11917: swapBuffers(772): error 0x300d (EGL_BAD_SURFACE)
eglSwapBuffers failed
@pedroSG94
Copy link
Owner

Hello,

I need a full code example because I can't know if you are doing it like expected. First of all, if you are already recording/streaming you shouldn't call prepare video/audio again like in this example code:
https://github.com/pedroSG94/RootEncoder/blob/master/app/src/main/java/com/pedro/streamer/oldapi/OldApiActivity.kt#L80

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