crtmpserver启动和vlc播放rtmp流程

这里是一个记录

1.启动crtmpserver

./crtmpserver/crtmpserver crtmpserver/crtmpserver.lua

2.用vlc播放

rtmp://192.168.0.99/flvplayback/flv:football.flv

3.crtmpserver 日志记录如下

CMakeLists.txt         precompiled.gch      vmtests
ubuntu@ubuntu:~/workspace/crtmp/crtmpserver/builders/cmake$ crtmpserver/crtmpserver crtmpserver/crtmpserver.lua 
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:217 C++ RTMP Media Server (www.rtmpd.com) version 1.1_rc1 build 811M - Gladiator - (built on 2015-02-09T15:04:09.000)
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:220 OS files descriptors count limits: 4096/4096
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:222 Initialize I/O handlers manager: epoll without timerfd_XXXX support
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:225 Configure modules
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:84 Module /home/ubuntu/workspace/crtmp/crtmpserver/builders/cmake/applications/appselector/libappselector.so loaded
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:84 Module /home/ubuntu/workspace/crtmp/crtmpserver/builders/cmake/applications/flvplayback/libflvplayback.so loaded
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:84 Module /home/ubuntu/workspace/crtmp/crtmpserver/builders/cmake/applications/samplefactory/libsamplefactory.so loaded
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:84 Module /home/ubuntu/workspace/crtmp/crtmpserver/builders/cmake/applications/vptests/libvptests.so loaded
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:84 Module /home/ubuntu/workspace/crtmp/crtmpserver/builders/cmake/applications/admin/libadmin.so loaded
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:84 Module /home/ubuntu/workspace/crtmp/crtmpserver/builders/cmake/applications/proxypublish/libproxypublish.so loaded
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:84 Module /home/ubuntu/workspace/crtmp/crtmpserver/builders/cmake/applications/stresstest/libstresstest.so loaded
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:231 Plug in the default protocol factory
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:238 Configure factories
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:97 Loaded factory from application samplefactory
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:244 Configure acceptors
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 0->1 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 1->2 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 2->3 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 3->4 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 4->5 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 5->6 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 6->7 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 7->8 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 8->9 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 9->10 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 10->11 IOHT_ACCEPTOR
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:250 Configure instances
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:256 Start I/O handlers manager: epoll without timerfd_XXXX support
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:259 Configure applications
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:177 Application admin instantiated
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:177 Application appselector instantiated
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:177 Application flvplayback instantiated
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/mediaformats/readers/streammetadataresolver.cpp:163 meta folder for storage 0x00000001 not specified. seek/meta files will be created inside the media folder
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/mediaformats/readers/streammetadataresolver.cpp:149 mediaFolder /home/ubuntu/media/ already present in one of the storages
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/mediaformats/readers/streammetadataresolver.cpp:119 Storage failed to initialize storage namedStorage1
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/mediaformats/readers/streammetadataresolver.cpp:143 mediaFolder not found: /Volumes/Storage/media/mp4
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/mediaformats/readers/streammetadataresolver.cpp:119 Storage failed to initialize storage namedStorage2
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/mediaformats/readers/streammetadataresolver.cpp:143 mediaFolder not found: /Volumes/Storage/media/flv
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/mediaformats/readers/streammetadataresolver.cpp:119 Storage failed to initialize storage namedStorage3
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 11->12 IOHT_TIMER
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:177 Application proxypublish instantiated
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 12->13 IOHT_TIMER
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:177 Application samplefactory instantiated
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:177 Application stresstest instantiated
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/configuration/module.cpp:177 Application vptests instantiated
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:265 Install the quit signal
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:276 
+-----------------------------------------------------------------------------+
|                                                                     Services|
+---+---------------+-----+-------------------------+-------------------------+
| c |      ip       | port|   protocol stack name   |     application name    |
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 1112|           inboundJsonCli|                    admin|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 1935|              inboundRtmp|              appselector|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 8081|             inboundRtmps|              appselector|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 8080|             inboundRtmpt|              appselector|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 6666|           inboundLiveFlv|              flvplayback|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 9999|             inboundTcpTs|              flvplayback|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 5544|              inboundRtsp|              flvplayback|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 6665|           inboundLiveFlv|             proxypublish|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 8989|         httpEchoProtocol|            samplefactory|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 8988|             echoProtocol|            samplefactory|
+---+---------------+-----+-------------------------+-------------------------+
|tcp|        0.0.0.0| 1111|    inboundHttpXmlVariant|                  vptests|
+---+---------------+-----+-------------------------+-------------------------+
/home/ubuntu/workspace/crtmp/crtmpserver/sources/crtmpserver/src/crtmpserver.cpp:277 GO! GO! GO! (18512)
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 13->14 IOHT_TCP_CARRIER
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/tcpacceptor.cpp:187 Inbound connection accepted: (Far: 192.168.0.97:62682; Near: 192.168.0.99:1935) CTCP(16) <-> TCP(3) <-> [IR(4)]
/home/ubuntu/workspace/crtmp/crtmpserver/sources/applications/appselector/src/rtmpappprotocolhandler.cpp:81 Selected application: flvplayback
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/application/baseclientapplication.cpp:239 Protocol (Far: 192.168.0.97:62682; Near: 192.168.0.99:1935) CTCP(16) <-> TCP(3) <-> [IR(4)] unregistered from application: appselector
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:777 User agent `LNX 9,0,124,2` on connection (Far: 192.168.0.97:62682; Near: 192.168.0.99:1935) CTCP(16) <-> TCP(3) <-> [IR(4)]
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1462 Default implementation of ProcessInvokeGeneric: Request: _checkbw
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1036 Play request for stream name `flv:football`. Start: -2000; length: -1000. Protocol: (Far: 192.168.0.97:62682; Near: 192.168.0.99:1935) CTCP(16) <-> TCP(3) <-> [IR(4)]
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/application/baseclientapplication.cpp:244 Stream IFR(3) with name `/home/ubuntu/media/football.flv` from protocol IR(4) registered to application `flvplayback`
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 14->15 IOHT_TIMER
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/application/baseclientapplication.cpp:244 Stream ONR4R(4) with name `flv:football` from protocol IR(4) registered to application `flvplayback`
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/streaming/baseinfilestream.cpp:645 Done streaming file
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/tcpcarrier.cpp:84 Unable to read data from connection: (Far: 192.168.0.97:62682; Near: 192.168.0.99:1935) CTCP(16) <-> [TCP(3)] <-> IR(4). Error was (104): Connection reset by peer
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 15->14 IOHT_TCP_CARRIER
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/application/baseclientapplication.cpp:249 Stream IFR(3) with name `/home/ubuntu/media/football.flv` from protocol IR(4) unregistered from application `flvplayback`
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/application/baseclientapplication.cpp:249 Stream ONR4R(4) with name `flv:football` from protocol IR(4) unregistered from application `flvplayback`
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/application/baseclientapplication.cpp:239 Protocol [IR(4)] unregistered from application: flvplayback
/home/ubuntu/workspace/crtmp/crtmpserver/sources/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 14->13 IOHT_TIMER


你可能感兴趣的:(音视频处理)