Hello,
I have a gstreamer RTSP server that works fine when I run on the HOST machine running Ubuntu 18.04. However, I run the exact code inside a docker container and I am unable to connect to the RTSP server from the HOST machine. I get the error gst-launch-1.0 rtspsrc location=rtsp://0.0.0.0:8554/video latency=0 protocols=tcp ! rtpvrawdepay ! autovideosink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0"; Progress: (open) Opening Stream Progress: (connect) Connecting to rtsp://0.0.0.0:8554/video *0:00:00.508529962 22898 0x55b471b54a80 ERROR default gstrtspconnection.c:1050:gst_rtsp_connection_connect_with_response: failed to connect: HTTP proxy connection not allowed 0:00:00.508639036 22898 0x55b471b54a80 ERROR rtspsrc gstrtspsrc.c:5110:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to server. (Generic error) ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing. *Additional debug info: gstrtspsrc.c(7958): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Failed to connect. (Generic error) ERROR: pipeline doesn't want to preroll. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ... *I have tried following:* 1. Disable the firewall (sudo ufw disable) 2. unset http_proxy & https_proxy 3. Add 0.0.0.0 to no_proxy 4. Ensured that the docker port is published with -p 8554:8554 5. *IPtables entry* Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination DOCKER-USER all -- anywhere anywhere DOCKER-ISOLATION-STAGE-1 all -- anywhere anywhere ACCEPT all -- anywhere anywhere ctstate RELATED,ESTABLISHED DOCKER all -- anywhere anywhere ACCEPT all -- anywhere anywhere ACCEPT all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain DOCKER (1 references) target prot opt source destination ACCEPT tcp -- anywhere frbel01-eth_220.gdn.myorg.com tcp dpt:8554 Chain DOCKER-ISOLATION-STAGE-1 (1 references) target prot opt source destination DOCKER-ISOLATION-STAGE-2 all -- anywhere anywhere RETURN all -- anywhere anywhere Chain DOCKER-ISOLATION-STAGE-2 (1 references) target prot opt source destination DROP all -- anywhere anywhere RETURN all -- anywhere anywhere Chain DOCKER-USER (1 references) target prot opt source destination RETURN all -- anywhere anywhere Any help is really appreciated. regards Rakesh -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi rakeshb1977,
What is your docker command? Perhaps you need to add --network="host" as a flag to your docker run command, so the container uses the host network stack. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |