Skip to main content
July 12, 2011
Question

Cannot play video over RTMPT

  • July 12, 2011
  • 2 replies
  • 2190 views

Hello all,

i have a linux machine with two NICs, one for Apache/PHP (port 80) and the other for FMS 4 (ports 1935, 80). I need to use RTMPT over port 80 due to our organization wireless network restrictions. I think i have set up everything right, but we cannot see any video using the wifi clients. Apparently, the problem disappears when opening the firewall and allowing port 1935 traffic.

I have passed the tests at http://www.flashcomguru.com/apps/port_test/index.cfm from my wireless development machine:


RTMP         DEFAULT    TimeOut
RTMP         80             Success
RTMP         443            Success
RTMP         1935           TimeOut
RTMPT        DEFAULT    Success
RTMPT        80             Success
RTMPT        443            Success
RTMPT        1935           Failed

I've also passed the test when using the LAN machine behind the opened firewall:


RTMP         DEFAULT    Success
RTMP         80             Success
RTMP         443            Success
RTMP         1935           Success
RTMPT        DEFAULT    Success
RTMPT        80             Success
RTMPT        443            Success
RTMPT        1935           Success

So it seems that i actually can do RTMPT. I'm using the default VOD service, but found no solution all over the internet on how to properly configure FMS to achieve this.

We have a custom Flex app to make video streaming. Our call seems like this:

rtmpt://142.210.27.19:80/vod/mp4:vid1.mp4

In my fms.ini i've got:

SERVER.HTTPD_ENABLED = true
ADAPTOR.HOSTPORT = 142.210.27.19:1935,80

HTTPPROXY.HOST =

In the Adaptor.xml, the relevant part i find is this:

<HTTPTunnel>
    <Enable>true</Enable>
    <NodeID></NodeID>

    <IdlePostInterval>512</IdlePostInterval>

    <IdleAckInterval>512</IdleAckInterval>

    <IdleTimeout>60</IdleTimeout>

    <MimeType>application/x-fcs</MimeType>

    <WriteBufferSize>16</WriteBufferSize>

    <SetCookie>false</SetCookie>

    <Redirect enable="false" maxbuf="16384">
      <Host port="80">:8080</Host>
      <Host port="443">:8443</Host>
    </Redirect>

   <HttpProxy enable="true" maxbuf="16384">

      <Host port="80">${HTTPPROXY.HOST}</Host>

    </HttpProxy>

    <NeedClose>true</NeedClose>

    <MaxHeaderLineLength>1024</MaxHeaderLineLength>

    <MaxPipelinedRequests>5</MaxPipelinedRequests>


    <Edge name="Edge1">
        <Enable>true</Enable>
        <IdlePostInterval>512</IdlePostInterval>
        <IdleAckInterval>512</IdleAckInterval>
        <MimeType>application/x-fcs</MimeType>
        <WriteBufferSize>16</WriteBufferSize>
      <SetCookie>false</SetCookie>

      <Redirect enable="false" maxbuf="16384">
        <Host port="80">:8080</Host>
        <Host port="443">:8443</Host>
      </Redirect>

      <NeedClose>true</NeedClose>
      <MaxWriteDelay>40</MaxWriteDelay>
      <MaxPipelinedRequests>5</MaxPipelinedRequests>
    </Edge>
  </HTTPTunnel>

I really don't know where to look since by default, it should be auto-roll-back to RTMPT if it can't go RTMP. I'm also in doubt if this could be because our "smart wifi router" is inspecting and rejecting the packets even being tunneled.

I've executed Wireshark and i cannot see any streaming petition to port 80. All the traffic i see is for 1935 port. Moreover, when testing from inside the firewalled wifi network, it seems that no petition reach the FMS NIC, it seems that all the petitions are going through the Apache/PHP NIC on port 1935!!

I would really appreciate some point or advice on how to debug this, which logs to pay attention and so on.

Thank you so much,

Juan

    This topic has been closed for replies.

    2 replies

    July 19, 2011

    Hello Manish,

    you were right, it was a network issue.

    My apologies, it seems that somehow something inside our network blocked some ports randomly. After a reboot of some machines the FMS seems to be reachable and fine. I'll have to make some more tests with wireless network clients, but that's another story.

    Thank you so much!

    Best,

    Juan

    July 14, 2011

    Please help!

    i hope some Adobe Employee is reading this to guide me further. Or is there any other way of get support? Maybe a telephone located in Spain/Europe?

    I've seen this is a common topic on internet, i'm stuck since it should be running without so much effort, not asking for a complete solution (that would be awesome) but even a guideline to research, maybe an adobe documentation i've missed...

    Thanks again,

    Juan

    Participating Frequently
    July 15, 2011

    Acoording to you since the port 80 traffic is not reaching FMS, then there is a possibility that port 80 could be used by any other process. Please stop the process which is using port 80 and then try.

    July 15, 2011

    Hello Manish,

    thanks for your answer, I've doublechecked it, and only fmsedge is running on port 80 that NIC, no other process bounded to it.

    I've seen that httpd is running on port 8134, and it bounds to that port on any available NIC. I activated the internal FMS apache server, but i have the proxy (HTTPPROXY.PORT) disabled.

    In Server.xml i have  the IP associated to FMS's NIC in the <LocalHost> tag, but i realised i had the <PublicIP> tag empty. I've tried filling the PublicIP field with the IP associated to FMS's NIC but apparently i had no luck. Still no stream through port 80.

    Thanks anyway Manish, please tell me if any other idea comes to your mind so i can digg into it.

    Best,

    Juan.