Camera IP

This function block is tailored for connecting to IP cameras over the network, allowing you to stream video directly into the system. It facilitates the entry of required credentials, camera address, and settings.

πŸ“₯ Inputs

This block does not require any inputs.

πŸ“€ Outputs

Image Any This output provides the latest frame captured from the IP camera.

πŸ•ΉοΈ Controls

Username Optional field for entering the camera's username. Many cameras default to admin.

Password Optional field for entering the camera's password. Many cameras have a default password as well.

Address The field where you input the camera's address in RTSP format, e.g., rtsp://192.168.0.16:554.

Reconnect A button allowing you to reconnect to the IP camera after changes in settings.

Stream Mode A checkbox to enable or disable streaming mode for the video feed.

Stream Quality A dropdown menu to select video stream quality from available options (e.g., Best, 720p, 1080p).

[frame/sec] - Optional An optional field to define the custom frame rate for the stream.

🎨 Features

Dynamic Connection The block can dynamically adjust the connection settings based on user input to reconnect as needed.

Error Logging Warnings and errors are logged for ease of debugging when connections fail or settings aren’t met.

Flexible Streaming Options Choose different stream qualities and configure performance with customizable frame rates.

πŸ“ Usage Instructions

  1. Enter Camera Credentials: Input the username and password for the IP camera if required.

  2. Provide Camera Address: Enter the camera's RTSP streaming address in the appropriate field.

  3. Configure Stream Options: Check the Stream Mode box if you want to stream live video, and select an appropriate quality from the dropdown.

  4. Set Frame Rate (Optional): If needed, specify the desired frame rate for the camera stream.

  5. Reconnect: Click the Reconnect button to establish a connection with the IP camera based on your settings.

πŸ“Š Evaluation

Upon evaluation, this function block will attempt to connect to the specified IP camera and provide the latest frame captured as the output.

πŸ’‘ Tips and Tricks

Using Default Credentials

If unsure of the camera's username and password, many devices come with default settings like admin for both fields. Checking the camera's manual or manufacturer's website can help as well.

Checking Camera Connectivity

If the camera does not connect, ensure it is powered on and correctly connected to the network. Try using the IP address in a video player (e.g., VLC) to verify connectivity.

Frame Rate Adjustments

Experiment with the frame rate for optimal performance based on your network capabilities. Too high a frame rate can lead to dropped frames if your connection cannot handle it.

Troubleshooting Stream Mode

Be sure to verify the supported stream qualities your camera offers. Different models may support different resolutions, which can affect streaming ability.

πŸ› οΈ Troubleshooting

Connection Errors

If you encounter errors while attempting to connect, check that the camera address is correctly formatted and matches the required RTSP structure. Verify that the network allows access to the camera.

No Video Output

If the output frame is not displaying, ensure that the camera is properly connected and the username/password fields are correct. You can also check for IP conflicts on the network.

Stream Quality Issues

If the stream quality is poor, try reducing the resolution in the dropdown or adjusting the frame rate to improve performance.

Last updated