krull / docker-janus

Debian based docker image for https://github.com/meetecho/janus-gateway
GNU General Public License v3.0
59 stars 49 forks source link

Can you add libcurl >= 7.45.0 #6

Open Bhlowe opened 6 years ago

Bhlowe commented 6 years ago

Hi Brendan,

The streaming plugin requires libcurl >7.45.0 for RTSP connections. I see the following error.

Getting [WARN] RTSP digest authentication unsupported (needs libcurl >= 7.45.0)

I can pipe the rtsp to ffmpeg and use RTP.. but would like to use rtsp direct.

EDIT 2: This will build, but it didn't update curl like I wanted..

&& printf "\ndeb-src http://deb.debian.org/debian jessie main\ndeb-src http://deb.debian.org/debian jessie-updates main\n"  >> /etc/apt/sources.list \
&& cat /etc/apt/sources.list && echo "starting update..." \
&& DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y build-dep curl \
&&  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wget \
&& mkdir ~/curl \
&& cd ~/curl \
&& wget http://curl.haxx.se/download/curl-7.50.2.tar.bz2 \
&& tar -xvjf curl-7.50.2.tar.bz2 \
&& cd curl-7.50.2 \
&& ./configure \
&& make \
&& make install \
&& ldconfig \
&& cd .. \
krull commented 6 years ago

Hey Thanks for this.

I will add this sometime soon.

Thanks again.

krull commented 6 years ago

Hi @Bhlowe just an update, the stretch build I have has:

Setting up libcurl3:amd64 (7.52.1-5+deb9u3) ...

FYI. You can check this out at this branch.

YMMV

krull.

Bhlowe commented 6 years ago

Cool. Thanks. I also found it important to upgrade libmicrohttpd... I was getting crashes with the default one. (https://github.com/meetecho/janus-gateway/issues/212)

cd /tmp

wget http://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.16.tar tar -xvzf libmicrohttpd-0.9.16.tar.gz rm -f libmicrohttpd-0.9.16.tar.gz cd libmicrohttpd-0.9.16 ./configure make make install ldconfig

krull commented 6 years ago

@Bhlowe, I don't know if it still hold true, but https is still a cpu hog from a bug on libmicrohttpd, hence it wasn't recommended to go directly to libmicrohttpd via https. You can find more info here.