How to publish my rtmp stream to Youtube player .
Hello ,
I have a rtmp stream which exist on Evostream server whose name is mystream.sdp I wanted to push this rtmp stream to the Youtube Player .
So for that i have used the following push stream command
pushStream uri=rtmp://a.rtmp.youtube.com/live2 localStreamname=mystream.sdp targetStreamName=9u4y-vkzz-777e-dbf7
but i am not able to get this stream under youtube livestreaming .
I have created the newevent inside the youtube channel and set other encoder option from the various settings availabe for live streaming but i am not able to see my stream inside youtube livestreaming event.
Youtube says this error
We are not receiving data from your encoder. Please make sure it is configured correctly in the Ingestion Settings page.
and EvoStream says this error
c:\jenkins\workspace\evostreamms.win\windows\windows.10.64\sources\thelib\includ
e\netio/iocp/tcpconnector.h:86 TCPConnector failed. Error code was: 121
..\..\..\sources\thelib\src\protocols\rtmp\outboundrtmpprotocol.cpp:163 Connecti
on failed:
<MAP name=”” isArray=”false”>
<MAP name=”customParameters” isArray=”false”>
<MAP name=”localStreamConfig” isArray=”false”>
<UINT32 name=”configId”>1</UINT32>
<STR name=”emulateUserAgent”>EvoStream Media Server (www.evostream.c
om)</STR>
<BOOL name=”forceTcp”>false</BOOL>
<STR name=”httpProxy”></STR>
<BOOL name=”keepAlive”>true</BOOL>
<STR name=”localStreamName”>mystream.sdp</STR>
<UINT32 name=”localUniqueStreamId”>1</UINT32>
<UINT8 name=”operationType”>2</UINT8>
<STR name=”pageUrl”></STR>
<BOOL name=”rtmpAbsoluteTimestamps”>false</BOOL>
<BOOL name=”sendChunkSizeRequest”>true</BOOL>
<STR name=”swfUrl”></STR>
<STR name=”targetStreamName”>9u4y-vkzz-777e-dbf7</STR>
<STR name=”targetStreamType”>live</STR>
<MAP name=”targetUri” isArray=”false”>
<STR name=”document”>live2</STR>
<STR name=”documentPath”>/</STR>
<STR name=”documentWithFullParameters”>live2</STR>
<STR name=”fullDocumentPath”>/live2</STR>
<STR name=”fullDocumentPathWithParameters”>/live2</STR>
<STR name=”fullParameters”></STR>
<STR name=”fullUri”>rtmp://a.rtmp.youtube.com/live2</STR>
<STR name=”fullUriWithAuth”>rtmp://a.rtmp.youtube.com/live2</STR
>
<STR name=”host”>a.rtmp.youtube.com</STR>
<STR name=”ip”>173.194.14.231</STR>
<STR name=”originalUri”>rtmp://a.rtmp.youtube.com/live2</STR>
<MAP name=”parameters” isArray=”false”>
</MAP>
<STR name=”password”></STR>
<UINT16 name=”port”>1935</UINT16>
<BOOL name=”portSpecified”>false</BOOL>
<STR name=”scheme”>rtmp</STR>
<STR name=”userName”></STR>
</MAP>
<STR name=”tcUrl”></STR>
<UINT64 name=”tos”>256</UINT64>
<UINT64 name=”ttl”>256</UINT64>
<BOOL name=”useSourcePts”>false</BOOL>
</MAP>
</MAP>
<STR name=”name”>evostreamms</STR>
<STR name=”protocol”>outboundRtmp</STR>
</MAP> I am using the Evostream version 1.7.1. Could you please help me how to push my rtmp stream to youtube . Regards Avaneesh Srivastava
e\netio/iocp/tcpconnector.h:86 TCPConnector failed. Error code was: 121
..\..\..\sources\thelib\src\protocols\rtmp\outboundrtmpprotocol.cpp:163 Connecti
on failed:
<MAP name=”” isArray=”false”>
<MAP name=”customParameters” isArray=”false”>
<MAP name=”localStreamConfig” isArray=”false”>
<UINT32 name=”configId”>1</UINT32>
<STR name=”emulateUserAgent”>EvoStream Media Server (www.evostream.c
om)</STR>
<BOOL name=”forceTcp”>false</BOOL>
<STR name=”httpProxy”></STR>
<BOOL name=”keepAlive”>true</BOOL>
<STR name=”localStreamName”>mystream.sdp</STR>
<UINT32 name=”localUniqueStreamId”>1</UINT32>
<UINT8 name=”operationType”>2</UINT8>
<STR name=”pageUrl”></STR>
<BOOL name=”rtmpAbsoluteTimestamps”>false</BOOL>
<BOOL name=”sendChunkSizeRequest”>true</BOOL>
<STR name=”swfUrl”></STR>
<STR name=”targetStreamName”>9u4y-vkzz-777e-dbf7</STR>
<STR name=”targetStreamType”>live</STR>
<MAP name=”targetUri” isArray=”false”>
<STR name=”document”>live2</STR>
<STR name=”documentPath”>/</STR>
<STR name=”documentWithFullParameters”>live2</STR>
<STR name=”fullDocumentPath”>/live2</STR>
<STR name=”fullDocumentPathWithParameters”>/live2</STR>
<STR name=”fullParameters”></STR>
<STR name=”fullUri”>rtmp://a.rtmp.youtube.com/live2</STR>
<STR name=”fullUriWithAuth”>rtmp://a.rtmp.youtube.com/live2</STR
>
<STR name=”host”>a.rtmp.youtube.com</STR>
<STR name=”ip”>173.194.14.231</STR>
<STR name=”originalUri”>rtmp://a.rtmp.youtube.com/live2</STR>
<MAP name=”parameters” isArray=”false”>
</MAP>
<STR name=”password”></STR>
<UINT16 name=”port”>1935</UINT16>
<BOOL name=”portSpecified”>false</BOOL>
<STR name=”scheme”>rtmp</STR>
<STR name=”userName”></STR>
</MAP>
<STR name=”tcUrl”></STR>
<UINT64 name=”tos”>256</UINT64>
<UINT64 name=”ttl”>256</UINT64>
<BOOL name=”useSourcePts”>false</BOOL>
</MAP>
</MAP>
<STR name=”name”>evostreamms</STR>
<STR name=”protocol”>outboundRtmp</STR>
</MAP> I am using the Evostream version 1.7.1. Could you please help me how to push my rtmp stream to youtube . Regards Avaneesh Srivastava
3 Answers
Hi avaneesh,
The pushStream command is correct. I just want to ask if you have tried a localStreamName without .sdp? Can you also do listStreams and verify the status of mystream.sdp?
Thank you!
Hello Erika ,
I have used mystream also for streamname instead of mystream.sdp but still not able to play rtmp stream to youtube .I am able to play my this stream to my local flash player but not on youtube.
I have used the following commands and there status is as follows :
liststreams
{{“data”:[{“appName”:”evostreamms”,”audio”:{“bytesCount”:0,”codec”:”AUNK”,”codec
Numeric”:4707755069515235328,”droppedBytesCount”:0,”droppedPacketsCount”:0,”pack
etsCount”:0},”bandwidth”:0,”canDropFrames”:true,”connectionType”:0,”creationTime
stamp”:1506061999392.4150,”edgePid”:0,”farIp”:”192.168.100.319″,”farPort”:49962,
“inStreamUniqueId”:null,”ip”:”192.168.100.319″,”name”:”mystream.sdp”,”nearIp”:”1
92.168.100.319″,”nearPort”:1935,”pageUrl”:”http:\/\/192.168.100.319:9898\/HomePa
ge.aspx”,”port”:1935,”processId”:14260,”processType”:”origin”,”queryTimestamp”:1
506063426077.3931,”streamAlias”:”mystream.sdp”,”swfUrl”:”http:\/\/192.168.100.31
9:9898\/MediaPlayback.swf”,”tcUrl”:”rtmp:\/\/192.168.100.298:1935\/live”,”type”:
“ONR”,”typeNumeric”:5714595137133215744,”uniqueId”:16,”upTime”:1426684.9780,”use
rAgent”:”WIN 27,0,0,130″,”video”:{“bytesCount”:0,”codec”:”VUNK”,”codecNumeric”:6
220964544311731984,”droppedBytesCount”:0,”droppedPacketsCount”:0,”height”:0,”lev
el”:0,”packetsCount”:0,”profile”:0,”width”:0}},{“appName”:”evostreamms”,”audio”:
{“bytesCount”:6908,”codec”:”AAAC”,”codecNumeric”:4702111241970122752,”droppedByt
esCount”:0,”droppedPacketsCount”:0,”packetsCount”:481},”bandwidth”:2078,”connect
ionType”:0,”creationTimestamp”:1506063414840.5171,”edgePid”:0,”farIp”:”192.168.1
00.319″,”farPort”:50288,”ingestPoint”:”mystream”,”ip”:”192.168.100.319″,”name”:”
mystream”,”nearIp”:”192.168.100.319″,”nearPort”:1935,”outStreamsUniqueIds”:null,
“port”:1935,”processId”:14260,”processType”:”origin”,”queryTimestamp”:1506063426
077.3931,”tcUrl”:”rtmp:\/\/192.168.100.319:1935\/live”,”type”:”INR”,”typeNumeric
“:5282249572905648128,”uniqueId”:21,”upTime”:11236.8760,”video”:{“bytesCount”:25
41849,”codec”:”VH264″,”codecNumeric”:6217274493967007744,”droppedBytesCount”:0,”
droppedPacketsCount”:0,”height”:1084,”level”:41,”packetsCount”:20008,”profile”:1
00,”width”:1920}}],”description”:”Available streams”,”status”:”SUCCESS”} pushstream uri=rtmp://a.rtmp.youtube.com/live2 localStreamName=mystream targetS
treamName=x24s-r5e1-412b-5k3a ♥ {“data”:{“configId”:6,”emulateUserAgent”:”EvoStream Media Server (www.evostrea
m.com)”,”forceTcp”:false,”httpProxy”:””,”keepAlive”:true,”localStreamName”:”myst
ream”,”operationType”:2,”pageUrl”:””,”rtmpAbsoluteTimestamps”:false,”sendChunkSi
zeRequest”:true,”swfUrl”:””,”targetStreamName”:”x24s-r5e1-412b-5k3a”,”targetStre
amType”:”live”,”targetUri”:{“document”:”live2″,”documentPath”:”\/”,”documentWith
FullParameters”:”live2″,”fullDocumentPath”:”\/live2″,”fullDocumentPathWithParame
ters”:”\/live2″,”fullParameters”:””,”fullUri”:”rtmp:\/\/a.rtmp.youtube.com\/live
2″,”fullUriWithAuth”:”rtmp:\/\/a.rtmp.youtube.com\/live2″,”host”:”a.rtmp.youtube
.com”,”ip”:”173.194.14.144″,”originalUri”:”rtmp:\/\/a.rtmp.youtube.com\/live2″,”
parameters”:{},”password”:””,”port”:1935,”portSpecified”:false,”scheme”:”rtmp”,”
userName”:””},”tcUrl”:””,”tos”:256,”ttl”:256,”useSourcePts”:false},”description”
:”Local stream mystream enqueued for pushing to rtmp:\/\/a.rtmp.youtube.com\/liv
e2 as x24s-r5e1-412b-5k3a”,”status”:”SUCCESS”} How could i publish my rtmp stream to youtube .Is there is any more settings to do . Regards Avaneesh Srivastava
{{“data”:[{“appName”:”evostreamms”,”audio”:{“bytesCount”:0,”codec”:”AUNK”,”codec
Numeric”:4707755069515235328,”droppedBytesCount”:0,”droppedPacketsCount”:0,”pack
etsCount”:0},”bandwidth”:0,”canDropFrames”:true,”connectionType”:0,”creationTime
stamp”:1506061999392.4150,”edgePid”:0,”farIp”:”192.168.100.319″,”farPort”:49962,
“inStreamUniqueId”:null,”ip”:”192.168.100.319″,”name”:”mystream.sdp”,”nearIp”:”1
92.168.100.319″,”nearPort”:1935,”pageUrl”:”http:\/\/192.168.100.319:9898\/HomePa
ge.aspx”,”port”:1935,”processId”:14260,”processType”:”origin”,”queryTimestamp”:1
506063426077.3931,”streamAlias”:”mystream.sdp”,”swfUrl”:”http:\/\/192.168.100.31
9:9898\/MediaPlayback.swf”,”tcUrl”:”rtmp:\/\/192.168.100.298:1935\/live”,”type”:
“ONR”,”typeNumeric”:5714595137133215744,”uniqueId”:16,”upTime”:1426684.9780,”use
rAgent”:”WIN 27,0,0,130″,”video”:{“bytesCount”:0,”codec”:”VUNK”,”codecNumeric”:6
220964544311731984,”droppedBytesCount”:0,”droppedPacketsCount”:0,”height”:0,”lev
el”:0,”packetsCount”:0,”profile”:0,”width”:0}},{“appName”:”evostreamms”,”audio”:
{“bytesCount”:6908,”codec”:”AAAC”,”codecNumeric”:4702111241970122752,”droppedByt
esCount”:0,”droppedPacketsCount”:0,”packetsCount”:481},”bandwidth”:2078,”connect
ionType”:0,”creationTimestamp”:1506063414840.5171,”edgePid”:0,”farIp”:”192.168.1
00.319″,”farPort”:50288,”ingestPoint”:”mystream”,”ip”:”192.168.100.319″,”name”:”
mystream”,”nearIp”:”192.168.100.319″,”nearPort”:1935,”outStreamsUniqueIds”:null,
“port”:1935,”processId”:14260,”processType”:”origin”,”queryTimestamp”:1506063426
077.3931,”tcUrl”:”rtmp:\/\/192.168.100.319:1935\/live”,”type”:”INR”,”typeNumeric
“:5282249572905648128,”uniqueId”:21,”upTime”:11236.8760,”video”:{“bytesCount”:25
41849,”codec”:”VH264″,”codecNumeric”:6217274493967007744,”droppedBytesCount”:0,”
droppedPacketsCount”:0,”height”:1084,”level”:41,”packetsCount”:20008,”profile”:1
00,”width”:1920}}],”description”:”Available streams”,”status”:”SUCCESS”} pushstream uri=rtmp://a.rtmp.youtube.com/live2 localStreamName=mystream targetS
treamName=x24s-r5e1-412b-5k3a ♥ {“data”:{“configId”:6,”emulateUserAgent”:”EvoStream Media Server (www.evostrea
m.com)”,”forceTcp”:false,”httpProxy”:””,”keepAlive”:true,”localStreamName”:”myst
ream”,”operationType”:2,”pageUrl”:””,”rtmpAbsoluteTimestamps”:false,”sendChunkSi
zeRequest”:true,”swfUrl”:””,”targetStreamName”:”x24s-r5e1-412b-5k3a”,”targetStre
amType”:”live”,”targetUri”:{“document”:”live2″,”documentPath”:”\/”,”documentWith
FullParameters”:”live2″,”fullDocumentPath”:”\/live2″,”fullDocumentPathWithParame
ters”:”\/live2″,”fullParameters”:””,”fullUri”:”rtmp:\/\/a.rtmp.youtube.com\/live
2″,”fullUriWithAuth”:”rtmp:\/\/a.rtmp.youtube.com\/live2″,”host”:”a.rtmp.youtube
.com”,”ip”:”173.194.14.144″,”originalUri”:”rtmp:\/\/a.rtmp.youtube.com\/live2″,”
parameters”:{},”password”:””,”port”:1935,”portSpecified”:false,”scheme”:”rtmp”,”
userName”:””},”tcUrl”:””,”tos”:256,”ttl”:256,”useSourcePts”:false},”description”
:”Local stream mystream enqueued for pushing to rtmp:\/\/a.rtmp.youtube.com\/liv
e2 as x24s-r5e1-412b-5k3a”,”status”:”SUCCESS”} How could i publish my rtmp stream to youtube .Is there is any more settings to do . Regards Avaneesh Srivastava