Can not push stream to youtube

alexosh

Member
I'm just starting with flashphonner.

So, using server on AWS

1) to flashphoner.properties added 2 lines
Code:
rtmp_transponder_stream_name_prefix=

rtmp_transponder_full_url=true
2) created live stream on youtube

3) send POST request to `rtsp/startup`
Code:
   uri: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
get status 200 response

4) send POST requstest push/startup
Code:
  streamName: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
  rtmpUrl: rtmp://a.rtmp.youtube.com/live2/<my-youtube-stream-key>
Code:
get response 200: {"mediaSessionId":"h75544pkn375udj6434ls64h4j","streamName":"<my-youtube-stream-key>","rtmpUrl":"rtmp://a.rtmp.youtube.com/live2","width":0,"height":0,"muted":false,"soundEnabled":false}
But I see nothing in youtube stream.

In flashphoner.log there is an error:

Code:
19:57:43,813 INFO            RestClient - API-ASYNC-pool-13-thread-2 RECEIVED REST OBJECT <==
URL:http://localhost:8081/apps/EchoApp/playStream
OBJECT:
{
  "nodeId" : "wwJBvikjr6wefQAYLqRcLhsPFdhw9zH1@54.208.71.4",
  "appKey" : "defaultApp",
  "sessionId" : "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov-ca7265ca-f9f1-4d85-8d8b-72774d5ba79c",
  "mediaSessionId" : "orimuik6n3ev1taichr4dtr7a9",
  "name" : "..",
  "published" : false,
  "hasVideo" : false,
  "hasAudio" : true,
  "status" : "PLAYING",
  "audioCodec" : "mpeg4-generic",
  "videoCodec" : "H264",
  "record" : false,
  "width" : 0,
  "height" : 0,
  "bitrate" : 0,
  "minBitrate" : 0,
  "maxBitrate" : 0,
  "quality" : 0,
  "rtmpUrl" : "rtmp://a.rtmp.youtube.com/live2",
  "parentMediaSessionId" : "b4500fa0-217e-4484-9611-b092dabb962d",
  "history" : false,
  "gop" : 0,
  "fps" : 0,
  "audioBitrate" : 0,
  "codecImpl" : "",
  "transport" : "UDP",
  "cvoExtension" : false,
  "createDate" : 1614196663794,
  "mediaType" : "pull",
  "mediaProvider" : "RTSP"
}
19:57:43,820 INFO         RtmpPublisher - Thread-81 Rtmp client connected to a.rtmp.youtube.com/172.217.15.76:1935
19:57:43,820 INFO                     J - pool-60-thread-2 using client version 09007C02
19:57:43,866 WARN                     J - pool-60-thread-2 server part 1 validation failed for type 1, will try with type 2
19:57:43,867 ERROR        ClientHandler - pool-60-thread-2 RTMP error [id: 0x3f3e4c8e, /172.31.92.166:33007 => a.rtmp.youtube.com/172.217.15.76:1935]
java.lang.RuntimeException: server part 1 validation failed even for type: 2
at com.flashphoner.server.rtmp.rtmp.J.E(Unknown Source)
at com.flashphoner.server.rtmp.rtmp.J.I(Unknown Source)
at com.flashphoner.server.remote.D.M.decode(Unknown Source)
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(Unknown Source)
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(Unknown Source)
at com.flashphoner.server.remote.D.M.handleUpstream(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioWorker.read(Unknown Source)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(Unknown Source)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(Unknown Source)
at org.jboss.netty.channel.socket.nio.NioWorker.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
```




So what else should be done to get the stream on youtube?
 
Last edited:
Top