Best way to stream from a ip camera (with 4g router) to a website (embed player)

rogerfor

n3wb
Mar 25, 2024
4
0
Guatemala
Hello, I need to find out, if there is any other alternative (better and cheaper) to do this.

Diagrama sin título.drawio.png


What I need is to, in a website, embed the stream from a remote ip camera, using a 4g router, and mikrotik with vpn, to a pfsense server.
This works, but its kinda expensive (ovh vps ($60), ipcamlive ($50 (per camera)) 4g internet plan ($60) )

So, dont know if any you, knows a better way to to this?
I really appreciate any help.
 
Well you'll certainly need an internet or cellular provider at each site, so that is a cost you cannot avoid.

However most IP cameras will stream their feed over on RTSP connection. You can use free software like VLC Media Player to play that stream without using the camera's web interface (where a user would also have access to the camera settings). You also don't need to pay for a VPN service. You can set up a self hosted VPN connection (either as a client/server type connection or a full time VPN tunnel) on one of the routers/firewall and connect to it using the other box .
 
  • Like
Reactions: looney2ns and TonyR
+1^^^.
Or use OBS (also free) software to stream to YouTube; it can accept a camera's RTSP stream (if the camera cannot provide RTMP itself) and convert the stream to RTMP as needed by YouTube.

There are many IP cameras available than can stream directly to YT using RTMP, no computer and software needed.

YT is free and you can embed the video's URL in the web page.

Some recent posts regarding streaming directly from camera to YouTube:

 
Last edited:
+1^^^.
Or use OBS (also free) software to stream to YouTube; it can accept a camera's RTSP stream (if the camera cannot provide RTMP itself) and convert the stream to RTMP as needed by YouTube.

There are many IP cameras available than can stream directly to YT using RTMP, no computer and software needed.

YT is free and you can embed the video's URL in the web page.

Some recent posts regarding streaming directly from camera to YouTube:


The problem with this, its that I need 24/7 streaming, and could take a couple months (the project its to record a building construction)
Dont know if youtube can handle months of livestreaming
 
Well you'll certainly need an internet or cellular provider at each site, so that is a cost you cannot avoid.

However most IP cameras will stream their feed over on RTSP connection. You can use free software like VLC Media Player to play that stream without using the camera's web interface (where a user would also have access to the camera settings). You also don't need to pay for a VPN service. You can set up a self hosted VPN connection (either as a client/server type connection or a full time VPN tunnel) on one of the routers/firewall and connect to it using the other box .

The problem with this, is that I need laptop/pc 24/7 to do this, and where I live, doesnt have an public IP option to do the self hosted vpn
 
A camera with RTMP can stream to platforms without the need to use a second device to encode to RTMP.
RTMP is not RTSP.

Take this video example:


Or Axis cameras have a plugin available. The plugin can overlay weather information or image ads.
 
  • Like
Reactions: TonyR
The problem with this, is that I need laptop/pc 24/7 to do this, and where I live, doesnt have an public IP option to do the self hosted vpn
As stated in my post #3..."There are many IP cameras available than can stream directly to YT using RTMP, no computer and software needed."
 
Hi any updates with this?!

Are there any solar/battery powered Ite cameras that can live stream to a private website? Would there be any bandwidth issues if say 50-150 ppl view the stream at same time?
 
  • Haha
Reactions: duplo
Hi any updates with this?!

Are there any solar/battery powered Ite cameras that can live stream to a private website? Would there be any bandwidth issues if say 50-150 ppl view the stream at same time?
Solar + battery camera... maybe? Depends on battery life if you have enough power to run the camera constantly.
Running over cellular also works but you want to be careful not to run out of mobile data.

As already said in this thread, you can buy an IP camera which as RTMP feature. This can stream directly to Youtube. Then embed the Youtube live stream into your website, there is no issues/restrictions for 150 or thousands of people to be viewing at once.
 
  • Haha
Reactions: duplo
Oh I have looked at it. With three cameras, I would have to pay $16.50 a month for each camera for continuous streaming on YouTube.

I am trying to use OBS without any luck.
 
I am trying to use OBS without any luck.
What is the particular issue you're having?

IMO, here's one of the best videos on setting up OBS to use RTSP from a camera and live stream it to YouTube.

Just pay attention to the first method of video coming into OBS (using RTSP from camera) and disregard his second and third method of video coming into OBS (HDMI screen capture card and stream from NVR).

 
Getting the camera to OBS for the first problem.

I will watch the video above and I am going to read over a comment you made on another post also.
 
Getting the camera to OBS for the first problem.

I will watch the video above and I am going to read over a comment you made on another post also.
OK.
What is the make and model of the camera?
 
I have two HikVision installed and adding another with we thaw out some.
RTSP with Authentication on Hikvision IPC:

rtsp:/<username>:<password>@<IP address of device>:<RTSP port>/Streaming/channels/<channel number><stream number>

Example:
rtsp:/Hikvision:guest@173.200.91.70:554/Streaming/channels/101 – get the main stream of the 1st channel


NOTE: Be sure to place 2 "/" after "rtsp:" as forum software will not allow 2 to be displayed concurrently.
 
Thank You!

The video got both cameras on OSB, one at a time. Can you set up to see both at the same time on OBS and then YouTube?
I think you could have 2 instances of OBS running, each one a different stream but each would have to go to YT on a different stream key.
You'd have to combine the 2 RTSP streams BEFORE sending into OBS and going to YT as one stream.
Blue Iris can take 2 camera RTSP streams and output as one (a group); there are likely other programs that can do that as well, I just haven't had the need to find out.