Skip to main content
Participant
April 30, 2009
Question

RTMP and streaming not working for Start Screen

  • April 30, 2009
  • 3 replies
  • 13798 views

So, I've freshly installed the FSM demo on a redhat linux box, and have everything working. From that start screen running on Local Host, I click the "Play video (HTTP)" and that video of a train shows up. Cool. But when I click the link above it ("Play Video (RTMP)") I get an error message:

"Connection Error. Please press Play to try again." 

and no matter how many times I hit play, I get that same message. The Dynamic stream doesn't work either, and the Interactive sucessfully displays webcam feeds, but doesn't show the "Play Live Stream" button thing.

Is there anything special you have to do to get the RTMP stuff working? Some special command or server you have to run? Would firewalls intefere with things (I'm pretty sure there isn't one on the machine, but I'm flailing wildly here) or would permissions mess things up? I'm completely lost ^_^;;

I guess I should also add that there doesn't seem to be any log files. I'm looking under the server install directory, and there isn't even a "log" folder. There isn't one under Apache, either. It confuses me. So far all I can find on the internet is instructions to look at the log files...but if they aren't there... Am I just looking in the wrong places, or are they just not being generated yet?

I did a tcpdump with wireshark, and the web app IS pinging port 1935 (for RTMP), but the packets are failling the checksum and are refusing to be reassembled because of that. Is this making sense to ANYBODY?

    This topic has been closed for replies.

    3 replies

    Participant
    March 3, 2011

    Funnily enough, I had this exact issue again (more than two years later) when installing FMS on a new machine.  Sure enough, just

    restarting the server a few times worked like a charm (so looks like nothing else I had tried last time was the actual solution).  I can see

    both RTMP and HTTP videos on the demo page.

    Participating Frequently
    August 18, 2009

    I have the same problem here. No rtmp service. We are using our own previously installed Apache webserver running/listening on port 80, not the built-in one.

    When choosing PLAY VIDEO (HTTP) it seems to work fine.

    Pasted Graphic 2.tiff

    However, when choosing PLAY VIDEO (RTMP) it fails with a "Connection Error. Please press play again" message.

    Pasted Graphic 3.tiff

    The FMS server is installed in the default directory /opt/adobe/fms/.

    Also of note, when starting the server you can bind it to an IP or just to "any IP". When configuring the fms.ini file to bind to either of the server's specific IPs directly you get these errors on start up:

    ( fms.ini set to ADAPTOR.HOSTPORT = ***.***.**.***:1935,8080 )

    # tail /var/log/messages

    Aug 18 12:40:23 228215-web1 Service[24949]: Server starting...

    Aug 18 12:40:24 228215-web1 Service[24949]: Server started (/opt/adobe/fms/conf/Server.xml).

    Aug 18 12:40:24 228215-web1 Adaptor[24969]: Failed to create listener for adaptor _defaultRoot_, IP ***.***.**.***, port 1935: .

    Aug 18 12:40:24 228215-web1 Adaptor[24969]: Failed to create listener for adaptor _defaultRoot_, IP ***.***.**.***, port 8080: .

    Aug 18 12:40:24 228215-web1 Adaptor[24969]: Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4

    Aug 18 12:40:25 228215-web1 Adaptor[24969]: Failed to start listeners for adaptor _defaultRoot__edge1.

    Aug 18 12:40:25 228215-web1 Edge[24969]: Failed to start edge : _defaultRoot__edge1

    ( fms.ini set to ADAPTOR.HOSTPORT = :1935,8080 )

    ]# tail /var/log/messages

    Aug 18 12:43:58 228215-web1 Service[25283]: Server starting...

    Aug 18 12:43:58 228215-web1 Service[25283]: Server started (/opt/adobe/fms/conf/Server.xml).

    Aug 18 12:43:58 228215-web1 Adaptor[25303]: Listener started ( _defaultRoot__edge1 ) : localhost:19350/v4

    Aug 18 12:43:59 228215-web1 Adaptor[25303]: Listener started ( _defaultRoot__edge1 ) : 1935/v4

    Aug 18 12:43:59 228215-web1 Adaptor[25303]: Listener started ( _defaultRoot__edge1 ) : 8080/v4

    When opening the "Launch the Flash Media Administration Console" the page opens and you can login to see that the server is up and running:

    Pasted Graphic 1.tiff

    For further reference, here is the current /opt/adobe/fms/conf/fms.ini file:

    ----START fms.ini-----------

    ###########################################################################

    # fms.ini contains substitution variables for Flash Media Server          #

    # configuration files. Lines beginning with '#' are considered comments.  #

    # A substitution variable is in the form <name>=<value>. Everything up to #

    # the first '=' is considered the name of the substitution variable, and  #

    # everything after the first '=' is considered the substitution value. If #

    # you want a substitution variable to have leading or trailing spaces,    #

    # enclose the value around double quotes. For example, foo=" bar "        #

    ###########################################################################

    ###############################################################

    # This section contains configurable parameters in Server.xml #

    ###############################################################

    # Username for server admin

    # For example:

    #    SERVER.ADMIN_USERNAME = foo

    #

    SERVER.ADMIN_USERNAME = *********

    # Password for server admin

    # For example:

    #    SERVER.ADMIN_PASSWORD = bar

    #

    SERVER.ADMIN_PASSWORD = ***********

    # IP address and port Flash Media Admin Server should listen on

    # For example:

    #    SERVER.ADMINSERVER_HOSTPORT = :1111

    #

    SERVER.ADMINSERVER_HOSTPORT = :1111

    # User id in which to run the process (Linux Only)

    # For example:

    #    SERVER.PROCESS_UID = 500

    #

    SERVER.PROCESS_UID = 99

    # Group id in which to run the process (Linux Only)

    # For example:

    #    SERVER.PROCESS_GID = 500

    #

    SERVER.PROCESS_GID = 99

    # License key for Flash Media Server

    # For example:

    #    SERVER.LICENSEINFO = FMD200-XXXXX-XXXXX-XXXXX

    #

    SERVER.LICENSEINFO =

    # LIVE_DIR denotes the full path of sample "Live" application's

    # folder for storing any live stream recorded by server.

    # For example:

    #    LIVE_DIR = <FMS_Installation_Dir>\applications\live

    #

    LIVE_DIR = /opt/adobe/fms/applications/live

    # VOD_COMMON_DIR denotes the full path of sample "VOD" application's

    # folder for storing onDemand and Progressive Download .flv/.mp3 files.

    # File stored in this folder can be streamed and are also PD-able.

    # Note : If you are using the default installation of Apache as a webserver,

    # and if you modify VOD_COMMON_DIR, please change the document root

    # accordingly in httpd.conf.

    # For example:

    #    VOD_COMMON_DIR = <FMS_Installation_Dir>\webroot\vod

    #

    VOD_COMMON_DIR = /opt/adobe/fms/webroot/vod


    # VOD_DIR denotes the full path of sample "VOD" application's

    # folder for storing onDemand only .flv/.mp3 files. Files stored in

    # this folder are not PD-able

    # For example:

    #    VOD_DIR = <FMS_Installation_Dir>\applications\vod\media

    #

    VOD_DIR = /opt/adobe/fms/applications/vod/media


    # The maximum size of the FLV cache, in megabytes.

    # The default is 500MB.

    #

    SERVER.FLVCACHE_MAXSIZE=500

    # Whether to start and stop the included HTTP server along

    # with FMS.

    #

    SERVER.HTTPD_ENABLED = false

    ################################################################

    # This section contains configurable parameters in Adaptor.xml #

    ################################################################

    # IP address and port(s) Flash Media Server should listen on

    # For example:

    #    ADAPTOR.HOSTPORT = :1935,80

    #

    #ADAPTOR.HOSTPORT = :1935,80

    ADAPTOR.HOSTPORT = :1935,8080

    # IP (address and) port that Flash Media Server should proxy

    # unknown HTTP requests to. Leave empty to disable proxying.

    # With no address, specifies a localhost port.

    # For example:

    #    HTTPPROXY.HOST = webfarm.example.com:80

    #

    HTTPPROXY.HOST = :8134

    ##############################################################

    # This section contains configurable parameters in Vhost.xml #

    ##############################################################

    # Application directory for the virtual host

    # For example:

    #    VHOST.APPSDIR = C:\myapps

    #

    VHOST.APPSDIR = /opt/adobe/fms/applications


    ####################################################################

    # This section contains configurable parameters in Application.xml #

    ####################################################################

    # List of semi-colon delimited paths in which to search for script to load

    # For example:

    #    APP.JS_SCRIPTLIBPATH = C:\scripts;C:\Program Files\Foo\scripts

    #

    APP.JS_SCRIPTLIBPATH = /opt/adobe/fms/scriptlib

    ###############################################################

    # This section contains configurable parameters in Logger.xml #

    ###############################################################

    LOGGER.LOGDIR =

    ####################################################################

    # This section contains configurable parameters in Users.xml #

    ####################################################################

    # Enable or disable using HTTP requests to execute admin commands.

    # Set to "true" to enable, otherwise it will be disabled.  The

    # actual commands permitted for server admin and virtual host admin

    # users can be set in Users.xml.

    USERS.HTTPCOMMAND_ALLOW = true

    ----END fms.ini-----------

    The firewall is accepting connections for port 1935 and 1111 and we don't use port 8080 (only added it as a test). The console comes up fine, but no rtmp requests get through it seems..

    Any suggestions?

    ghost31379
    Inspiring
    August 18, 2009

    what are you using to play the video? As2 or As3?.....is it the demo files?from FMS?.....and what IDE do you use or plan to use?flashcs3...flex...?

    Have you ever got it to stream from the RTMP........if this is your first time using or if you're new to FMS you have to connect to the server first and after a successful connection you can stream from FMS.....but you dont have to connect when playing thru HTTP....which is not true streaming

    Participating Frequently
    August 18, 2009

    @ghost

    No, we have not gotten it to stream from the RTMP, which is the problem. The demo files will not stream from the default index page running on a local site. So we have not connected I assume. I am new to this installation and installed it on a server I am new to as well, running Redhat. Normally I work on Solaris or OSX servers.

    We have two IPs and all the websites run on one and the admin server (Plesk Panel) runs on the other. The FMS was installed as previously noted.

    Sorry if I missed something.

    ghost31379
    Inspiring
    May 4, 2009

    Slightly makes sense but i would need to look at some of your code maybe..........i dont know if you are connecting to server or not.....but you have to connect to FMS first.....and after a successful connection you can play the streams......you cant play a stream directly without connecting to FMS first its a different approach if you've never used it before......

    Participant
    May 4, 2009

    Maybe I'm confused...but the 'code' I'm using is the default stuff that generates the start screen, right out of the box. I've changed nothing. I'm really confused, because if it was that code, then .... well, why would Adobe put out broken code?I kind of figured maybe I installed something wrong, or maybe something is configured badly ...

    I guess I'm extra confused because looking at that html page that generates the start screen (at least I think it is it) doesn't do me much good, either. I can't make any modifications to it, not even something as simple as deleting the whole page! No matter what I do, the start screen still shows up. Even if I delete the videos that it manages to progressively play, it still plays them.

    Does this server work completely differently than I'm thinking? I thought that at least it goes and looks at its html or content files, and then just serves them. My browser isn't caching things, I've checked, so why would the server be doing so?

    I'm so confused -.-;;

    Participant
    August 5, 2009

    Hello, did you ever figure this out?

    I've got exactly the same problem!!

    Would love to know the answer!

    Thanks