Ascp4 video streaming examples
Use the following examples as a guide for creating your own streaming transfers with ascp4.
- Send a multicast
stream:
> ascp4 --mode=send --host=desthost --compression=none --read-threads=1 --write-threads=1 udp://233.3.3.3:3000?loopback=1&ttl=2 udp://233.4.4.4:3000?loopback=1&ttl=2
- Capture a local multicast stream and send it to the receiver as a UDP unicast
stream:
> ascp4 --mode=send --host=desthost --compression=none --read-threads=1 --write-threads=1 udp://233.3.3.3:3000?loopback=1&ttl=2 udp://localhost:3000/
- Read a TCP stream from 192.168.10.10 port 2000 and send it to 10.10.0.51. On 10.10.0.51, write
the stream to local host port
3000:
> ascp4 -l 6000 --host=10.10.0.51 --mode=send --read-threads=1 --write-threads=1 tcp://192.168.10.10:2000 tcp://localhost:3000
- Send a multicast UDP stream on 233.3.3.3 port 3000 to host 192.168.0.11, then multicast the
stream on 233.3.3.3 port
3001:
> ascp4 -l 6000 --host=192.168.0.11 --mode=send --read-threads=1 --write-threads=1 udp://233.3.3.3:3000/?pktbatch=0 udp://233.3.3.3:3001/?loopback=1
- Multicast using the same multicast IP address and varying the multicast
port:
> ascp4 -L/opt/test-local-01 -R/opt/test-remote-01 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.1:3001?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.1:4001?rcvbufsz=100M&loopback=0" > ascp4 -L/opt/test-local-02 -R/opt/test-remote-02 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.1:3002?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.1:4002?rcvbufsz=100M&loopback=0" > ascp4 -L/opt/test-local-03 -R/opt/test-remote-03 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.1:3003?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.1:4003?rcvbufsz=100M&loopback=0" > ascp4 -L/opt/test-local-04 -R/opt/test-remote-04 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.1:3004?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.1:4004?rcvbufsz=100M&loopback=0"
- Multicast using the same multicast port and varying the multicast IP
address:
> ascp4 -L/opt/test-local-01 -R/opt/test-remote-01 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.1:3001?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.1:4001?rcvbufsz=100M&loopback=0" > ascp4 -L/opt/test-local-02 -R/opt/test-remote-02 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.2:3001?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.2:4001?rcvbufsz=100M&loopback=0" > ascp4 -L/opt/test-local-03 -R/opt/test-remote-03 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.3:3001?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.3:4001?rcvbufsz=100M&loopback=0" > ascp4 -L/opt/test-local-04 -R/opt/test-remote-04 -DD -l 15m --mode send --host 10.132.117.2 --user root --read-threads 1 --write-threads 1 --compression none "udp://233.33.3.4:3001?sndbufsz=100MB&ifaddr=10.131.117.1" "udp://233.44.4.4:4001?rcvbufsz=100M&loopback=0"