Closed deependdesigns closed 1 year ago
@deependdesigns I don't see anything critical. It's just some noise from snap and GStreamer. Are you able to see video in your browser? If yes, then nothing to care about...
2022-12-26T21:35:41-06:00 -[3659]: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
This should be fixed now (please wait a little bit new version publish to snap store)
That was with the default configuration and am unable to view the stream. I get a grey background with a loading animation over where the feed should be. When I include my rtsp in the configuration and replace the streamers I get the following in the log monitor:
2022-12-26T22:23:07-06:00 -[4004]: unknown transport field "timeout=60"
2022-12-26T22:23:09-06:00 rtsp-to-webrtsp.ReStreamer[4004]:
0:01:25.112546637 4004 0x6fe21118 WARN faad
gstfaad.c:268:gst_faad_set_format:
@deependdesigns can you please clarify what video codec your cam uses?
@deependdesigns can you please clarify what video codec your cam uses?
It looks like they are receiving H265, which would be why they don't see any stream in the browser.
2022-12-26T22:23:09-06:00 rtsp-to-webrtsp.ReStreamer[4004]: 0:01:25.173759069 4004 0x6fe210e0 ERROR default libde265-dec.c:274:gst_libde265_dec_get_buffer:
Failed to notify about available image 2022-12-26T22:23:09-06:00 rtsp-to-webrtsp.ReStreamer[4004]: 0:01:25.442951917 4004 0x6fe210e0 WARN default _libde265-dec.c:859:_gst_libde265_dec_handle_frame: warning: Cannot run decoder multi-threaded because stream does not support WPP
Is there anything I can do?
@deependdesigns go to your camera's webpage and change the encoding format from h265 to h264.
It should be under 'video' settings
Yes, it's highly possible h265. But current ReStreamer implementation supports only h264 codec. @deependdesigns you can try change codec in your cam settings. Also set it to use baseline profile
if it's possible.
It's also possible ReStreamer
is just broken on RPi. I didn't try the latest version myself on RPi yet. The possible reason is I've updated snap to use core22
.
Dang, ok. I'm trying to find a solution to stream my IP camera on my CNC to CNCJS but I keep hitting road blocks.
@deependdesigns I'll try it today on RPi.
@deependdesigns also, can you please share what exactly IP Cam you are trying to use?
I really appreciate it
On Mon, Dec 26, 2022, 11:59 PM Sergey Radionov @.***> wrote:
@deependdesigns https://github.com/deependdesigns also, can you please share what exactly IP Cam you are trying to use?
— Reply to this email directly, view it on GitHub https://github.com/WebRTSP/ReStreamer/issues/31#issuecomment-1365633613, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7LJLPLF3AHQ5E3O47WOVTWPKAVFANCNFSM6AAAAAATKCOVQQ . You are receiving this because you were mentioned.Message ID: @.***>
Hm... According to user manual this cam supports h264. Did you use rtsp url to get access to it?
I did use rtsp URL. Is there a parameter I can pass in on the URL? I didn't see any encoding options within the app.
Hm... Now I think it's something wrong inside ReStreamer
...
Did you try to open that rtsp with some media player? For example with VLC? I'm curious what codec it will show...
I was actually able to get it working using cvnc earlier, but the latency was horrible. I saw someone else mention your software as a lower latency option. I can also stream on my windows machine using VNC but couldn't figure out how to restream it. On windows the latency was almost negligeable.
yes, it should give minimal latency since doesn't do any transcoding... And it's important for me to get it working for you, or at least find the reason why it can't... Please try open rtsp with VLC and look what codec it shows.
On my side, I'll try to install it on my RPi. Btw, what snap channel did you use? stable
or edge
?
I started on edge but reverted back to stable.
I hate to do this, but I will have to try with VNC tomorrow morning. It's almost 1am and I'm exhausted.
Sorry, VLC
Ok, np. meantime I'll try RPi myself.
Is there anything I can do?
If you have a monitor attached to the raspberry pi, can you try this command from the command line ?
gst-launch-1.0 -v playbin uri="rtsp://your-camera-ip-address:your-rtsp-port/your-endpoint"
If this doesn't work, then something is wrong with your gstreamer installation.
snap package is self contained, so it doesn't matter if GStreamer is working (or even present) on host.
Just remembered I have VNC on my phone. Hopefully my attachment comes through.
On Tue, Dec 27, 2022, 12:52 AM Sergey Radionov @.***> wrote:
Ok, np. meantime I'll try RPi myself.
— Reply to this email directly, view it on GitHub https://github.com/WebRTSP/ReStreamer/issues/31#issuecomment-1365656551, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7LJLICQP3NNZGFVFHJINDWPKG4DANCNFSM6AAAAAATKCOVQQ . You are receiving this because you were mentioned.Message ID: @.***>
@deependdesigns I've tried both stable and edge versions of snap on my Raspberry Pi 2 Model B and everything looks working... So please post info from VLC about your rtsp when you have a chance...
I just realized that my attachment didn't come through. I was replying through email. I get the following from VLC:
Video Codec MPEG-H Part2/HEVC (H.265) Resolution 2304x1296 Framerate 15
Audio Codec MPEG AAC Audio Channels 1 Sample rate 8000 Hz
I just realized that my attachment didn't come through. I was replying through email. I get the following from VLC:
Video Codec MPEG-H Part2/HEVC (H.265) Resolution 2304x1296 Framerate 15
Audio Codec MPEG AAC Audio Channels 1 Sample rate 8000 Hz
Yup, the problem is that your camera is streaming with H265 ... The project is currently limited to H264/VP8.
You need to find out how to change the encoder settings on your camera to H264, if you can't do it from the camera webpage, you can try doing it with an onvif client.
Are you sure that this is your camera ? According to the webpage you shared it should be limited to 1080p ?
I'll try that when I get home. I do see ONVIF as an option.
On Tue, Dec 27, 2022, 2:03 PM Mr Nobody @.***> wrote:
I just realized that my attachment didn't come through. I was replying through email. I get the following from VLC:
Video Codec MPEG-H Part2/HEVC (H.265) Resolution 2304x1296 Framerate 15
Audio Codec MPEG AAC Audio Channels 1 Sample rate 8000 Hz
Yup, the problem is that your camera is streaming with H265 ... The project is currently limited to H264/VP8.
You need to find out how to change the encoder settings on your camera to H264, if you can't do it from the camera webpage, you can try doing it with an onvif client.
— Reply to this email directly, view it on GitHub https://github.com/WebRTSP/ReStreamer/issues/31#issuecomment-1366148438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7LJLJKKQUFQF5ZORTWL53WPNDQXANCNFSM6AAAAAATKCOVQQ . You are receiving this because you were mentioned.Message ID: @.***>
I'll try that when I get home. I do see ONVIF as an option.
If onvif doesn't work, make sure that the camera has the latest firmware downloaded. It looks like they just recently added onvif support to that camera.
I've got good news and bad news.
Good:
I was able to change the RTSP source to ch1 and am now able to see the stream in the browser using WebRTSP/Restreamer
Bad:
I put the same URL that gives me the stream in the browser into CNCJS and I get a black screen. I did notice that http://192.168.1.130:5080/ (the path to WebRTSP/Restreamer) looks like the stream is embeded within HTML. Am I missing something? I apologize, I don't have much experience in RTSP
@deependdesigns Can you please elaborate a little bit what CNCJS is and what exactly you trying to achieve with it?
I think I've found what CNCJS is: https://cnc.js.org/
But I can't understand how (and why) you are trying to embed ReStreamer's URL there. :thinking:
Absolutely.
CNCJS is a web-based interface for CNC milling controllers running Grbl. Essentially it lets me operate my CNC Milling Machine from my computer or phone. It also has the ability to embed a webcam or MJPG stream within the interface for job monitoring. I'm trying to figure out how to get the IP Cam's stream into the CNCJS web interface.
https://cnc.js.org/docs/faq/#restream-rtsp-to-m-jpeg
On Tue, Dec 27, 2022 at 10:09 PM Sergey Radionov @.***> wrote:
@deependdesigns https://github.com/deependdesigns Can you please elaborate a little bit what CNCJS is and what exactly you trying to achieve with it?
— Reply to this email directly, view it on GitHub https://github.com/WebRTSP/ReStreamer/issues/31#issuecomment-1366352533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7LJLOXGY6B4OEZSMYH3JLWPO4O3ANCNFSM6AAAAAATKCOVQQ . You are receiving this because you were mentioned.Message ID: @.***>
I think there is some misunderstanding... It looks like CNCJS expects Motion JPEG source (i.e. it just gets jpeg with some interval from provided URL and show it in UI) - please correct me if I'm wrong. But ReStreamer produces WebRTC video.
So to solve your task you can try to do video transcoding (from h264 or h265 to MJPEG) with ffmpeg for example. But it's heavy operation, and I don't know if your RPi has enough power for that.
Other option - check if your IP Cam can provide Motion JPEG output.
Ah, it seems I've been barking up the wrong tree. I'll try to get ffmpeg with ffserver running again and see what I can figure out.
Thanks again for your help
Since it was not revisited for a long time, I treat it as not issue anymore... Please reopen if you still need some assistance.
Everything appeared to install successfully, however when I launch the stream in the browser and monitor I get the following: