zoukankan      html  css  js  c++  java
  • [AS3.0] FMS改变录制视频的默认地址

    FMS默认的视频录制或点播的地址是在{FMS-Install-Dir}applications,如何指向到其他目录。

    1.改变applications的目录指向:

    在FMS安装目录下找到/conf/fms.ini文件,修改VHOST.APPSDIR的值,假如目录指向到D:ProjectsFMSApp,则修改为VHOST.APPSDIR = D:ProjectsFMSApp即可,重新启动FMS,applications目录就指向FMSApp了。

    2.改变视频直播目录:

    将applications下的live文件夹(包括live下的所有文件)复制到FMSApp下,修改fms.ini文件里面的LIVE_DIR值,如LIVE_DIR = D:ProjectsFMSApplivemedia,重新启动FMS生效。

    3.改变视频点播目录:

    将applications下的vod文件夹(包括vod下的所有文件)复制到FMSApp下,修改fms.ini文件里面的VOD_COMMON_DIR和VOD_DIR值,如VOD_COMMON_DIR = D:ProjectsFMSAppvodmedia和VOD_DIR = D:ProjectsFMSAppvodmedia,重新启动FMS生效,需要解释下:

    VOD_COMMON_DIR:指向的是一个http地址,可以通过web访问到的,例如:{FMS-Install-Dir}webrootvod,主要用于渐进式下载的视频。

    VOD_DIR:指向的是一个rtmp地址,可以通过rtmp链接访问到,例如:{FMS-Install-Dir}applicationsvodmedia

    如果你的视频点播用的是http方式,就可以修改VOD_COMMON_DIR的值,用rtmp方式的话就只要修改VOD_DIR的值。

    4.也可以自定义一个服务器目录:

    如在FMSApp下新建record目录,将vod下的文件复制到record下面,并修改fms.ini里面的VOD_COMMON_DIR和VOD_DIR值,指向record,那么你录制的视频就会出现到record文件夹里面,重启后生效,以下是改变后的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 = admin
    
    # 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 =
    
    # Group id in which to run the process (Linux Only)
    # For example:
    #    SERVER.PROCESS_GID = 500
    #
    SERVER.PROCESS_GID =
    
    # License key for Flash Media Server
    # For example:
    #    SERVER.LICENSEINFO = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
    #
    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>applicationslive
    #
    LIVE_DIR = D:ProjectsFMSApp
    ecordmedia
    
    # 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>webrootvod
    #
    VOD_COMMON_DIR = D:ProjectsFMSApp
    ecordmedia
    
    # 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>applicationsvodmedia
    #
    VOD_DIR = D:ProjectsFMSApp
    ecordmedia
    
    # 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 = true
    
    ################################################################
    # 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
    
    # 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 tag specifies an IP address for the player to use instead of a hostname when
    #making the RTMPT connection to FMS. If nothing is specified, FMS will automatically
    #determine the IP to use.
    #
    ADAPTOR.HTTPIDENT2 = 
    
    
    ##############################################################
    # This section contains configurable parameters in Vhost.xml #
    ##############################################################
    
    # Application directory for the virtual host
    # For example:
    #    VHOST.APPSDIR = C:myapps
    #
    VHOST.APPSDIR = D:ProjectsFMSApp
    
    ####################################################################
    # 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 FilesFooscripts
    #
    APP.JS_SCRIPTLIBPATH = C:Program FilesAdobeFlash Media Server 4.5scriptlib
    
    ###############################################################
    # 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
  • 相关阅读:
    自定义服务与调用--------factory
    如果没有开启keepalive 默认发送等超时
    你知道数据中台,但你肯定没听过报表中台,我靠它征服百万数据人
    数据库规范化:模式分解算法(3NF,BCNF分解,附带口诀,通俗易懂)
    直播丨 SQL大赛冠军怀晓明:深入解析Oracle存储过程中的性能瓶颈
    数据库服务器主机重启故障诊断分析
    不看可惜!无需代码,小白都会的可视化大屏,领导不重用你都难
    Docker 安装 ActiveMQ 修改账号密码
    使用Hexo 搭建你的技术博客
    【LeetCode】235.二叉搜索树的最近公共祖先(递归+迭代,详细图解,java实现)
  • 原文地址:https://www.cnblogs.com/frost-yen/p/6242723.html
Copyright © 2011-2022 走看看