Recasting UDP <-> UDP
Recaster can receive either unicast or multicast streams and forward them to one or more unicast or multicast destinations.
Configuration
Configuring a UDP recasting channel involves setting up the channel stream input with specific details to receive and process incoming UDP streams. This setup ensures the application correctly identifies and handles the stream data for subsequent recasting to other protocols or targets.
Input Configuration
- Protocol: Select UDP as the input protocol. This ensures the channel is configured to process connectionless UDP streams.
- IP Address: Specify the IP address of the source transmitting the UDP stream. For multicast streams, this will be the multicast group address.
- Port: Provide the port number on which the UDP stream is being sent. The application listens on this port to receive the incoming data.
- Network Interface: If the stream is multicast, specify the network interface to which the multicast packets should be bound. This ensures the application listens on the correct interface for multicast traffic.
Output Configuration
Configuring a UDP recasting channel output involves setting up the details for transmitting the stream to its destination. This includes specifying the UDP protocol, along with the IP address and port of the target device or network.
- Protocol: Select UDP as the output protocol to ensure the stream is transmitted using connectionless UDP.
- IP Address: Provide the destination IP address. For unicast, this is the IP of the target device. For multicast, this is the multicast group address.
- Port: Specify the port number where the UDP stream will be sent. The target must be configured to listen on this port to receive the data.
- Network Interface: If the stream is multicast, specify the network interface to which the multicast packets should be bound. This ensures the application listens on the correct interface for multicast traffic.
YAML Configuration
Here is an example of how to configure the recaster to receive a multicast stream on the address 227.1.1.1 and port 30120 and send it out to two targets. The first target is unicast at 192.168.1.2 on port 1234, using the loopback interface (127.0.0.1), and the second target is multicast to the group 227.1.1.3 on port 12345.
platforms:
- name: UAV1
description: First platform
channels:
- name: EO-IR
description: First channel
input:
name: EO/IR
description: EO/IR-1 camera
url: udp://227.1.1.1:30120
outputs:
- name: EO/IR-1-OUT
description: EO/IR-1 output
url: udp://192.168.1.2:1234
- name: Screen1
description: Screen 1
url: udp://227.1.1.3:12345