Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Request for assistance configuring WebRTC Camera device #247

Closed
bkdfkup opened this issue Jan 31, 2022 · 8 comments
Closed

Request for assistance configuring WebRTC Camera device #247

bkdfkup opened this issue Jan 31, 2022 · 8 comments

Comments

@bkdfkup
Copy link

bkdfkup commented Jan 31, 2022

as logged on node-red forums here https://discourse.nodered.org/t/camera-configuration-using-node-red-contrib-google-smarthome/57545 i am seeking assistance regarding configuration of a WebRTC stream in the google device camera configuration. Some detailed guidance would be appreciated if possible.

@bkdfkup
Copy link
Author

bkdfkup commented Jan 31, 2022

Excerpt from node-red forum post.


Hi All.

Working on configuring camera streaming to google assistant via
node-red-contrib-google-smarthome and am having some challenging issues. I have tried several protocols, and have only had some success using FFMPEG-produced smooth-streaming. No luck using MP4, HLS, DASH or WebRTC protocols.

I am attempting to get WebRTC working now as my attempts to live stream an rtsp camera feed via FFMPEG were causing some issues.

I have configured a functioning instance of OvenMediaEngine, and have a working WebRTC stream being produced. What i cannot now figure out are the correct WebRTC configurations to enter into the google device node configurations.

Using the example configurations here WebRTC Streaming - OvenMediaEngine and here Getting Started - OvenMediaEngine i would love some help determining what needs to be entered here
image

Thanks in advance

Screenshot 2022-01-31 222046

@ckhmer1
Copy link
Contributor

ckhmer1 commented Feb 1, 2022

I've developed the WebRTC camera support, I'm sorry but I don't own a WebRTC camera, the feature is untested by me.
I can provide You with limited support.

@bkdfkup
Copy link
Author

bkdfkup commented Feb 1, 2022 via email

@ckhmer1
Copy link
Contributor

ckhmer1 commented Feb 6, 2022

Unfortunately I don't own an in IP camera, I'm trying to simulate then with an usb camera and nginx/rtmp, currently without success.
I've tested the node only simulating the messages.

@bkdfkup
Copy link
Author

bkdfkup commented Feb 6, 2022 via email

@nostroff
Copy link

nostroff commented Mar 3, 2022

I've had partial success. The good news is that node-red-contrib-google-smarthome module appears to work fine. The settings I used are as follows:
WebRTC Signaling URL: https://[my public server.com]:9443/stream/demo/channel/0/webrtc?uuid=demo&channel=0
WebRTC Offer session description protocol (SDP): o=- 6910163479322986733 2 IN IP4 127.0.0.1
WebRTC IceServers (entered as JSON, not string): [{"urls":"stun:stun.l.google.com:19302"}]

From the log messages, it looks like the public server needs to have a valid SSL certificate.

My camera streams video using RTSP. To convert the RTSP to WebRTC and provide the signaling server, I installed RTSPtoWeb (see: https://github.com/deepch/RTSPtoWeb).

I suspect my roadblock is with my camera not supporting the correct video and/or audio codec for playback on a Google Nest Hub 2 since I'm able to successfully stream my camera via WebRTC to a Chrome browser by browsing to https://[my public server.com]:9443. Some information regarding compatible video/audio codecs is here: https://developers.google.com/cast/docs/media.

Good luck.

@ckhmer1
Copy link
Contributor

ckhmer1 commented Mar 3, 2022

Hello,
i achieved similar results using the chromecast and simulating the webcam with nginx.
I also suspect that the codecs are not the right ones.
Thanks for the feedback.

@Caprico85
Copy link
Collaborator

Converting this to a discussion to close this issue but keep the information available for people looking for help.

Repository owner locked and limited conversation to collaborators Dec 15, 2023
@Caprico85 Caprico85 converted this issue into discussion #459 Dec 15, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants