Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Add srt protocol to docker #8

@ndujar

Description

@ndujar

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! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions