Connect ip camera to qgroundcontrol

Hello everyone,

First of all thank all the participants of the forum for providing so many solutions to the problems and developments with the BR
I use an IP camera 4k 12mp DAHUA on my BR. The quality is very good and the camera has focus, zoom and RGB control, very important to have a good underwater image.

You can see some videos on my YouTube channel “Ocean Secrets Vigo” I leave two links to give you an idea of ​​the quality of the camera:

The problem is that I can’t see the image of the camera through qgroundcontrol, I have tried everything but I am not able.

Can anyone help me?

Thanks to everyone beforehand.

3 Likes

Wow that looks great!! What is the frame rate of the camera?
And are you transmitting over the ROV tether, or separate tether (fiber?)

Here’s a question/awnser pasted from another thread…

Connect an IP camera with H264 to it. Can I display the image on it in GroundControl?

If the ip camera supports rtsp streams, yes QGC can display it.

How about opening a browser window and putting it next to, or on top of, qgroundcontrol?

Here’s something similar…

1 Like

How do you watch the stream currently?
An Onvif client should be able to help you find the RTSP stream.

Hi marcus

We use 25 fps 4k 12 mp with h264 protocol and transmit the signal through the ROV tether using a secondary Fathom X inside the BR with a bridge between both FathomX and we have a delay of 200 ms approximately.

We have tested up to 200 meters of cable and it was correct.

Regards

1 Like

Hi @Andres,

Do you have a link to or the model number of the exact camera you are using?

-Adam

Hi Oddmar,

Thanks for your comment, I had seen this post before and tried the rtsp protocol but it didn’t work. Finally, today I found the solution, the problem was that the rtsp address was not complete, I followed the following scheme:

rtsp:// IP : PORT /cam/realmonitor?channel= CHANNEL &subtype= ENCODING &authbasic= LOGIN*

Now I can see the image correctly through qgroudcontrol and even manage the zoom with the mouse if I have previously selected the camera in the web browser.

The only problem is that it does not allow to see the image size in 4k through qgroundcontrol, by lowering the resolution to 3072 x 2048p, which is practically 4K, the difference in quality is not noticeable and works perfectly.

To control the focus I have to open a small window with the web browser.

I enclose a photo of the result:

https://drive.google.com/open?id=1-MPeDRNWPnLc4nfS56pYoV6CLPz_H_ht

Regards

1 Like

Hi Willian,

We used a web browser by entering the IP, but as I told Oddmar I have already found the solution, the problem was in the address rtsp: //

Regards

Hi Addam,

The exact camera model is: Dahua IPC-HFW81200E-Z 12MP 4K IR Ultra HD Outdoor Bullet IP Security Camera.

The camera has an impressive quality, but as you can see it is too big, so we have disassembled the case and only use the electronic components. On the other hand I installed an internal microphone to capture the marine sounds and the BR itself, which is interesting to hear the correct operation of the engines.

I leave you a link with a video of a project of control of marine plastics that we did for the National Park of the Atlantic Islands of Galicia, so that you can see the camera in operation at different depths, with and without light and also so that you can see our project. In this case I have uploaded the video in 1080p because if it is not very heavy, therefore the quality is higher than what you will see in the images.

Regard

2 Likes

Wow, thats awesome. So do you record to the PC HDD/SSD using the camera web browser software?

Hi Marcus,

Sorry for not responding before I had not seen the message.

I record directly through the web browser by selecting a PC folder for storage.

Regards

1 Like

Hello, I have been checking your forums about the project you have done with the camera, and it seems very cool to me, but I still don’t understand how you control the zoom of the camera from Qground Control and the Xbox controller???

Hello Roberto,

I’m sorry for the delay.

I use the Pelco-D protocol with which the PTZ cameras are controlled, two wires from the umbilical cable to transmit the signal, an RS485 to USB converter, and a software to control the Pelco-D protocol through the joystick.

Cheers

1 Like

Hello, I was wondering if with this camera, you are streaming in 4K or only recording.

Hi @Gabriel1,

You can do both streaming and 4k recording at 25 FPS.

For this you need a good bandwidth and a PC with decent graphics and a good processor.

With the FathomX and 150-200 meters of umbilical I can do it without any problem.

Best regards

Thank you for you response!
I’m new to this world so I have some other questions.
What has your camera that hasn’t another 4K IP camera? (I found some other 4k ip cameras that are significantly cheaper)
The Ip camera connects to the raspberry or to the FathomX directly? And it’s connected wirelessly or via Ethernet cable?
What bandwith is considered good for 4K streaming using this setup?
Thank you in advance.

Hi @Gabriel1 ,

Your first question does not have a simple answer, because to begin with, the comparison should be made camera VS camera.

The price should give you the first clue. This camera in its day was the best camera that DAHUA had. This is due to several factors, but simplifying, the difference in quality with other IP cameras lies in:

  • Megapixels and FPS (the image size and the number of frames per second they can capture). This camera has 12 mp, which translates to a 4000x3000 image with 25 fps. In other words, it is capable of capturing more details and with better definition than other cheaper cameras (most 4k cameras are 8mp (3840x2160) at 15/20 fps). This is because this camera uses a higher quality CMOS sensor, capable of capturing excellent images in very low light.

  • The lens and optics are another very important parameter, and more of the same, in this camera they are of higher quality than in other cheaper ones, which directly influences image quality.

  • The motherboard and the compression algorithm, being of higher quality, make the understanding of the image faster and no loss of image quality, which allows for better and more fluid IP transmission.

  • Electronic motorized varifocal lens, allows you to zoom and focus very quickly and autonomously. Most of the cheaper cameras, varifocal lenses are mechanical and a hell of a lot slower.

-The firmware, DAHUA has many years of experience developing IP cameras, and therefore the firmware of its cameras have many revisions and are very stable.

-The parameters available to improve image quality (White balance, gain, exposure, HDR, brightness, fog, 3D noise, contrast, transmission protocols, video configuration in fps, bitrate etc, etc) are higher than in others cameras and work very smoothly and stable.

To summarize, if you disassemble this camera and a much cheaper one you would notice the difference right away. The components are more complex and the quality levels are very different. It is true that they are also much larger and that is why this camera is difficult to integrate into a BR2. To put it simply, it is quite risky to manipulate it without causing any damage and having everything fit.

The base market price of this camera, if you are lucky enough to find it because it is no longer manufactured, is between €1,000 and €1,500 depending on the online store. But as you can see in the videos above the image quality is very good. Now they have released a new, more modern version, which improves some things but sacrifices the electronic zoom, which in my opinion is a shame.

It is true that there are good cheaper options, it all depends on your needs. I mount another 4k 8mp 20fps camera, which can be installed directly on a BR2, it has a pretty good quality, but obviously it is not the same as this DAHUA. (Attached images)





Answering your question about the connection. Connects via Ethernet cable to a secondary FathomX in parallel with the primary, or to an ethernet switch connected to the primary FathomX, which communicates with the surface FathomX. Then through its IP address (http://… or via rtsp://…), you can view it on the PC.

Regarding the bandwidth, I would recommend a minimum of 50 mps, you could with something less but you would have to reduce the image quality, either in fps or bit rate. But if you move in the order of 60mps up, even better. It all depends on the configuration of your ROV and the extras you have that use bandwidth.

Best regards.

1 Like

Thank you very much for your answer! You really helped me understand better, I really appreciate it.
If you don’t mind, could you tell me the model of the other cheaper ip camera you mount, with 8mp?

I’m interested in a 4k camera (maybe with no the best resolution or the most fps) but with the least latency possible. (Maybe it’s best to search one with H265 codification?)

Hello @Gabriel1

This is not a commercial camera so I cannot send you the model, it is made with a 4k IP module, focusings board, SD module, and a fast focus lens. But then I leave you features and videos to see how it works.

This model can be installed on the normal 4" enclouser of BR2, without any modification (except for the use of an ethernet switch), just plug and play. Includes voltage regulator for power supply, servo, aluminum housing and methacrylate mounting plate:

Features: 8mp 4k 20 fps or 3072x1728p 30 fps/ Sony CMOs imx 415 ultra low light illumination sensor/ 0.01lux color/ varifocal lens 2.8-12 mm 4xzoom/ fast focus with screw stepping motors / bit rate up to 12,000 kbps / h264 or h265

Viewing:

-Via qgroundcontrol by rtsp://

-Hik protocol via hikvision free software IVMS-4200

Video image quality, latency and settings ( download to view in full quality):

https://drive.google.com/drive/folders/14LXLLijFfiMxnlLTu_GthyoE1OrArJew 23

Hi Andres,

Really cool video of your 4k cam!
Im just wondering, are you able to see the overlay from Qgroundcontrol to get the depth, heading etc on the video?

Cheers,
Jorgen