struggling with HLS

struggling with HLS

Support ForumCategory: Usage and Featuresstruggling with HLS
Sylva1n asked 10 years ago
Hello, I’m trying to convert a rtmp stream to a HLS stream with EMS. This is what I have done: — launch EMS:
/crtmpserver/src/crtmpserver.cpp:406 GO! GO! GO! (10230)
/thelib/src/netio/kqueue/iohandlermanager.cpp:158 Handlers count changed: 15->16 IOHT_TCP_CARRIER
/thelib/include/netio/kqueue/tcpconnector.h:100 Outbound connection established: (Far: 54.245.99.84:443; Near: 192.168.123.11:61456) CTCP(12) <-> TCP(8) <-> OSSL(9) <-> OHTT(10) <-> [JVAR(11)]
/thelib/src/netio/kqueue/iohandlermanager.cpp:168 Handlers count changed: 16->15 IOHT_TCP_CONNECTOR
/thelib/src/application/baseclientapplication.cpp:279 Protocol (Far: 54.245.99.84:443; Near: 192.168.123.11:61456) CTCP(12) <-> TCP(8) <-> OSSL(9) <-> OHTT(10) <-> [JVAR(11)] unregistered from application: lminterface
/thelib/src/netio/kqueue/iohandlermanager.cpp:168 Handlers count changed: 15->14 IOHT_TCP_CARRIER
— connect Adobe Flash Media Live Encoder to EMS on this uri: rtmp://localhost/live/livestream
/thelib/src/netio/kqueue/tcpacceptor.cpp:176 Inbound connection accepted: (Far: 127.0.0.1:61500; Near: 127.0.0.1:1935) CTCP(12) <-> TCP(32) <-> [IR(33)]
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:804 User agent `FMLE/3.0 (compatible; FMSc/1.0)` on connection (Far: 127.0.0.1:61500; Near: 127.0.0.1:1935) CTCP(12) <-> TCP(32) <-> [IR(33)]
— start the encoding in FMLE:
/thelib/src/application/baseclientapplication.cpp:284 Stream INR(2) with name `livestream` from protocol IR(33) registered to application `evostreamms`
— open a telnet session: pullstream uri=rtmp://localhost/live/livestream localstreamname=stream1 Someone wrote:
?{"data":{"audioCodecBytes":"","configId":1,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":true,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"stream1","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":{"document":"livestream","documentPath":"/live/","documentWithFullParameters":"livestream","fullDocumentPath":"/live/livestream","fullDocumentPathWithParameters":"/live/livestream","fullParameters":"","fullUri":"rtmp://localhost/live/livestream","fullUriWithAuth":"rtmp://localhost/live/livestream","host":"localhost","ip":"127.0.0.1","originalUri":"rtmp://localhost/live/livestream","parameters":{},"password":"","port":1935,"portSpecified":false,"scheme":"rtmp","userName":""}},"description":"Stream rtmp://localhost/live/livestream enqueued for pulling","status":"SUCCESS"}
Someone wrote:
/thelib/src/netio/kqueue/tcpacceptor.cpp:176 Inbound connection accepted: (Far: 127.0.0.1:61509; Near: 127.0.0.1:1112) CTCP(14) <-> TCP(46) <-> [IJSONCLI(47)] /applications/evorouter/src/protocols/cli/cliappprotocolhandler.cpp:540 command: pullstream /thelib/src/netio/kqueue/iohandlermanager.cpp:158 Handlers count changed: 16->17 IOHT_TCP_CONNECTOR /thelib/src/netio/kqueue/iohandlermanager.cpp:158 Handlers count changed: 17->18 IOHT_TCP_CARRIER /thelib/src/netio/kqueue/tcpacceptor.cpp:176 Inbound connection accepted: (Far: 127.0.0.1:61510; Near: 127.0.0.1:1935) CTCP(16) <-> TCP(48) <-> [IR(49)] /thelib/src/netio/kqueue/iohandlermanager.cpp:158 Handlers count changed: 18->19 IOHT_TCP_CARRIER /thelib/include/netio/kqueue/tcpconnector.h:100 Outbound connection established: (Far: 127.0.0.1:1935; Near: 127.0.0.1:61510) CTCP(15) <-> TCP(50) <-> [OR(51)] /thelib/src/netio/kqueue/iohandlermanager.cpp:168 Handlers count changed: 19->18 IOHT_TCP_CONNECTOR /thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:804 User agent `EvoStream Media Server (http://www.evostream.com) player` on connection (Far: 127.0.0.1:61510; Near: 127.0.0.1:1935) CTCP(16) <-> TCP(48) <-> [IR(49)] /thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1082 Play request for stream name `livestream`. Start: -2000; length: -1000. Protocol: (Far: 127.0.0.1:61510; Near: 127.0.0.1:1935) CTCP(16) <-> TCP(48) <-> [IR(49)] /thelib/src/application/baseclientapplication.cpp:284 Stream ONR4R(6) with name `livestream` from protocol IR(49) registered to application `evostreamms` /thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1537 Default implementation of ProcessInvokeGeneric: Request: onFCSubscribe /thelib/src/application/baseclientapplication.cpp:284 Stream INR(7) with name `stream1` from protocol OR(51) registered to application `evostreamms`
— check if it works with VLC: it does; VLC displays the stream rtmp://localhost/live/livestream
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1537 Default implementation of ProcessInvokeGeneric: Request: _checkbw
/thelib/src/protocols/rtmp/basertmpappprotocolhandler.cpp:1082 Play request for stream name `livestream`. Start: -2000; length: -1000. Protocol: (Far: 127.0.0.1:61518; Near: 127.0.0.1:1935) CTCP(17) <-> TCP(60) <-> [IR(61)]
/thelib/src/application/baseclientapplication.cpp:284 Stream ONR4R(10) with name `livestream` from protocol IR(61) registered to application `evostreamms`
— stop VLC (I don’t know if the error message is related to):
/thelib/src/netio/kqueue/tcpcarrier.cpp:88 Unable to read data from connection: (Far: 127.0.0.1:61518; Near: 127.0.0.1:1935) CTCP(17) <-> [TCP(60)] <-> IR(61). Error was (54): Connection reset by peer
/thelib/src/netio/kqueue/iohandlermanager.cpp:168 Handlers count changed: 19->18 IOHT_TCP_CARRIER
/thelib/src/application/baseclientapplication.cpp:289 Stream ONR4R(10) with name `livestream` from protocol IR(61) unregistered from application `evostreamms`
/thelib/src/application/baseclientapplication.cpp:279 Protocol [IR(61)] unregistered from application: evostreamms
/thelib/src/netio/kqueue/iohandlermanager.cpp:158 Handlers count changed: 18->19 IOHT_TCP_CONNECTOR
/thelib/src/netio/kqueue/iohandlermanager.cpp:158 Handlers count changed: 19->20 IOHT_TCP_CARRIER
/thelib/include/netio/kqueue/tcpconnector.h:100 Outbound connection established: (Far: 54.245.99.84:443; Near: 192.168.123.11:61523) CTCP(17) <-> TCP(66) <-> OSSL(67) <-> OHTT(68) <-> [JVAR(69)]
/thelib/src/netio/kqueue/iohandlermanager.cpp:168 Handlers count changed: 20->19 IOHT_TCP_CONNECTOR
/thelib/src/application/baseclientapplication.cpp:279 Protocol (Far: 54.245.99.84:443; Near: 192.168.123.11:61523) CTCP(17) <-> TCP(66) <-> OSSL(67) <-> OHTT(68) <-> [JVAR(69)] unregistered from application: lminterface
/thelib/src/netio/kqueue/iohandlermanager.cpp:168 Handlers count changed: 19->18 IOHT_TCP_CARRIER
— open a telnet session: createHLSStream localstreamnames=stream1 targetFolder=../media groupName=hls playlisttype=rolling ?{"data":{"AESKeyCount":5,"bandwidths":[0],"chunkBaseName":"segment","chunkLength":10,"chunkOnIDR":true,"cleanupDestination":false,"configIds":[2],"createMasterPlaylist":true,"encryptStream":false,"groupName":"hls","keepAlive":true,"localStreamNames":["stream1"],"overwriteDestination":true,"playlistLength":10,"playlistName":"playlist.m3u8","playlistType":"rolling","staleRetentionCount":10,"targetFolder":"../media"},"description":"HLS stream created","status":"SUCCESS"}
/applications/evorouter/src/protocols/cli/cliappprotocolhandler.cpp:540 command: createhlsstream
/thelib/src/application/baseclientapplication.cpp:284 Stream OFHLS(11) with name `stream1` from protocol PT(74) registered to application `evostreamms`
/applications/evorouter/src/application/originapplication.cpp:1524 Unhandled message: signalOutStreamAttached
/thelib/src/streaming/baseoutstream.cpp:509 Audio codec AMP3 not supported by stream type OFHLS
/thelib/src/streaming/hls/hlsplaylist.cpp:862 Bandwidth detected on stream stream1: 248kb/s. Invalidating the master playlist
— open Safari on the same machine: http://localhost:8080/hls/playlist.m3u8 Safari can’t connect to the server. What is the matter? Thank you, Sylvain



Offcanvas

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.