TargetFile syntax

LEADTOOLS multimedia gives some filenames special handling. These filenames follow a syntax similar to a URL (“xxxxx://yyyyyy/zzzz”):

  1. Filenames starting with "ltsf" are assumed to be streamed from a LEAD video streaming server and the LEAD Network Source filter is used as the source filter.

  2. Filenames starting with "udp" are assumed to be streamed to a UDP port and the LEAD MPEG-2 Transport UDP Source filter is used as the source filter.

  3. Filenames starting with "tcp" are assumed to be streamed to a TCP/IP port and the LEAD MPEG-2 Transport UDP Source filter is used as the source filter.

  4. Anything else is assumed to be a regular file and the regular DirectShow rendering mechanism is used.

Syntax for strings prefixed with “ltsf”:

ip_address

The IP address where the data will be sent  from. This can be in the usual Ipv4 format (xx.xx.xx.xx) or it can be a valid host address accepted by the standard function inet_addr. For example, localhost is equivalent to 127.0.0.1. This is the IP address of the sending (server) computer. Note that a computer with multiple network adapters might support multiple addresses.

ltsf_port

(Optional) The port on which to listen. The server will listen for connections on this port. The port must be a number from 1 to 65535. Note that you must make sure the port is open if you are running firewall software. The default value it 27015.

Syntax for strings prefixed with “udp”:

ip_address

The IP address where the data is being sent to. This can be in the usual Ipv4 format (xx.xx.xx.xx) or it can be a valid host address accepted by the standard function inet_addr. For example, localhost is equivalent to 127.0.0.1. This is usually the IP address of the receiving (client) computer.

The stream is considered to be multicast if the first number in the Ipv4 address is between 224..239 (0xE0 .. 0xEF). If the first number is not in this range, the stream is unicast.

network_card

(Optional) The address of the network card receiving the data. Used only for multicast streams. This is optional – if it is missing, the default network card will be used.

udp_port

(Optional) The port on which to listen. The server will listen for connections on this port. The port must be a number from 1 to 65535. Note that you must make sure the port is open if you are running firewall software.

Syntax for strings prefixed with “tcp”:

ip_address

The IP address where the data will be sent from. This can be in the usual Ipv4 format (xx.xx.xx.xx) or it can be a valid host address accepted by the standard function inet_addr. For example, localhost is equivalent to 127.0.0.1. This is usually the IP address of the sending (server) computer.

TCP streams cannot be multicast. All TCP streams are assumed to be unicast.

tcp_port

(Optional) The port on which to listen. The server will listen for connections on this port. The port must be a number from 1 to 65535. Note that you must make sure the port is open if you are running firewall software.