Hi bryan,
I did another test of pullstream and transcode command as below:
1, transcode.
transcode source=rtsp://name:pwd@192.168.1.100/live2.sdp destinations=user-123 targetStreamNames=user-123 groupName=user-123
response:
"data":{"audioAdvancedParamsProfiles":["na"],"audioBitrates":["na"],"audioChannelsCounts":["na"],"audioFrequencies":["na"],"croppings":["na"],"destinations":["user-123"],"dstUriPrefix":"-f flv tcp://localhost:6666/","emsTargetStreamName":"user-123","fullBinaryPath":"/opt/app/evostreamms/bin/emsTranscoder.sh","groupName":"user-123","keepAlive":true,"localStreamName":"","overlays":["na"],"source":"rtsp://name:pwd@192.168.1.100/live2.sdp","srcUriPrefix":"rtsp://localhost:5544/","targetStreamNames":["user-123"],"videoAdvancedParamsProfiles":["na"],"videoBitrates":["na"],"videoSizes":["na"]},"description":"Transcoding successfully started.","status":"SUCCESS"}
2, pull stream
Pullstream uri=rtsp://name:pwd@192.168.1.100/live2.sdp localstreamname=user-pull123
Response:
{"data":{"audioCodecBytes":"","configId":3,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":true,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"user-pull123","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":{"document":"live2.sdp","documentPath":"/","documentWithFullParameters":"live2.sdp","fullDocumentPath":"/live2.sdp","fullDocumentPathWithParameters":"/live2.sdp","fullParameters":"","fullUri":"rtsp://192.168.1.100/live2.sdp","fullUriWithAuth":"rtsp://name:pwd@192.168.1.100/live2.sdp","host":"192.168.1.100","ip":"192.168.1.100","originalUri":"rtsp://name:pwd@192.168.1.100/live2.sdp","parameters":{},"password":"pwd","port":554,"portSpecified":false,"scheme":"rtsp","userName":"name"}},"description":"Stream rtsp://name:pwd@192.168.1.100/live2.sdp enqueued for pulling","status":"SUCCESS"}
3. Get the config and availabe stream
listconfig
response:
"data":{"hds":[],"hls":[],"process":[{"arguments":"rtsp://name:pwd@192.168.1.100/live2.sdp na na na na na na na na na na na na -f\ flv\ tcp://localhost:6666/ user-123","configId":2,"fullBinaryPath":"/opt/app/evostreamms/bin/emsTranscoder.sh","groupName":"user-123","keepAlive":true,"operationType":6,"status":{"current":{"code":0,"description":"Streaming","timestamp":1384139167,"uniqueStreamId":0},"previous":{"code":1,"description":"Connecting","timestamp":1384139167,"uniqueStreamId":0}}}],"pull":[{"audioCodecBytes":"","configId":3,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":true,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"user-pull123","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","status":{"current":{"code":0,"description":"Streaming","timestamp":1384141343,"uniqueStreamId":3},"previous":{"code":3,"description":"Connected","timestamp":1384141343,"uniqueStreamId":0}},"swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":"rtsp://name:pwd@192.168.1.100/live2.sdp"}],"push":[],"record":[]},"description":"Run-time configuration","status":"SUCCESS"}
liststreams
response:
{"data":[{"appName":"evostreamms","audio":{"bytesCount":19669750,"codec":"APT","codecNumeric":4706353969578901504,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":19190},"bandwidth":0,"connectionType":0,"creationTimestamp":1384139169214.8330,"edgePid":0,"farIp":"127.0.0.1","farPort":48729,"ip":"127.0.0.1","name":"user-123","nearIp":"127.0.0.1","nearPort":6666,"outStreamsUniqueIds":null,"port":6666,"queryTimestamp":1384141623975.8120,"type":"INLFLV","typeNumeric":5282243277764296704,"uniqueId":2,"upTime":2454760.9790,"video":{"bytesCount":192697546,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":61494}},{"appName":"evostreamms","audio":{"bytesCount":0,"codec":"AUNK","codecNumeric":4707755069515235328,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":0},"bandwidth":1500,"connectionType":1,"creationTimestamp":1384141343051.1211,"edgePid":0,"farIp":"192.168.1.100","farPort":554,"ip":"192.168.4.12","name":"user-pull123","nearIp":"192.168.4.12","nearPort":35989,"outStreamsUniqueIds":null,"port":35989,"pullSettings":{"audioCodecBytes":"","configId":3,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":true,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"user-pull123","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":"rtsp://name:pwd@192.168.1.100/live2.sdp"},"queryTimestamp":1384141623975.8799,"type":"INP","typeNumeric":5282247373882392576,"uniqueId":3,"upTime":280924.7588,"video":{"bytesCount":21961259,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":7505}}],"description":"Available streams","status":"SUCCESS"}
4. Use VLC to play the stream user-123(from transcode) and user-pull123(from pullstream). And both they worked.
rtsp://192.168.4.12:5544/user-123rtsp://192.168.4.12:5544/user-pull123
5. Restart the EMS
6. Get the config and available stream
listconfig
{"data":{"hds":[],"hls":[],"process":[],"pull":[{"audioCodecBytes":"","configId":1,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":true,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"user-pull123","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","status":{"current":{"code":0,"description":"Streaming","timestamp":1384145060,"uniqueStreamId":1},"previous":{"code":3,"description":"Connected","timestamp":1384145060,"uniqueStreamId":0}},"swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":"rtsp://name:pwd@192.168.1.100/live2.sdp"}],"push":[],"record":[]},"description":"Run-time configuration","status":"SUCCESS"}
liststreams
response:
"data":[{"appName":"evostreamms","audio":{"bytesCount":0,"codec":"AUNK","codecNumeric":4707755069515235328,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":0},"bandwidth":1500,"connectionType":1,"creationTimestamp":1384145060203.4731,"edgePid":0,"farIp":"192.168.1.100","farPort":554,"ip":"192.168.4.12","name":"user-pull123","nearIp":"192.168.4.12","nearPort":36055,"outStreamsUniqueIds":null,"port":36055,"pullSettings":{"audioCodecBytes":"","configId":1,"emulateUserAgent":"EvoStream Media Server (http://www.evostream.com) player","forceTcp":true,"httpProxy":"","isAudio":true,"keepAlive":true,"localStreamName":"user-pull123","operationType":1,"pageUrl":"","ppsBytes":"","rangeEnd":-1,"rangeStart":-2,"rtcpDetectionInterval":10,"sendRenewStream":false,"spsBytes":"","ssmIp":"","swfUrl":"","tcUrl":"","tos":256,"ttl":256,"uri":"rtsp://name:pwd@192.168.1.100/live2.sdp"},"queryTimestamp":1384145078889.9260,"type":"INP","typeNumeric":5282247373882392576,"uniqueId":1,"upTime":18686.4529,"video":{"bytesCount":1455807,"codec":"VH264","codecNumeric":6217274493967007744,"droppedBytesCount":0,"droppedPacketsCount":0,"packetsCount":487}}],"description":"Available streams","status":"SUCCESS"}
7. Use VLC to play the stream user-123(from transcode) and user-pull123(from pullstream). And user-pull123 worked, but user-123 not worked.
rtsp://192.168.4.12:5544/user-123rtsp://192.168.4.12:5544/user-pull123
My issue is: How to make the user-123 stream still available(work) after EMS restarted?
Thanks.