Can pull stream and create hds
Hi Ryan,
Note: the correct admin:pass of the camera is in the e-mail send to "rgo@evostream.com" by me.
1. use pullstream as below:
pullStream uri=rtsp://admin:pass@rooney.thaiddns.com/play1.sdp localStreamName=test_stream1 forcetcp=0
response:
{"data":{"audioCodecBytes":"","configId":19,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":false,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"test_stream1","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":{"document":"play1.sdp","documentPath":"/","documentWithFullParameters":"play1.sdp","fullDocumentPath":"/play1.sdp","fullDocumentPathWithParameters":"/play1.sdp","fullParameters":"","fullUri":"rtsp://rooney.thaiddns.com/play1.sdp","fullUriWithAuth":"rtsp://admin:pass@rooney.thaiddns.com/play1.sdp","host":"rooney.thaiddns.com","ip":"58.8.40.192","originalUri":"rtsp://admin:pass@rooney.thaiddns.com/play1.sdp","parameters":{},"password":"pass","port":554,"portSpecified":false,"scheme":"rtsp","userName":"true"}},"description":"Stream rtsp://admin:pass@rooney.thaiddns.com/play1.sdp enqueued for pulling","status":"SUCCESS"}
But I check the log of EMS, got below:
/applications/evorouter/src/protocols/timer/keepalivetimerprotocol.cpp:87 No traffic on stream INP(1260) with name `test_stream1` from protocol RTSP(15184). Destroy it
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 54->53 IOHT_TCP_CARRIER
/thelib/src/application/baseclientapplication.cpp:289 Stream INP(1260) with name `test_stream1` from protocol RTSP(15184) unregistered from application `evostreamms`
2. use liststreams
response:
"data":[{"appName":"evostreamms","audio":{"bytesCount":0,"codec":"AAAC","codecNumeric":4702111241970122752,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":0},"bandwidth":0,"connectionType":1,"creationTimestamp":1387360627209.6021,"edgePid":0,"farIp":"58.8.40.192","farPort":554,"ip":"192.168.4.12","name":"test_stream1","nearIp":"192.168.4.12","nearPort":50301,"outStreamsUniqueIds":null,"port":50301,"pullSettings":{"audioCodecBytes":"","configId":19,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":false,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"test_stream1","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":"rtsp://admin:pass@rooney.thaiddns.com/play1.sdp"},"queryTimestamp":1387360642051.9810,"type":"INP","typeNumeric":5282247373882392576,"uniqueId":1263,"upTime":14842.3789,"video":{"bytesCount":0,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":0}}],"description":"Available streams","status":"SUCCESS"}
3. use createHDSStream as below:
createHDSStream localstreamnames=test_stream1 targetFolder=/opt/app/evostreamms/media/hds/ groupName=live_993 chunkLength=5 playlistType=rolling playlistLength=10 staleRetentionCount=1 cleanupDestination=1
response:
"data":{"bandwidths":[0],"chunkBaseName":"f4v","chunkLength":5,"chunkOnIDR":true,"cleanupDestination":true,"configIds":[20],"createMasterPlaylist":true,"groupName":"live_993","keepAlive":true,"localStreamNames":["test_stream1"],"manifestName":"","overwriteDestination":true,"playlistLength":10,"playlistType":"rolling","staleRetentionCount":1,"targetFolder":"/opt/app/evostreamms/media/hds/"},"description":"HDS stream created","status":"SUCCESS"}
The log of EMS is below:
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 22->23 IOHT_TIMER
/applications/evorouter/src/protocols/cli/cliappprotocolhandler.cpp:553 command: createhdsstream
/thelib/src/application/baseclientapplication.cpp:284 Stream OFHDS(1267) with name `test_stream1` from protocol PT(15280) registered to application `evostreamms`
/applications/evorouter/src/protocols/timer/keepalivetimerprotocol.cpp:87 No traffic on stream INP(1266) with name `test_stream1` from protocol RTSP(15262). Destroy it
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 23->22 IOHT_TCP_CARRIER
/thelib/src/application/baseclientapplication.cpp:289 Stream INP(1266) with name `test_stream1` from protocol RTSP(15262) unregistered from application `evostreamms`
/thelib/src/application/baseclientapplication.cpp:279 Protocol [RTSP(15262)] unregistered from application: evostreamms
/thelib/src/application/baseclientapplication.cpp:289 Stream OFHDS(1267) with name `test_stream1` from protocol PT(15280) unregistered from application `evostreamms`
/thelib/src/application/baseclientapplication.cpp:279 Protocol [PT(15280)] unregistered from application: evostreamms
/thelib/src/application/baseclientapplication.cpp:279 Protocol (Bound on: 0.0.0.0:60026) CUDP(19) <-> UDP(15271) <-> [IRTP(15272)] unregistered from application: evostreamms
/thelib/src/application/baseclientapplication.cpp:279 Protocol (Bound on: 0.0.0.0:60027) CUDP(22) <-> UDP(15273) <-> [RTCP(15274)] unregistered from application: evostreamms
/thelib/src/application/baseclientapplication.cpp:279 Protocol (Bound on: 0.0.0.0:49984) CUDP(23) <-> UDP(15275) <-> [IRTP(15276)] unregistered from application: evostreamms
/thelib/src/application/baseclientapplication.cpp:279 Protocol (Bound on: 0.0.0.0:49985) CUDP(24) <-> UDP(15277) <-> [RTCP(15278)] unregistered from application: evostreamms
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 22->21 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 21->20 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 20->19 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 19->18 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 18->17 IOHT_TIMER
/thelib/src/streaming/hds/outfilehdsstream.cpp:577 Fragment not opened
/common/src/utils/misc/file.cpp:83 Unable to open file with mode `w+b`. Error was: (2) No such file or directory
/thelib/src/mediaformats/writers/fmp4/atom_abst.cpp:393 Unable to initialize bootstrap: !
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 17->18 IOHT_TCP_CONNECTOR
/applications/evorouter/src/application/originapplication.cpp:800 Input stream test_stream1 not available yet
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 18->19 IOHT_TCP_CARRIER
/thelib/include/netio/epoll/tcpconnector.h:100 Outbound connection established: (Far: 58.8.40.192:554; Near: 192.168.4.12:50311) CTCP(19) <-> TCP(15281) <-> [RTSP(15282)]
/thelib/src/netio/epoll/iohandlermanager.cpp:130 Handlers count changed: 19->18 IOHT_TCP_CONNECTOR
/thelib/src/protocols/rtp/sdp.cpp:480 Attribute `charset` with value `Shift_JIS` not parsed
/thelib/src/protocols/rtp/sdp.cpp:480 Attribute `range` with value `npt=0-` not parsed
/thelib/src/protocols/rtp/sdp.cpp:480 Attribute `etag` with value `1234567890` not parsed
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 18->19 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 19->20 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 20->21 IOHT_UDP_CARRIER
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 21->22 IOHT_UDP_CARRIER
/thelib/src/application/baseclientapplication.cpp:284 Stream INP(1268) with name `test_stream1` from protocol RTSP(15282) registered to application `evostreamms`
/thelib/src/netio/epoll/iohandlermanager.cpp:120 Handlers count changed: 22->23 IOHT_TIMER
/thelib/src/application/baseclientapplication.cpp:284 Stream OFHDS(1269) with name `test_stream1` from protocol PT(15292) registered to application `evostreamms`
Question:
No any hds file can be generated at the target path.
Can I help to fixed this problem? It’s very urgency!!!! Thanks.