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

nvh264enc no longer works after upgrading to 22.04 #37

Closed
ghost opened this issue Jan 21, 2023 · 13 comments
Closed

nvh264enc no longer works after upgrading to 22.04 #37

ghost opened this issue Jan 21, 2023 · 13 comments

Comments

@ghost
Copy link

ghost commented Jan 21, 2023

The 22.04 docker image show black screen (no video) in both Chrome or Firefox.
The web GUI works but the HTTP server seems to suck if there are more than one browsers connecting. (the second connection will time out)

I am using the docker image sha256:23bb0ceae21a6cd0e89f1441bb8d12f751276c653db3c67da2d33b8e809ea770 from 6c6dd17

@ehfd
Copy link
Member

ehfd commented Jan 21, 2023

The web GUI works but the HTTP server seems to suck if there are more than one browsers connecting. (the second connection will time out)

The first one works then?

We don't support more than one browser (although planned), unfortunately. Use noVNC for that, please...

Duplicate of selkies-project/selkies-gstreamer#39

@ehfd ehfd closed this as completed Jan 21, 2023
@ghost
Copy link
Author

ghost commented Jan 21, 2023

The first one works then?

No. The 22.04 docker image show black screen (Waiting for video stream.) in both Chrome or Firefox.
The logs shows [webrtc] [ERROR] attempt to send data channel message before channel was open.

@ehfd ehfd reopened this Jan 21, 2023
@ehfd
Copy link
Member

ehfd commented Jan 21, 2023

Do you have a TURN server?

@ehfd
Copy link
Member

ehfd commented Jan 21, 2023

If not, try https://www.metered.ca/tools/openrelay/.

@ghost
Copy link
Author

ghost commented Jan 21, 2023

No. but 0e61177 was working without a TURN server.
also the docker is in the same local network as my machine.

@ghost ghost changed the title [webrtc] [ERROR] attempt to send data channel message before channel was open. nvh264enc no longer works after upgrading to 22.04 Jan 21, 2023
@ghost
Copy link
Author

ghost commented Jan 21, 2023

I have set up the TURN server but the error persists.

I changed the WEBRTC_ENCODER from nvh264enc to vp8enc and it works now, but the encoding is super slow.

I am using a desktop 3090 GPU, and nvh264enc was working before.

@ehfd
Copy link
Member

ehfd commented Jan 21, 2023

@nick008a When the error happens, please paste the /tmp/selkies-gstreamer-(randomhash).log file

@ehfd
Copy link
Member

ehfd commented Jan 21, 2023

The other two log files entrypoint-* and pulseaudio-*, please. @nick008a

@ghost
Copy link
Author

ghost commented Jan 21, 2023

Failed to init cuda, ret: 0x324 seems to be suspicious. nvidia-smi shows the GPU.

@ehfd
Copy link
Member

ehfd commented Jan 21, 2023

@nick008a Unfortunately, I think this is something with your GPU. Could you reinstall your host GPU, then reinstall the nvidia-container-toolkit too?
First could you try again with x264enc too?

@ghost
Copy link
Author

ghost commented Jan 21, 2023

x264enc works on both Firefox and Chrome.
I have just reinstalled nvidia-container-toolkit=1.10.0-1 and nvidia-dkms-470=470.161.03-0ubuntu0.22.04.1 but the problem persists.

@ehfd
Copy link
Member

ehfd commented Jan 21, 2023

Maybe you should upgrade the driver version. The internal CUDA version was upgraded to 11.7 because that is the minimum required for 22.04.

@ghost
Copy link
Author

ghost commented Jan 21, 2023

solved by upgrading nv driver

@ghost ghost closed this as completed Jan 21, 2023
This issue was closed.
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

1 participant