Strange live stream recording issue

We are trying to record longer live streams on FMS 2.0
real-time by duplicating the stream on the FMS and recording plus
broadcasting at the same time. The recording seems to work but for
some strange reason FMS stops recording after the first 4-5 minutes
without throwing any error. Any idea what might be causing this?
Which settings should we check? Any assistance is highly
appreciated.
Here is the code portion that handles the recording ('play'
is the stream that is published from the streaming client):
var stream =
Stream.get('broadcast/'+chid+'/'+date.getTime());
stream.owner = this;
stream.onStatus = function(info) {
if (info.code == 'NetStream.Play.UnpublishNotify') {
application.saveVideo(this.owner, this.name,
Stream.length(this.name));
stream.record();
stream.play('channel.'+chid);
Thank you.

This is similar to another problem that came up not sol long
ago... it turned out to be how the stream variable was declared.
Is the portion of code you posted part of a function? If so,
this line:
var stream =
Stream.get('broadcast/'+chid+'/'+date.getTime());
might be the problem.
If you declare a variable inside of a function, the scope of
that the variable is the function, not the application. When the
function terminates, the variable will get garbage collected on the
next GC. As I understand things, that will cause the stream to be
closed.
I might try assiging the stream var to the application
object:
application.stream =
Stream.get('broadcast/'+chid+'/'+date.getTime());

Similar Messages

  • HLS Live Streaming / LivePkgr issues

    Greetings!
    We just began using AMS for live streaming with HLS and we encouter some serious issues. Our first commercial live event is scheduled to next Wednesday and we cannot afford to lose our customer so your help is greatly appreciated.
    We have two issues which are probably related :
    When we start streaming all goes well for the first couple minutes but passed that point the stream gets less fluid. In the video player you can see a pause - dropped frames? - then the stream resumes fines. Then after say 30 seconds another pause and so on. If we stream for long enough the player finally goes black and the stream cannot be resumed.
    We experience some random AMS service shutdown every other day or so. The server just stops streaming for an unkown reason. Please have a look at our edge log below. Looks like we have some recuring "bind failed" errors but I have no idea if they are related.
    Again your help is greatly appreciated. On a side note we would be happy to purchase per-incident support from Adobe to solve the issue asap but it looks it's not available anymore. Anybody from the staff feel free to PM me about it.
    Link : http://www.webtv.coop/group/Test-WebTV/f9b9c899885569fa901a787fcdb08568
    User : test
    Pass : test
    Thanks a bunch,
    Ph.
    edge.00.log
    #Version: 1.0
    #Start-Date: 2014-07-25 00:02:45
    #Software: Adobe Media Server 5.0.3 r3029 x64
    #Date: 2014-07-25
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-07-25    00:02:40        28648   (i)2581173    Host: videodb.webtv.coop IPv4: 10.2.2.8 -
    2014-07-25    00:02:40        28648   (i)2631180    Info from AccessAdaptor: Access Adaptor started /opt/adobe/ams/modules/access/libconnect.so.    -
    2014-07-25    00:02:40        28648   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP localhost, port 19350: TCCommBridge::createListener 127.0.0.1:19350/v4: bind failed!!!.   -
    2014-07-25    00:02:40        28648   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP , port 1935: TCCommBridge::createListener 0.0.0.0:1935/v4: bind failed!!!.        -
    2014-07-25    00:02:40        28648   (e)2631114    Failed to start listeners for adaptor backup_defaultRoot__edge1.        -
    2014-07-25    00:02:40        28648   (e)2791225    Failed to start edge : backup_defaultRoot__edge1        -
    #Date: 2014-07-25
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-07-25    00:04:50        28847   (i)2581173    Host: videodb.webtv.coop IPv4: 10.2.2.8 -
    2014-07-25    00:04:50        28847   (i)2631180    Info from AccessAdaptor: Access Adaptor started /opt/adobe/ams/modules/access/libconnect.so.    -
    2014-07-25    00:04:50        28847   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP localhost, port 19350: TCCommBridge::createListener 127.0.0.1:19350/v4: bind failed!!!.   -
    2014-07-25    00:04:50        28847   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP , port 1935: TCCommBridge::createListener 0.0.0.0:1935/v4: bind failed!!!.        -
    2014-07-25    00:04:50        28847   (e)2631114    Failed to start listeners for adaptor backup_defaultRoot__edge1.        -
    2014-07-25    00:04:50        28847   (e)2791225    Failed to start edge : backup_defaultRoot__edge1        -
    #Date: 2014-07-25
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-07-25    00:07:00        29817   (i)2581173    Host: videodb.webtv.coop IPv4: 10.2.2.8 -
    2014-07-25    00:07:00        29817   (i)2631180    Info from AccessAdaptor: Access Adaptor started /opt/adobe/ams/modules/access/libconnect.so.    -
    2014-07-25    00:07:00        29817   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP localhost, port 19350: TCCommBridge::createListener 127.0.0.1:19350/v4: bind failed!!!.   -
    2014-07-25    00:07:00        29817   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP , port 1935: TCCommBridge::createListener 0.0.0.0:1935/v4: bind failed!!!.        -
    2014-07-25    00:07:00        29817   (e)2631114    Failed to start listeners for adaptor backup_defaultRoot__edge1.        -
    2014-07-25    00:07:00        29817   (e)2791225    Failed to start edge : backup_defaultRoot__edge1        -
    #Date: 2014-07-25
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-07-25    00:09:10        30014   (i)2581173    Host: videodb.webtv.coop IPv4: 10.2.2.8 -
    2014-07-25    00:09:10        30014   (i)2631180    Info from AccessAdaptor: Access Adaptor started /opt/adobe/ams/modules/access/libconnect.so.    -
    2014-07-25    00:09:10        30014   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP localhost, port 19350: TCCommBridge::createListener 127.0.0.1:19350/v4: bind failed!!!.   -
    2014-07-25    00:09:10        30014   (e)2631013    Failed to create listener for adaptor backup_defaultRoot_, IP , port 1935: TCCommBridge::createListener 0.0.0.0:1935/v4: bind failed!!!.        -
    2014-07-25    00:09:10        30014   (e)2631114    Failed to start listeners for adaptor backup_defaultRoot__edge1.        -
    2014-07-25    00:09:10        30014   (e)2791225    Failed to start edge : backup_defaultRoot__edge1
    core.00.log
    #Version: 1.0
    #Start-Date: 2014-07-25 09:56:08
    #Software: Adobe Media Server 5.0.3 r3029 x64
    #Date: 2014-07-25
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-07-25    09:56:08        18327   (w)2581173    /opt/adobe/ams/applications/livepkgr/events/_definst_/canal91event/Event.xml does not exist or is invalid.    -
    master.00.log
    #Version: 1.0
    #Start-Date: 2014-07-25 00:00:33
    #Software: Adobe Media Server 5.0.3 r3029 x64
    #Date: 2014-07-25
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-07-25    00:00:30        17555   (i)2581226    Edge (28097) is no longer active.    -
    2014-07-25    00:00:30        17555   (w)2581255    Edge (28097) backup_defaultRoot__edge1 experienced 1 failure[s]!        -
    2014-07-25    00:00:30        17555   (i)2581224    Edge (28338) started, arguments : -edgeports ":1935" -coreports "localhost:19350" -conf "/opt/adobe/ams/conf/Server.xml" -adaptor "backup_defaultRoot_" -$
    2014-07-25    00:02:40        17555   (i)2581226    Edge (28338) is no longer active.    -
    2014-07-25    00:02:40        17555   (w)2581255    Edge (28338) backup_defaultRoot__edge1 experienced 1 failure[s]!        -
    2014-07-25    00:02:40        17555   (i)2581224    Edge (28648) started, arguments : -edgeports ":1935" -coreports "localhost:19350" -conf "/opt/adobe/ams/conf/Server.xml" -adaptor "backup_defaultRoot_" -$
    2014-07-25    00:04:50        17555   (i)2581226    Edge (28648) is no longer active.    -
    2014-07-25    00:04:50        17555   (w)2581255    Edge (28648) backup_defaultRoot__edge1 experienced 1 failure[s]!        -
    2014-07-25    00:04:50        17555   (i)2581224    Edge (28847) started, arguments : -edgeports ":1935" -coreports "localhost:19350" -conf "/opt/adobe/ams/conf/Server.xml" -adaptor "backup_defaultRoot_" -$
    2014-07-25    00:07:00        17555   (i)2581226    Edge (28847) is no longer active.    -
    ams.ini
    # ams.ini contains substitution variables for Adobe 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 Adobe 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 = 500
    # Group id in which to run the process (Linux Only)
    # For example:
    # SERVER.PROCESS_GID = 500
    SERVER.PROCESS_GID = 500
    # License key for Adobe Media Server
    # For example:
    # SERVER.LICENSEINFO = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
    SERVER.LICENSEINFO = (license goes here)
    # LIVE_DIR denotes the full path of sample "Live" application's
    # folder for storing any live stream recorded by server. 
    # For example:
    # LIVE_DIR = <AMS_Installation_Dir>\applications\live
    LIVE_DIR = /opt/adobe/ams/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 = <AMS_Installation_Dir>\webroot\vod
    VOD_COMMON_DIR = /opt/adobe/ams/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 = <AMS_Installation_Dir>\applications\vod\media
    VOD_DIR = /opt/adobe/ams/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 AMS.
    SERVER.HTTPD_ENABLED = true
    # Whether to start and stop the cache cleaning tool along
    # with HTTP server.
    SERVER.HTCACHECLEAN_ENABLED = true
    # The path specifying the cache root for webserver caching.
    SERVER.HTCACHEROOT = /opt/adobe/ams/Apache2.2/cacheroot
    # This section contains configurable parameters in Adaptor.xml #
    # IP address and port(s) Adobe Media Server should listen on
    # For example:
    # ADAPTOR.HOSTPORT = :1935,80
    ADAPTOR.HOSTPORT = :1935
    # IP (address and) port that Adobe 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 AMS. If nothing is specified, AMS 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 = /opt/adobe/ams/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/ams/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

    Hi again everyone.
    Thanks Charles for offering a solution but unfortunately still not working. Please see details below.
    Netstat while AMS running :
    [root@videodb ams]# netstat -tulpn
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address              Foreign Address            State      PID/Program name
    tcp        0      0 0.0.0.0:2049                0.0.0.0:*                  LISTEN      -                
    tcp        0      0 0.0.0.0:5666                0.0.0.0:*                  LISTEN      22502/nrpe        
    tcp        0      0 127.0.0.1:8005              0.0.0.0:*                  LISTEN      19768/java        
    tcp        0      0 0.0.0.0:8134                0.0.0.0:*                  LISTEN      2309/httpd        
    tcp        0      0 127.0.0.1:11110            0.0.0.0:*                  LISTEN      29001/./amsadmin  
    tcp        0      0 0.0.0.0:806                0.0.0.0:*                  LISTEN      8256/rpc.statd    
    tcp        0      0 0.0.0.0:807                0.0.0.0:*                  LISTEN      27760/rpc.rquotad
    tcp        0      0 127.0.0.1:199              0.0.0.0:*                  LISTEN      8765/snmpd        
    tcp        0      0 0.0.0.0:8009                0.0.0.0:*                  LISTEN      19768/java        
    tcp        0      0 0.0.0.0:3306                0.0.0.0:*                  LISTEN      12980/mysqld      
    tcp        0      0 0.0.0.0:1935                0.0.0.0:*                  LISTEN      8690/amsedge      
    tcp        0      0 0.0.0.0:111                0.0.0.0:*                  LISTEN      8123/portmap      
    tcp        0      0 0.0.0.0:8080                0.0.0.0:*                  LISTEN      19768/java        
    tcp        0      0 0.0.0.0:80                  0.0.0.0:*                  LISTEN      2309/httpd        
    tcp        0      0 0.0.0.0:819                0.0.0.0:*                  LISTEN      27776/rpc.mountd  
    tcp        0      0 127.0.0.1:19350            0.0.0.0:*                  LISTEN      8690/amsedge      
    tcp        0      0 0.0.0.0:22                  0.0.0.0:*                  LISTEN      8790/sshd        
    tcp        0      0 0.0.0.0:1111                0.0.0.0:*                  LISTEN      29001/./amsadmin  
    tcp        0      0 0.0.0.0:49209              0.0.0.0:*                  LISTEN      -                
    tcp        0      0 127.0.0.1:25                0.0.0.0:*                  LISTEN      9323/master      
    udp        0      0 0.0.0.0:2049                0.0.0.0:*                              -                
    udp        0      0 10.2.2.8:1935              0.0.0.0:*                              8690/amsedge      
    udp        0      0 127.0.0.1:1935              0.0.0.0:*                              8690/amsedge      
    udp        0      0 0.0.0.0:57615              0.0.0.0:*                              -                
    udp        0      0 10.2.2.8:19350              0.0.0.0:*                              8690/amsedge      
    udp        0      0 127.0.0.1:19350            0.0.0.0:*                              8690/amsedge      
    udp        0      0 0.0.0.0:800                0.0.0.0:*                              8256/rpc.statd    
    udp        0      0 0.0.0.0:161                0.0.0.0:*                              8765/snmpd        
    udp        0      0 0.0.0.0:802                0.0.0.0:*                              27760/rpc.rquotad
    udp        0      0 0.0.0.0:803                0.0.0.0:*                              8256/rpc.statd    
    udp        0      0 0.0.0.0:816                0.0.0.0:*                              27776/rpc.mountd  
    udp        0      0 0.0.0.0:49875              0.0.0.0:*                              10305/avahi-daemon
    udp        0      0 0.0.0.0:5353                0.0.0.0:*                              10305/avahi-daemon
    udp        0      0 0.0.0.0:111                0.0.0.0:*                              8123/portmap      
    udp        0      0 10.2.2.8:123                0.0.0.0:*                              8824/ntpd        
    udp        0      0 127.0.0.1:123              0.0.0.0:*                              8824/ntpd        
    udp        0      0 0.0.0.0:123                0.0.0.0:*                              8824/ntpd
    Stopping server :
    [root@videodb ams]# ./server stop
    NPTL 2.5
    Stopping Adobe Media Server (please check /var/log/messages)
    Server has shutdown...
    Netstat after shutdown (ports 1935 and 19350 are free) :
    [root@videodb ams]# netstat -tulpn
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  
    tcp        0      0 0.0.0.0:2049                0.0.0.0:*                   LISTEN      -                  
    tcp        0      0 0.0.0.0:5666                0.0.0.0:*                   LISTEN      22502/nrpe         
    tcp        0      0 127.0.0.1:8005              0.0.0.0:*                   LISTEN      19768/java         
    tcp        0      0 127.0.0.1:11110             0.0.0.0:*                   LISTEN      29001/./amsadmin   
    tcp        0      0 0.0.0.0:806                 0.0.0.0:*                   LISTEN      8256/rpc.statd     
    tcp        0      0 0.0.0.0:807                 0.0.0.0:*                   LISTEN      27760/rpc.rquotad  
    tcp        0      0 127.0.0.1:199               0.0.0.0:*                   LISTEN      8765/snmpd         
    tcp        0      0 0.0.0.0:8009                0.0.0.0:*                   LISTEN      19768/java         
    tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      12980/mysqld       
    tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      8123/portmap       
    tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN      19768/java         
    tcp        0      0 0.0.0.0:819                 0.0.0.0:*                   LISTEN      27776/rpc.mountd   
    tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      8790/sshd          
    tcp        0      0 0.0.0.0:1111                0.0.0.0:*                   LISTEN      29001/./amsadmin   
    tcp        0      0 0.0.0.0:49209               0.0.0.0:*                   LISTEN      -                  
    tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      9323/master        
    udp        0      0 0.0.0.0:2049                0.0.0.0:*                               -                  
    udp        0      0 0.0.0.0:57615               0.0.0.0:*                               -                  
    udp        0      0 0.0.0.0:800                 0.0.0.0:*                               8256/rpc.statd     
    udp        0      0 0.0.0.0:161                 0.0.0.0:*                               8765/snmpd         
    udp        0      0 0.0.0.0:802                 0.0.0.0:*                               27760/rpc.rquotad  
    udp        0      0 0.0.0.0:803                 0.0.0.0:*                               8256/rpc.statd     
    udp        0      0 0.0.0.0:816                 0.0.0.0:*                               27776/rpc.mountd   
    udp        0      0 0.0.0.0:49875               0.0.0.0:*                               10305/avahi-daemon 
    udp        0      0 0.0.0.0:5353                0.0.0.0:*                               10305/avahi-daemon 
    udp        0      0 0.0.0.0:111                 0.0.0.0:*                               8123/portmap       
    udp        0      0 10.2.2.8:123                0.0.0.0:*                               8824/ntpd          
    udp        0      0 127.0.0.1:123               0.0.0.0:*                               8824/ntpd          
    udp        0      0 0.0.0.0:123                 0.0.0.0:*                               8824/ntpd
    Restart :
    [root@videodb ams]# ./server start
    NPTL 2.5
    Starting Adobe Media Server (please check /var/log/messages)
    Content of edge.00.log :
    #Version: 1.0
    #Start-Date: 2014-08-06 14:39:17
    #Software: Adobe Media Server 5.0.3 r3029 x64
    #Date: 2014-08-06
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-08-06    14:39:12        15099   (i)2581173    Host: videodb.webtv.coop IPv4: 10.2.2.8 -
    2014-08-06    14:39:12        15099   (i)2631180    Info from AccessAdaptor: Access Adaptor started /opt/adobe/ams/modules/access/libconnect.so.    -
    2014-08-06    14:39:12        15099   (i)2631174    Listener started ( backup_defaultRoot__edge1 ) : localhost:19350/v4     -
    2014-08-06    14:39:13        15099   (i)2631174    Listener started ( backup_defaultRoot__edge1 ) : 1935/v4        -
    2014-08-06    14:39:14        15099   (i)2631174    Listener started ( backup_defaultRoot__edge1 ) : 127.0.0.1:19350 (rtmfp-core)/v4        -
    2014-08-06    14:39:14        15099   (i)2631174    Listener started ( backup_defaultRoot__edge1 ) : 10.2.2.8:19350 (rtmfp-core)/v4 -
    2014-08-06    14:39:14        15099   (i)2631509    Public rtmfp-core addresses for listener backup_defaultRoot__edge1 are: 127.0.0.1:19350;10.2.2.8:19350  -
    2014-08-06    14:39:14        15099   (i)2631174    Listener started ( backup_defaultRoot__edge1 ) : 127.0.0.1:1935 (rtmfp)/v4    -
    2014-08-06    14:39:14        15099   (i)2631174    Listener started ( backup_defaultRoot__edge1 ) : 10.2.2.8:1935 (rtmfp)/v4    -
    #Date: 2014-08-06
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-08-06    14:39:12        15097   (i)2581173    Host: videodb.webtv.coop IPv4: 10.2.2.8 -
    2014-08-06    14:39:12        15097   (i)2631180    Info from AccessAdaptor: Access Adaptor started /opt/adobe/ams/modules/access/libconnect.so.    -
    2014-08-06    14:39:12        15097   (e)2631013    Failed to create listener for adaptor _defaultRoot_, IP localhost, port 19350: TCCommBridge::createListener 127.0.0.1:19350/v4: bind failed!!!$
    2014-08-06    14:39:12        15097   (e)2631013    Failed to create listener for adaptor _defaultRoot_, IP , port 1935: TCCommBridge::createListener 0.0.0.0:1935/v4: bind failed!!!.    -
    2014-08-06    14:39:12        15097   (e)2631114    Failed to start listeners for adaptor _defaultRoot__edge1.    -
    2014-08-06    14:39:12        15097   (e)2791225    Failed to start edge : _defaultRoot__edge1    -
    #Date: 2014-08-06
    #Fields: date   time    x-pid   x-status        x-ctx   x-comment
    2014-08-06    14:41:22        15903   (i)2581173    Host: videodb.webtv.coop IPv4: 10.2.2.8 -
    2014-08-06    14:41:22        15903   (i)2631180    Info from AccessAdaptor: Access Adaptor started /opt/adobe/ams/modules/access/libconnect.so.    -
    2014-08-06    14:41:22        15903   (e)2631013    Failed to create listener for adaptor _defaultRoot_, IP localhost, port 19350: TCCommBridge::createListener 127.0.0.1:19350/v4: bind failed!!!$
    2014-08-06    14:41:22        15903   (e)2631013    Failed to create listener for adaptor _defaultRoot_, IP , port 1935: TCCommBridge::createListener 0.0.0.0:1935/v4: bind failed!!!.    -
    2014-08-06    14:41:22        15903   (e)2631114    Failed to start listeners for adaptor _defaultRoot__edge1.    -
    2014-08-06    14:41:22        15903   (e)2791225    Failed to start edge : _defaultRoot__edge1
    Content of var/log/messages :
    Aug  6 14:39:11 videodb Service[15070]: Server starting...
    Aug  6 14:39:12 videodb Server[15070]: /opt/adobe/ams/Apache2.2/bin/httpd -f ./conf/httpd.conf -d "/opt/adobe/ams/Apache2.2" -k start returned 0: [Wed Aug 06 14:39:11 2014] [info] mod_jithttp - AMS $
    Aug  6 14:39:12 videodb Server[15070]: /opt/adobe/ams/Apache2.2/bin/htcacheclean -n -t -i -p/opt/adobe/ams/Apache2.2/cacheroot -d5 -l1024K returned 0:
    Aug  6 14:39:12 videodb Adaptor[15097]: Failed to create listener for adaptor _defaultRoot_, IP localhost, port 19350: TCCommBridge::createListener 127.0.0.1:19350/v4: bind failed!!!.
    Aug  6 14:39:12 videodb Adaptor[15099]: Listener started ( backup_defaultRoot__edge1 ) : localhost:19350/v4
    Aug  6 14:39:12 videodb Adaptor[15097]: Failed to create listener for adaptor _defaultRoot_, IP , port 1935: TCCommBridge::createListener 0.0.0.0:1935/v4: bind failed!!!.
    Aug  6 14:39:12 videodb Adaptor[15097]: Failed to start listeners for adaptor _defaultRoot__edge1.
    Aug  6 14:39:12 videodb Edge[15097]: Failed to start edge : _defaultRoot__edge1
    Aug  6 14:39:12 videodb Service[15070]: Server started (/opt/adobe/ams/conf/Server.xml).
    Aug  6 14:39:13 videodb Adaptor[15099]: Listener started ( backup_defaultRoot__edge1 ) : 1935/v4
    Aug  6 14:39:14 videodb Adaptor[15099]: Listener started ( backup_defaultRoot__edge1 ) : 127.0.0.1:19350 (rtmfp-core)/v4
    Aug  6 14:39:14 videodb Adaptor[15099]: Listener started ( backup_defaultRoot__edge1 ) : 10.2.2.8:19350 (rtmfp-core)/v4
    Aug  6 14:39:14 videodb Adaptor[15099]: Public rtmfp-core addresses for listener backup_defaultRoot__edge1 are: 127.0.0.1:19350;10.2.2.8:19350
    Aug  6 14:39:14 videodb Adaptor[15099]: Listener started ( backup_defaultRoot__edge1 ) : 127.0.0.1:1935 (rtmfp)/v4
    Aug  6 14:39:14 videodb Adaptor[15099]: Listener started ( backup_defaultRoot__edge1 ) : 10.2.2.8:1935 (rtmfp)/v4

  • Live streaming video issues

    I look after a little old ladies PC in Australia from Canada.  She used to watch live video from a webcam in Canada looking at the snow & ice but now with a new HP PC she can't view the live feed... or to be more precise she can view it but the site won't load properly and displays a still image. 
    If the browser is refreshed the image updates but is a still image.
    We can see the time-stamp so we know there is a snapshot of the video being taken but it won't update with the live feed.
    I did read other posts about similar issues but can't seem to find an answer. 
    I have updated her Windows media player, uninstalled then re-installed both Flash & Shockwave to the latest versions but still the video won't play properly.
    She can watch other live streaming videos but there just seems to be an issue with this one in particular.
    I have tried the same webcam feed from other PCs in Canada and the UK with no issues. 
    She has an HP610-1010a Touchsmart with ATI Radeo HD5570 graphic card installed.
    Can anyone suggest something else I may be overlooking...?
    Thanks
    Malcolm
    This question was solved.
    View Solution.

    Hi,
    I tested on 5 machines: 1 HP laptop, 2 Dell laptops, 1 Apple and 1 Surface. I think we NEED NBN, my connection speed is not very fast but still reasonable but the machines took ages to just go to the first one. The second one was a bit faster but ONLY refresh frame when hit F5.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Adobe Media Live streaming Server issue.

    Adobe Media Live streaming Server. I cant get it to connect with the vhost IP and when it connects with our main IP I was able to bring up a cam and then to check it I closed out the server side and reopened it, started it up and then it wouldnt connect to that same cam page.
    Any suggestions?

    bump

  • Let clients record & save part of live stream

    Hi,
    I'm looking for a solution where clients watch a live stream video and can record part of this stream while watching and save this recording to disk. I can think of several solutions but not sure if any of them is possible:
    - The selected part is recorded locally and saved through FileRefence.
    - The selected part is recorded with FMS though a second NetStream and saved with a unique ID. The user can retrieve the recorded video by download.
    - Start-time and end-time of the recording are send to the server where some script extracts the requested video from the live stream recording file and return it as a download.
    Would any of these solutions work and what would be the best approach?
    Thanks!

    Thanks for the reply.
    I'm indeed going for the last option, where the live stream is being recorded as FLV on the server and FFmpeg copies the requested part and converts it to MP4. Still need to do some testing and optimalisation but this seems to work quite well.

  • Re-Start a Live Stream using AMS 5 through Cloudfront

    We have AMS 5 running on an Amazon EC2 instance. We send a Live Stream from an FMLE encoder using H.264/AAC.
    If we do an Origin Pull from that instance running the AMS 5 and Live steam through one of our commercial CDN accounts, we can stop and re-start our Live stream without issue. It stops and re-starts as it should. When we re-connect to the AMS using FMLE, using the Origin Pull, the stream re-starts in either the OSMF or JW Player 6 in under 30 seconds.
    If we use that same AMS 5 on the same EC2 instance and Live stream through an Amazon Cloudfront distribution, if we stop our Live stream, when we re-start the stream it takes an unacceptably long time for the stream to refresh - if ever. Basically, after the re-start of the Live stream through FMLE, the Live stream at the player plays the first 10 or 15 seconds of the intial Live stream and then stops. If you refresh the player, it will play that same 10 or 15 seconds again - and stop again.
    It would seem that the AMS 5 is setup correctly. It works through our commercial CDN.
    It also would seem that the issue is with the cache on Amazon Cloudfront. Our assumption is that the Cloudfront cache is not properly updating. But we have tried about every variable in every setting for Cloudfront that we can find. We can't get past this.
    Any suggestions?
    Thanks
    As a followup to this discussion, you can follow the issue through the AWS.Amazon forums at https://forums.aws.amazon.com/thread.jspa?threadID=120448&tstart=0

    We also have other threads going.
    http://forums.adobe.com/thread/1180721?tstart=0
    https://forums.aws.amazon.com/thread.jspa?threadID=120448&tstart=0
    There appears to be 2 different issues - one issue with Amazon Cloudfront and a second issue with Adobe Media Server. Unfortunately, they are tied together in the real world application of these programs.
    In AMS. when we use the adbe-record-mode=record, then the AMS works fine because the AMS is clearing the streams on each re-publish. Unfortunately, this causes a status code error on Amazon Cloudfront. And that particular status code error from a custom origin server causes Cloudfront to "override the minimum TTL settings for applicable cache settings". As the programmers explained, basically what happens is that Cloudfront overrides our 30 second cache settings and goes into a standard cache setting of 5 minutes. And waiting 5 minutes to re-start a Live stream just doesn't work in the real world for real customers.
    We can fix that Cloudfront status code error issue by using adbe-record-mode=append on the AMS. If we use that AMS setting, then we can stop a Live stream, re-start the stream, the Cloudfront cache clears and everything works - unless you also change the stream settings in your FMLE. If you stop the stream and change the video input or output size in the FMLE, then the AMS server gets stuck and can't/won't append to the f4f record file.
    Does anyone have any ideas about how we can adjust all of this so that it works together?
    Thanks

  • Stream.record() keyframe issues

    I have an application that uses server side recording using the Stream.record() method. The source for the Stream class is a live stream that several clients can publish to or view. Only one client can talk at a time but they can stop and start publishing when they like. Stream.record() allows me to handle recording from these different sources into a single server file. The code looks no different that that seen elsewhere on this forum or indeed in the Adobe documentation (FMIS3.0.4) and is something like this;
    To start the recording;
    application.recording =  Stream.get("recorded_stream");
    if (application.recording) {
       application.recording.play("live_stream");
       application.record("append");
    and to stop the recording;
    if (application.recording) {
       application.recording.play(false);
       application.recording.record(false);
    And on the client a NetStream.publish("live_stream","live") or NetStream.play("live_stream") are issued depending on whether the client is talking to a group of clients or listening to one of the other clients.
    Now this code works provided, it seems, the first recorded section is greater than some interval around 30 seconds otherwise the keyframe metadata (as reported by YAMDI) has large gaps at irregular intervals that cause stalls during playback. You can see in the metadata output from YAMDI that the filepositions are consistent (all the data is there) but as there are large gaps (like up to 20 seconds) in the keyframe entries anything that plays it stalls, also the duration in the metadata includes the gaps.
    I have tried using FLVCHECK and it says the files are fine. I have tried making each recorded segment into its own file (with the intention of joining them with FFMPEG post process) but it makes no difference, the playback stall manifests itself as a gap at the start of one of the movies and FFMPEG uses the metadata it finds so it can't help.
    The second related issue is that the keyframeinterval and framerate of the recorded file don't relate to those requested by the client at all. In this case I am asking for 15fps with a keyframe every second and I am getting 7-11fps that and 4-5 keyframes per second. Also neither of these figures match the system wide defaults in the Application.xml file. In this particular application the system will be used to record British Sign Language exchanges and I need to keep the framerate and image quality high an although I can understand why the server would want to fix its framerate/interval (as its recording from different client sources) I can't find anywhere in the docs where these values can be set abd the dont relate to the settings in the Application.xml file for this app either. BTW the server running FMS3.0.4 is a quad-core XEON with 16GB through a 100Mbit switch that does nothing else so its not a resource issue !!
    Anyone done anything similar or had a simlar problem? I guess the weird part in my app is that usually Stream.record() seems to be used for injecting live custom metadata or for recording live broadcasts from FME both of which probably aren't going to switch stream sources so quickly so maybe this is a bug?
    thanks for reading this,
    Andy Freeman
    Correspondent Corp

    Hi, there may be a component test for the keyboard in the F2 UEFI Diagnostics that you could try, I pasted the instructions from the manual below: To start HP PC Hardware Diagnostics UEFI: Turn on or restart the computer, quickly press esc, and then press F2 

  • Lag When Recording Live Stream

    I am experiencing a very strange behavior from FMS
    I am conducting a live conversation between 2 people using
    their webcams. One of the participants have a relatively slow
    computer (we think its the anti-virus). When conducting the live
    session everything seems to be fine... Still a bit slower than fast
    computers but still pretty good.
    We are doing the following test:
    We do a combined count from 1 to 20.
    participant-1 counts "1" (this is the slow computer)
    Only after hearing his count participant-2 counts "2"
    Again, only after hearing his "2" participant-1 counts "3"
    and so on...
    so the count goes from participant-1 to the server and from
    there to participant-2 only then the "2" count leaves participant-2
    to the server and so on...
    This session is being recorded. What I am getting in the
    recored video is very strange...
    I am getting participant-2 count before participant-1. So the
    count goes:
    2,1,4,3,6,5 and so on
    How is this possible to have the order correct on the live
    and not on the recorded?

    Hi,
    As it is , in the current form, both the applications cannot make VOD files directly. The live sample application can be modified to have a server side recording of the incoming live stream that can then be played as vod stream.

  • Recording H.264 Live Stream on the Server

    I have seen several questions which were close to what I am looking for, but haven't found an answer that worked. I work at a school, and we use a NewTek TriCaster to stream live events through FMS 3.5, which I am hoping to upgrade to AMS 5 to allow HLS. We have been streaming a single H.264 encoded feed through the server as a live stream which works well. They have recently asked if it is possible to archive that recording on the server. I was able to get everything to work correctly when I switched to using the VP6 codec, but as long as we were streaming with H.264, I could not get the server to record it correctly. Here's what I have tried:
    This code works for the VP6, but the H.264 doesn't record the video:
    application.onPublish = function (clientObj, streamObj)
         var s = new Stream("archive");
         s.record();
         s.play(streamObj.name);
    This worked and created an flv file, but caused a few other issues due to the encoding of the VP6 and having to re-encode the video to H.264 before putting the file online.
    Based on suggestions I was reading, I tried this with the H.264 stream:
    application.onPublish = function (clientObj, streamObj)
         var s = new Stream("mp4:archive.f4v");
         s.record();
         s.play(streamObj.name);
    This created an f4v file, but I could not play it. When I tried to open it in Adobe Media Encoder, it gave an error that it did not support the compression type.
    Thanks.

    You should use a H.264 compitable encoder..
    FMS only delivery content, player only player the stream..
    Flix Engine, from On2, have the H.264 encoder..

  • Problem with recording a live stream

    hi,
              i implemented an application for recording a live stream. It was working well locally. But now i am connecting with client's communication server. Broadcaster is working well. But the recording portion is not working. It's showing an error "NetStream.Record.NoAccess" . Can anbody help me to avoid this problem? Also now I am not able to connect with local FMS(developer version). When I tried to connect the same application with local FMS, it's showing an error like NetConnection.Connect.InvalidApp and NetConnection.Connect.Closed. Can anybody let me know why this error is showing?
    Regards,
             Sreelash

    I've just played around with the current developer edition of
    the flash media 2 server, and had a strange experience.
    We are using on our productive server still flash
    communication server mx 1.5.3, like i've noticed before, because we
    have only a licencse for this version.
    If i record a video with our app on flash media 2 server the
    problems i've descriped are away...
    ...BUT...
    flash media 2 seems to cut the corrupted part automaticly out
    of the record.
    I recorded a video which is exactly 30seconds long (made with
    a timeout script). On old flashcom the first 7 seconds have these
    descriped failures.
    If i record the same stream on flash media 2 there are no
    failures in the record, but the record is only 23 seconds long....
    This is very very bad adobe :(
    Or is the problem in my code? If there is anybody who can
    help, i would be very happy!

  • Why does an Interruption to a HTTP Live Stream (HLS)  cause the recorded version to play ?

    We have set up Adobe Media Server to stream HLS. It all works great but when the stream is interupted and we start it again it draws in the recorded asset instead of continuig the live stream. What are we doing wrong?

    Hi ariestav,
    This is known to have some initial lag in the http streaming. HTTP streaming unlike RTMP requires a playlist to be generated first. Since we don't store any playlist on to the disk, this is generated just-in-time as you request. Also, HTTP unlike RTMP requires generated a particular size chunk and downloading. But most solutions around HTTP don't bother from this, because they are supposed to be run behind a HTTP caching system. So lag and all is just for the first user. You can't imagine 1000 HTTP subscribers all hitting the origin server.
    Though I might give you some hints to reduce the lags. For this you try reducing the HTTP chuck size. This is by default configured at 8 seconds. You may try setting it around 4 seconds. You can edit HLSMediaFileDuration in httpd.conf under hls-vod tag to 4000.
    For better seeking purpose, please try keeping the keyframe interval in your file a factor of HLSMediaFileDuration. Hope this helps http://knowfms.wordpress.com/2011/09/22/best-practices-for-setting-ios-media-file-duration /
    Though I said above some initial lag is known, but that doesn't mean it should be too much to be unbearable. If you feel this is too huge, please consider sending me your test file. I will test it out for any possible bugs. You can send me at [email protected]
    Good news is that we are working on improving the performance as max possible.
    For other issues like artifacts/ choppy playback, also please provide the details about
    1. file encoding settings
    2. Device and ios-version on which you tested.

  • Adobe Flash tried to play a live or recorded stream that does not exist. Source can't be found

    NOTE: This thread was started in the flash pro forum: http://forums.adobe.com/thread/898879?tstart=0 . However, because of adninjastrators recommandation, I open the thread here:
    Hello there,
    I have started a stream from Flash media encoder to flash media server. According to my encoder, it should be located at: "rtmp://localhost/live" and is called livestream.
    In the Flash  software I try and set the source of FLVPlayback component to "rtmp://localhost/live/livestream", and I get this error: "NetStream.Play.StreamNotFound : Adobe Flash tried to play a live or recorded stream that does not exist. Source can't be found.". Both the server and encoder is runnind and I am encoding.
    Too, when I try and open the html with the stream in a browser, nothing appears.
    What should I check?
    Thanks.
    Kind regards,
    Marius

    Thanks for your reply.
    Server, encoder and player are all on the same computer.
    Admin console confirms the existence of "livestream" of type "Live" and a "NetStream" called "ABAF". No idea what the latter is.
    Also, thought I'd mention that I have to start the servers from the Control Panel -> administrative tools -> services. If I try and start the server from the start menu, they dont start.
    Thank you for your time.
    Kind regards,
    Marius

  • How to check whether a stream a live or recorded video in FMS?

    I don't find such API to indicate whether a stream is live or not.
    Anyone knows how to judge this,either by client side or server side actionscript?

    According to the definition of stream.time, I don't think we can distinguish a live stream from a recorded stream by that.
    Stream.time
    myStream.time
    Read-only; the number of seconds the stream has been playing. This value is the timestamp of the latest frame that flowed out of the stream.
    That said,in both cases,myStream.time will keep increasing.

  • Can I record a live streaming concert (audio

    Is there a way to record a live streaming concert (audio & video) with Quicktime on my iMac?

    Sure.  The built-in iSight camera of all Intel iMacs supports both video and audio.  The following link shows how to use Quicktime to record video and audio with your iSight:
    http://support.apple.com/kb/HT4024
    If you wish to append that video with examples on the computer, SnapZ Pro is a great tool for screen capture:
    http://www.ambrosiasw.com/utilities/snapzprox/
    Note, SnapZ Pro is probably the easiest to record an existing webinar.  Note, when recording any webinar, you should be licensed to record the said video, or allowed to by the professor/school offering it for the use of your own instruction.

  • Issues while watching content after live streaming operation

    Hi,
    1)We have performed a live streaming of an event using Azure Media Services , we streamed the entire event 
    which was of about 5-6 hrs duration . But at the end we came to know that it has streamed only last  1 hour of 
    entire event.
    Can you let me know what might be the issue?
    2)We performed a live streaming of an event in 2 parts using azure media services. After 2 hours we stopped the streaming of 1st part and deleted the channel for 1st part and we started streaming of another part by creating another channel . We are unable to
    view the 1st part through content url while we are able to view the 2nd part through content url?
    Can you let me know what might be the issue?
    Thanks,
    Pushkar

    The fan is speeding up to cool the GPU. The GPU (graphic's chip) heats up because video's and game's work the GPU much harder than normal desktop activities.
    When was the last time you checked and cleaned the air intake grill on the bottom of your iMac?
    I shutdown (stopping the fans), disconnect the power and vigorously vacuum out the bottom grill work on my Mac's a couple of times a year to keep them running cool.

Maybe you are looking for

  • A dynamic "future" date stamp

    Hello folks, I am looking to insert a future date automatically in a dynamic stamp. That is, I would like to be able to have the stamp automatically add X days to the current date. I have seen a lot of JavaScript forums, tried many of the proposed so

  • Error iTunes??

    I would like for me, excuse my bad English (google translation), but I hope that you sent me still can help! I have an iPod nano 8GB bought, now I wanted to iTunes on my Windows Vista Home install. Unfortunately I always get the following error messa

  • How to use loop

    Hi I have one control block in form of Grid and now I want clear my grid when button pressed for new selection. So any one let me know how can I use loop for these field      :ADVANCES_SCHEME.TXT_MONTH := '';           :ADVANCES_SCHEME.MONTH_VERIFIED

  • Bex Web Application Designer issue: portal communication error

    hi experts, I am working with Bex Web Application Designer in BI7. we are using SP9. When i try to use the Web template its giving below error. The Requested operation could not be performed due to portal communication error. its message class is RSB

  • Unix "top" and Zones

    If I had 1 global zone and 3 non-global zones underneath it. And let's say I have 4 cpus and have allocated 2 cpus to 1 non-global zone 1 cpu to 1 non-global zone 1 cpu to 1 non-global zone Let's now say my 2 cpu zone is running at 100% of the cpu an