RTMP through proxy server

Orione1974 orione1974 at email.it
Wed Oct 3 08:23:03 PDT 2012


Fabrizio Ciavatta
------------------------



2012/10/3 Fabrizio Ciavatta <fabrizio.ciavatta at gmail.com>

> Hi.
> I thank you for your suggestions.
> I tried as you described and I received the following messages:
>
> sh-3.1$ export http_proxy=http://192.168.0.240:3128
> sh-3.1$ gst-launch-0.10 ksvideosrc ! x264enc tune=zerolatency ! flvmux !
> rtmpsink location=rtmpt://xx.yy.zz.ww/live/gst_test
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: RTMP_Connect0, failed to connect socket. 10060 (Unknown error)
> ERROR: from element /GstPipeline:pipeline0/GstRTMPSink:rtmpsink0: Could
> not open resource for writing.
> Additional debug info:
> gstrtmpsink.c(228): gst_rtmp_sink_render ():
> /GstPipeline:pipeline0/GstRTMPSink:rtmpsink0:
> Could not connect to RTMP stream "rtmpt://xx.yy.zz.ww/live/gst_test" for
> writing
> Execution ended after 26123047000 ns.
> Setting pipeline to PAUSED ...
> sh-3.1$
>
> Fabrizio Ciavatta
> ------------------------
>
>
>
> 2012/10/3 Atish Nazir <gstreamer at littleworld.co.uk>
>
>> Hi Fabrizio,
>> I've not any experience of the rtmpsink element however I have two
>> guesses that might help you along:
>>
>> * RTMP cannot tunnel through HTTP, you need RTMPT variant.  A quick
>> gander through the source of rtmpsink suggests it support this protocol
>> variant
>> * rtmpsink uses mplayer library as a backend, so I would be unsurprised
>> if it supported http_proxy environment variables
>>
>> e.g.:
>>
>> export http_proxy=http://proxy_server_name:proxy_server_port
>> gst-launch-0.10 ksvideosrc ! x264enc tune = zerolatency ! flvmux !
>> rtmpsink location = rtmpt://my_server_fms/live/gst_
>> test
>>
>>
>> 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
>>
>> nc -l 1234
>> export http_proxy=http://localhost:1234
>> gst-launch-0.10 ksvideosrc ! x264enc tune = zerolatency ! flvmux !
>> rtmpsink location = rtmpt://my_server_fms/live/gst_
>> test
>>
>> If you see an HTTP request popping up on STDOUT of netcat then you're on
>> your way.
>>
>> HTH
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20121003/7ec6ad75/attachment.html>


More information about the gstreamer-devel mailing list