-
Notifications
You must be signed in to change notification settings - Fork 23
Add srt protocol to docker #8
Comments
Hi @ndujar, could you give a reason for this change? Thanks! |
Hi @linxie47: However, I found out thath SRT is missing, and it is gaining traction as a good alternative to other "classic" protocols that are slowly becoming outdated.
It is very useful to be able to stream directly from a VCDP's docker image with low latency. Thanks :) |
Thanks for the reply. If you'd like to add this function, please submit one Pull Request. |
I would suggest to add SRT protocol to the docker image:
## libsrt https://github.com/Haivision/srt ARG LIBSRT_VERSION=1.4.1 ENV DEBIAN_FRONTEND noninteractive RUN apt-get install libssl-dev tclsh -y RUN DIR=/tmp/srt && \ mkdir -p ${DIR} && \ cd ${DIR} && \ wget https://github.com/Haivision/srt/archive/v${LIBSRT_VERSION}.tar.gz && \ tar -xz --strip-components=1 -f v${LIBSRT_VERSION}.tar.gz && \ cmake -DCMAKE_INSTALL_PREFIX=/usr/local && \ make && \ make install DESTDIR="/home/build" && \ make install && \ rm -rf ${DIR}
Then compile ffmpeg with this ability:
RUN cd /home/FFmpeg && \ find ${FFMPEG_MA_PATH}/patches -type f -name '*.patch' -print0 | sort -z | xargs -t -0 -n 1 patch -p1 -i && \ cp /root/patch/opencv.pc /usr/lib/pkgconfig/ && \ cp /root/patch/cvdef.h /usr/local/include/opencv4/opencv2/core/cvdef.h && \ ./configure --prefix="/usr" --extra-cflags="-I$IE_PATH/include" --extra-ldflags="-L$IE_PATH/lib/intel64" --libdir=/usr/lib/x86_64-linux-gnu --extra-libs="-lpthread -lm" --enable-shared --enable-gpl --enable-libass --enable-libfreetype --enable-openssl --enable-nonfree --enable-libdrm --enable-libmfx --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libjson_c --enable-libsrt --enable-libinference_engine_c_api --enable-libopencv --enable-python3 && \ make -j8 && \ make install DESTDIR="/home/build" && \ cp -rf python /home/build/python
Thanks! :)
The text was updated successfully, but these errors were encountered: