I am simply trying to automate live streaming on YouTube, bypassing the need to go to YouTube studio first. I am already able to transmit the video with FFmpeg from a raspberry pi, but the stream needs to be "started" first. I take this to mean begin a broadcast.
If I use the YouTube live streaming api to start broadcasts, can I then immediately begin streaming as normal from FFmpeg to the rtmp url with key, or must I "bind" the stream to the broadcast, and what exactly does this mean?
As per the documentation, it's necessary to bind a stream to a broadcast. A broadcast corresponds to the event you establish for your video content, encompassing elements like the title, description, thumbnails, and scheduled start/end times. On the other hand, a stream relates to the actual content you're transmitting within that broadcast. For example, you can create a broadcast without binding it to a stream; however, this will result in an event posting that delivers no video content.
As outlined in this guide, you will need to create both a
liveBroadcastresource and aliveStreamresource, and associate them using theliveBroadcasts.bindmethod. You need to add the RTMP URL (and other relevant settings) to theliveStreamresource, so that it contains the necessary information about where your stream is being transmitted, and the binding ensures that the content from the stream is connected to the event defined in theliveBroadcastresource.