<br clear="all"><br clear="all"><br>Fabrizio Ciavatta<br>------------------------<br>
<br>
<br><br><div class="gmail_quote">2012/10/3 Fabrizio Ciavatta <span dir="ltr"><<a href="mailto:fabrizio.ciavatta@gmail.com" target="_blank">fabrizio.ciavatta@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi.<div><div>I thank you for your suggestions.</div><div>I tried as you described and I received the following messages:</div></div><div><br></div><div><div>sh-3.1$ export http_proxy=<a href="http://192.168.0.240:3128">http://192.168.0.240:3128</a></div>
<div>sh-3.1$ gst-launch-0.10 ksvideosrc ! x264enc tune=zerolatency ! flvmux ! rtmpsink location=rtmpt://xx.yy.zz.ww/live/gst_test</div><div>Setting pipeline to PAUSED ...</div>
<div>Pipeline is live and does not need PREROLL ...</div><div>Setting pipeline to PLAYING ...</div><div>New clock: GstSystemClock</div><div>ERROR: RTMP_Connect0, failed to connect socket. 10060 (Unknown error)</div><div>
ERROR: from element /GstPipeline:pipeline0/GstRTMPSink:rtmpsink0: Could not open resource for writing.</div>
<div>Additional debug info:</div><div>gstrtmpsink.c(228): gst_rtmp_sink_render (): /GstPipeline:pipeline0/GstRTMPSink:rtmpsink0:</div><div>Could not connect to RTMP stream "rtmpt://xx.yy.zz.ww/live/gst_test" for writing</div>
<div>Execution ended after 26123047000 ns.</div><div>Setting pipeline to PAUSED ...</div><div>sh-3.1$</div><span class="HOEnZb"><font color="#888888"><br>Fabrizio Ciavatta<br>------------------------</font></span><div class="im">
<br>
<br><br><div class="gmail_quote">2012/10/3 Atish Nazir <span dir="ltr"><<a href="mailto:gstreamer@littleworld.co.uk" target="_blank">gstreamer@littleworld.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Fabrizio,<br>I've not any experience of the rtmpsink element however I have two guesses that might help you along:<br><br>* RTMP cannot tunnel through HTTP, you need RTMPT variant. A quick gander through the source of rtmpsink suggests it support this protocol variant<br>
* rtmpsink uses mplayer library as a backend, so I would be unsurprised if it supported http_proxy environment variables<br><br>e.g.:<br><br>export http_proxy=http://proxy_server_name:proxy_server_port<br>gst-launch-0.10 ksvideosrc ! x264enc tune = zerolatency ! flvmux ! rtmpsink location = rtmpt://my_server_fms/live/gst_<div>
test</div><br><br>An easy way to test the efficiency of the environment variable here would be to configure netcat to listen and direct your proxy config that way<br><br>nc -l 1234<br>export http_proxy=<a href="http://localhost:1234" target="_blank">http://localhost:1234</a><br>
gst-launch-0.10 ksvideosrc ! x264enc tune = zerolatency ! flvmux ! rtmpsink location = rtmpt://my_server_fms/live/gst_<div>test</div><br>If you see an HTTP request popping up on STDOUT of netcat then you're on your way.<br>
<br>HTH<br><br></blockquote></div></div></div>
</blockquote></div><br>