Convert rtsp: stream to ???
I have a cheap IP web camera, that provides a stream that looks like this:
rtsp://10.0.0.96:554/user=admin_password=encryptedpass_channel=1_stream=0.sdp?real_stream
This is openable in VLC, but not RS.
I can setup VLC under linux or Windows to convert and re-stream, but I've been unable to find a combination that works.
While posting this, I did get it figured out somewhat, thanks to this page:
Here is the command under windows that works for me:
vlc.exe -R "rtsp://10.0.0.96:554/user=admin_password=encryptedpass_channel=1_stream=0.sdp?real_stream" --sout "#transcode{vcodec=mjpg,vb=2500,scale=1.0,fps=10,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace; boundary=7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:8888/videostream.cgi}
Then on RS, I put in:
I just need to run one copy of VLC per camera, to re-stream so RS can understand it.
It takes a good amount of CPU- Totally pegs a dual core VM, 10-15% of a 12 core hyperthreaded desktop.
Any chance of directly supporting the rtsp protocol, or is that too much trouble for too little effort?
Thanks-
Comments
Interface shows webcam using img and that does not support rtsp not would I know how to split that into multiple streams.
Most IP cams also support mjpg natively. Have a check here
https://www.ispyconnect.com/sources.aspx
and see if you find your webcam. It contains a link generator for jpg/mjpg images.
If I wanted to use the Tapo for timelapse videos, I would need to add the and url to a static image. Let us assume I would be able to get a JPG from RTSP on the same computer that is running the server. Can I point to a local file? Or do I need to have some sort of server running on localhost? I have the nginx installed and working, if that is of any help. Thanks.
Maybe you can do it with ffmpeg which can convert a lot. But can't say if it works and what cpu usage that would cause.
octoprint recently included HLS as alternative to the standard mpeg stream.
Thanks.
PS: Going back to octoprint is no option. Like repetier pro much more