Wowza Community

Disconnect of youtube stream target after a pair of seconds

Hello, I have created a youtube stream target from a incoming stream of a IP camera. This stream works well, and I can play it (rtmp) with VLC.

I connect the target stream to a youtube live broadcast, enable it, the status show “active”, and the youtube live control page starts to show the stream… during one or two seconds, and disconnects. The log shows

PushPublishRTMP.disconnect[rtmp://a.rtmp.youtube.com:1935/live2/5a1m-f90t-jxbf-a9qg]: com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMPNetConnectionSession@22e6a6a6

Can anybody help me please?

Did you resolve this issue? And how? I’m coping with it since i started using wowza in 2014.

For what it’s worth, I’m experiencing this example same issue. I’d love to hear if anyone has experienced this and if there’s a solution.

The issue is probably relative to the frequency of keyframes used in your video being sent to YouTube. YouTube is surprisingly unforgiving in terms of video specs when it comes to live streaming. Even more surprisingly, the Live Control Room - which is usually quite verbose - seems to be entirely silent when it comes to this issue. And YouTube offers no logs to troubleshoot this issue. If you’re experiencing this issue - especially if you’re sending IP camera video - you’ll likely want to fire up Transcoder to match the specs laid out in YouTube’s specs, especially in the context of keyframe frequency.

Disregard everything I said before. The solution is simpler than you think. Wowza’s had an article about this for a few years. YouTube requires that any video you send to it for live streaming also carry an audio track. If you use the CamStreamer app on your Axis camera and go through the YouTube configuration, it’ll add a silent audio track for you by default. If you stream through Wowza, check out this article:

https://www.wowza.com/docs/how-to-add-an-audio-track-to-a-video-only-stream-moduleaddaudiotrack

You’ll probably still want to feed the video through Transcoder after you add the audio track because the key frame interval won’t match what YouTube likes, but even without Transcoder, you’ll still get a consistent (albeit choppy and buffered) stream.