Page 1 of 1

Live stream relay start is delayed

Posted: 27 Jun 2023 02:49
by NOYB
Relaying a live stream from Windows through Linux. Stream starts playing immediately (within second or two) if connect to Windows stream. But if connect to the Linux relay stream it takes 10 seconds or more to start playing. How can I eliminate this long relay start delay?


Here is the relay stream config.

# Stream Define

# Target Stream # VLC meta expansion
stream_title='NOAA Weather Radio' # $t Title
stream_album='Portland OR - KIG98 162.550 MHz' # $b Album
stream_artist='National Weather Service' # $a Artist
stream_copyright='' # $c Copyright
stream_description='' # $d Description

stream_name='NOAA_Weather_Radio'
stream_type='mp3'

# Destination
dst_protocol='https'
dst_server='x.x.x.x'
dst_port='8086'

# Source
domain_protocol='https'
domain_name='Sub.Domain.com'
domain_port='8086'



# Start VLC relay stream
cvlc --no-dbus --network-caching=3000 \
$domain_protocol://$domain_name:$domain_port/$stream_name \
--input-title-format '$t'$stream_title' $/ $b'$stream_album' $/ $a'$stream_artist \
--sout '#standard{access='$dst_protocol',mux='$stream_type',dst='$dst_server':'$dst_port'/'$stream_name'}' \
:sout-all :sout-keep \
--http-cert '/etc/pki/Domain/SSL.Domain.com.Certificate.pem' \
--http-key '/etc/pki/Domain/SSL.Domain.com.PrivateKey.pem' \
&