atyenoria / janus-webrtc-gateway-docker

Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
687 stars 200 forks source link

build failed #6

Closed fhenryco closed 6 years ago

fhenryco commented 6 years ago

i tried docker build -t atyenoria/janus-gateway-docker . and got ... ... ./configure: line 560: 0: Bad file descriptor The command '/bin/sh -c cd ~/ffmpeg_sources && wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz && tar xzvf yasm-1.3.0.tar.gz && cd yasm-1.3.0 && ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" && make && make install && make distclean' returned a non-zero code: 1

i'm a beginner with docker so may be i did something wrong ... i tried your build because i had no success with all prebuilt docker images i found on dockerhub , coud not receive the vp8 gstreamer demo stream in web browser ...

atyenoria commented 6 years ago

Thanks for your feedback. I will check the error tmr. Please wait.

fhenryco commented 6 years ago

Thanks, Why dont you have a prebuilt image on docker hub ? is it because some configurations can only be performed before building ? i had no luck with https://hub.docker.com/r/efacilitation/docker-janus-webrtc-gateway/ only the sound demos worked , not the gstreamer vp8 on firefox , so i was wondering if my browser needs special settings or if i need some special codecs : i only get a white area instead of the gstreamer videotestsrc image... i also could not access anything except on port 81:80, so wondering wether may be the other ports (7088:7088  8088:8088 and 8188:8188) are only there for the web page to access the API and not meant to be accessed through a browser ..(?) regards F H-C Le vendredi 13 octobre 2017 16:44:55 UTC+2, Akinori Nakajima notifications@github.com a écrit :

Thanks for your feedback. I will check the error tmr. Please wait.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

atyenoria commented 6 years ago

I checked this. I can't replicate the error. ./configure: line 560: 0: Bad file descriptor is common problem for docker. Check the Stack Overflow. https://github.com/moby/moby/issues/27410 And, my docker ver is Docker version 1.13.1, build 092cba3.

The reason why I don't prepare the pre-build img is that We should use the latest janus commit for avoiding the errors raised before in the community. So, I have no plans of creating that.

No, special browser setting is required for this. About that errors, use the janus google group. I can't understand your difficulty.

fhenryco commented 6 years ago

thanks, i had docker 1.9 .... indeed it 's building better with a more recent version of Docker but it's huge , built started approx 1/4 hour ago and not yet finished !!  F Le samedi 14 octobre 2017 14:59:17 UTC+2, Akinori Nakajima notifications@github.com a écrit :

I checked this. I can't replicate the error. ./configure: line 560: 0: Bad file descriptor is common problem for docker. Check the Stack Overflow. moby/moby#27410 And, my docker ver is Docker version 1.13.1, build 092cba3.

The reason why I don't prepare the pre-build img is that We should use the latest janus commit for avoiding the errors raised before in the community. So, I have no plans of creating that.

No, special browser setting is required for this. About that errors, use the janus google group. I can't understand your difficulty.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

fhenryco commented 6 years ago

built and docker run successfull, now need to learn how to use it...  thanks  Le samedi 14 octobre 2017 20:19:23 UTC+2, Frédéric Henry-Couannier fhenryco@yahoo.fr a écrit :

thanks, i had docker 1.9 .... indeed it 's building better with a more recent version of Docker but it's huge , built started approx 1/4 hour ago and not yet finished !!  F Le samedi 14 octobre 2017 14:59:17 UTC+2, Akinori Nakajima notifications@github.com a écrit :

I checked this. I can't replicate the error. ./configure: line 560: 0: Bad file descriptor is common problem for docker. Check the Stack Overflow. moby/moby#27410 And, my docker ver is Docker version 1.13.1, build 092cba3.

The reason why I don't prepare the pre-build img is that We should use the latest janus commit for avoiding the errors raised before in the community. So, I have no plans of creating that.

No, special browser setting is required for this. About that errors, use the janus google group. I can't understand your difficulty.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

fhenryco commented 6 years ago

Dear  could you please clarify the purpose of this ? PORT=8888 IP=0.0.0.0 /root/bin/ffmpeg -y -i  "rtmp://$IP:80/rtmp_relay/ $1  live=1"  -c:v libx264 -profile:v main -s 640x480  -an -preset ultrafast  -tune zerolatency -f rtp  rtp://$IP:$PORT

Is this to be ran inside the container ?Does this assume that there is already a rtmp source available at IP:80  which ffmpeg converts to rtp ? (What is $1 ?)if yes it means i woud need to first provide a rtmp stream which i don't know how to do , but there is may be  the alternative of launching a gstreamer rtsp server (which i know how to) and replacing rtmp://$IP:80/rtmp_relay/$1  live=1 by rtsp://rtsp_remote_IPaddress:rtsp_remote_port would work ?

I getConnection to tcp://IP:80 failed: Connection refused messages ... are there special firewall config needed inside the container ? Regards, F H-C PS: sorry for the naive questions but i found this janus-webrtc searching for a simple tool to receive a gstreamer stream in a webpage and did not expect to only find extremely heavy and complicated solutions for a such a simple task             

Le dimanche 15 octobre 2017 05:18:04 UTC+2, Frédéric Henry-Couannier <fhenryco@yahoo.fr> a écrit :  

built and docker run successfull, now need to learn how to use it...  thanks  Le samedi 14 octobre 2017 20:19:23 UTC+2, Frédéric Henry-Couannier fhenryco@yahoo.fr a écrit :

thanks, i had docker 1.9 .... indeed it 's building better with a more recent version of Docker but it's huge , built started approx 1/4 hour ago and not yet finished !!  F Le samedi 14 octobre 2017 14:59:17 UTC+2, Akinori Nakajima notifications@github.com a écrit :

I checked this. I can't replicate the error. ./configure: line 560: 0: Bad file descriptor is common problem for docker. Check the Stack Overflow. moby/moby#27410 And, my docker ver is Docker version 1.13.1, build 092cba3.

The reason why I don't prepare the pre-build img is that We should use the latest janus commit for avoiding the errors raised before in the community. So, I have no plans of creating that.

No, special browser setting is required for this. About that errors, use the janus google group. I can't understand your difficulty.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

atyenoria commented 6 years ago

That is used to transcode the rtmp stream got from other sources (other networks) into webrtc stream. The simple example is that you have to cover the IE11 which can't input webrtc, so that you have to use the flash camera and push the stream to the your docker container.