Using YouTube Live
To use YouTube Live with webcam.io in this example, we first set up YouTube Live for live streaming, get the “Stream Server URL” and “Stream Key” and then start streaming from webcam.io using these values for output (and the the “Camera Stream URL” for input from previous setup step: connecting your camera).
Basic YouTube Setup
- Open YouTube Studio. You might need to activate streaming following instructions there if this is the first visit.
- Click “Go Live” in the upper right to open the Live Control Room
Warning: This will open the Stream Tab by default, which is not recommended to use with webcam.io (see below for details). - Instead use the Manage Tab on the left and create a scheduled stream (“Schedule Stream” in upper right). Set name, visibility etc.
- Open upcoming stream from the list
- Use “Stream URL” and “Stream key” from here for webcam.io output settings in next step
Start streaming in webcam.io
- In webcam.io: add a new webcam of type “Live stream”
- Use your cameras stream URL in Input section (here
rtsp://myrouter1234.dyndns.org:554/Streaming/Channels/101
from the previous example). - Paste “Stream URL” + “Stream key” from above into “Stream Server URL” Output field (might look like
rtmp://a.rtmp.youtube.com/live2/32ye-jepr-f330-3dwf-edac
) - Save the webcam settings (with “Enable streaming” checkbox activated).
Streaming will start within the next 1-2 minutes. The status of the stream outgoing from webcam.io is visible in dashboard status box.
Start scheduled stream in YouTube
- In YouTube Live Control Room, the connection status should change after 2-3 minutes
- Check settings, recommended: Auto-start/-stop off, DVR off, Normal latency
- Click “Go Live”. Done.
Please contact us for help if your stream does not start or you cannot find the video stream URL of your camera.
Also see FAQ.
more
- How to embed a YouTube Live stream into your website
- If your YouTube account fills up with archived stream videos after some time, you might want to try the Auto-delete YouTube live stream videos
Why is the Stream Tab not recommended ?
While the old “Stream now” (in classic interface) worked fine restarting ended streams by just re-sending to the stream key URL again, in the new interface the stream will appear offline and requires user interaction in YouTube interface.
To fix this condition, these steps are required each time the stream ends:
- visit the Stream Tab (only to start listening for incoming streams again)
- then restart the stream in webcam.io interface so YouTube starts the stream
Restarting the stream in webcam.io takes 30-60 seconds until data is sent out and (depending on latency setting) around 30 seconds in YouTube to display the preview. Clicking restart button again will not make this faster ;-)
For now, we recommend using the scheduled streams in YouTube, as these keep listening for incoming streams.
What if the scheduled stream is ended ?
If the scheduled stream is ended, which might happen after hours of stream inactivity (unfortunately there is no documentation), you need to recreate and start the scheduled stream in the manage tab and select to reuse the previous settings
We recommend using the “Backup stream” option in webcam.io to keep the stream alive, if your camera or network is down for a longer time.
What is the transcoding setting ?
For H.264 streams the ‘off (copy stream)’ setting should be fine. Transcoding is required for cameras not supporting H.264 (like MJPEG url or Mobotix MxPEG). Or if you have unusual quality settings, not recognized by YouTube. Transcoding consumes a lot more resources on our servers and requires the LIVE+ plan after your trial.