Last active
March 27, 2023 14:21
-
-
Save koenkarsten/0063ab2a6c88051f5b3fca8da6f63a10 to your computer and use it in GitHub Desktop.
SRT Live Transmit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Preperations | |
FROM debian:11 | |
WORKDIR /tmp | |
RUN apt-get update | |
RUN apt-get install -y \ | |
git=1:2.30.2-1 \ | |
libssl-dev=1.1.1n-0+deb11u4 \ | |
tclsh \ | |
pkg-config=0.29.2-1 \ | |
cmake=3.18.4-2+deb11u1 \ | |
build-essential=12.9 \ | |
wget=1.21-1+deb11u1 \ | |
screen=4.8.0-6 | |
EXPOSE 4022/tcp | |
EXPOSE 9000-9999/udp | |
# Install SRT | |
RUN git clone https://github.com/Haivision/srt.git | |
WORKDIR /tmp/srt | |
RUN ls -lah | |
RUN ./configure && make | |
RUN mv srt-live-transmit /usr/bin | |
WORKDIR /tmp | |
RUN rm -rf srt | |
RUN mkdir /var/log/srt | |
# Install UDProxy | |
RUN wget https://github.com/pcherenkov/udpxy/archive/refs/tags/1.0-25.1.tar.gz | |
RUN tar -xzvf 1.0-25.1.tar.gz && rm 1.0-25.1.tar.gz | |
WORKDIR /tmp/udpxy-1.0-25.1/chipmunk | |
RUN make | |
RUN mv udpxy /usr/bin | |
WORKDIR /tmp | |
RUN rm -rf udpxy-1.0-25.1 | |
# Start Services | |
RUN touch startup.sh && chmod +x startup.sh | |
RUN echo 'screen -d -m udpxy -a 0.0.0.0 -p 4022 -M 30 -c 10' >> startup.sh | |
RUN echo 'srt-live-transmit "srt://0.0.0.0:9000?mode=listener&rcvbuf=300000000&rcvlatency=20000&passphrase=2289eeb3c662214bece0883ecf010ac0" udp://224.0.0.0:10000 -statspf:csv -statsout:/var/log/srt/9000-rcv.csv -logfile:/var/log/srt/9000-rcv.log -stats-report-frequency:5000 -verbose -loglevel:debug' >> startup.sh | |
ENTRYPOINT ["/bin/bash", "-c", "/tmp/startup.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment