# Integrating YouTube with Video Center and publishing videos to YouTube channels

Source: https://docs.arcxp.com/en/products/video-center/getting-started-with-video-center/integrating-youtube-to-video-center-and-publishing-videos-to-youtube-channels.html

You can link your YouTube channel directly with Arc XP Video Center and publish your Video Center videos to YouTube. This guide instructs you how to integrate your YouTube channel with Video Center. 

## Authenticating and adding YouTube channels

1. Navigate to Video Center.
2. Click **Utilities > Server Configurations > YouTube Channels**. The YouTube Channels page opens.

**Note:** If you have YouTube channels already added, you can leave them. However, we strongly recommend that you reintegrate all of your existing YouTube channels to use the latest Google Authentication.
3. Click **Sign in with Google**. A login page opens that prompts you to log in.
4. Log in to Google. Your Google account must be tied to a specific YouTube channel. Confirm that the YouTube channel you want to add is linked to the Google account you are logging in to.
5. When prompted with what Arc XP can access on your YouTube channel, choose the **Select all** option, and click **Continue**. The system redirects you to the YouTube Channels page in Arc XP where you now see your YouTube channel in the list. The channel name defaults to your YouTube channel name.
6. Click the name of the YouTube channel you just added. The Edit YouTube Channel page opens.
7. Complete the following fields:

  - **Enabled** \- select this option to surface this channel name in the YouTube channel drop-down after you add the YouTube platform for a specific VOD on Arc XP.
  - **YouTube Channel ID** \- view the channel ID YouTube assigned your channel.
  - **Channel Name** \- optionally, update the channel name to something that is more useful within Arc XP. Changing the channel name here **does not** update the channel name in YouTube.
  - **Get streams** \- click this option to receive your live stream data from YouTube.
8. Click **Save**.

## Publishing VODs to YouTube channels

1. Navigate to Video Center.
2. Open the video you want to publish to YouTube.
3. Click the plus icon next to Platforms, on the far left side of the page. The Add/Remove Platforms window opens.
4. Select **YouTube**.
5. Click **Update**. The new YouTube platform appears.
6. Click the **YouTube** platform tab.
7. On the **YouTube** tab, review and complete the following fields:

  - **YouTube Privacy Status** \- choose the privacy status from the drop-down menu.
  - **YouTube Video Category** \- choose the category of video. YouTube uses the category for site indexing on YouTube.
  - **YouTube Channel** \- choose the channel in which you want this video to appear.
  - **YouTube Playlist** \- optionally, choose a playlist to add this video to. You can choose only public playlists.
  - **Notify subscribers** \- optionally, select this option for subscribers to receive a YouTube notification.
8. Click the **Video Upload** tab.
9. Review the versions and stream information for your video.
10. Click the **Thumbnail** tab.
11. Optionally, upload a new image to serve as the video thumbnail.
12. Click **Save**.

## Live streaming in YouTube

1. Within YouTube Studio, click **Create** **\> Go Live**.
2. Click the **Stream settings** tab.
3. Click the **Stream Key** drop-down menu and click **Create new stream key**. You can also use the default key.
4. Complete the following fields:

  - **Name** \- enter a name for your stream.
  - **Streaming protocol** \- select **RTMP (Default)**.
5. Click **Create**.
6. In Video Center, navigate to **Utilities > Server Configurations > YouTube Channels**. The YouTube Channels page opens.
7. Click your channel. The Edit YouTube Channel page opens.
8. Click **Get streams**. The stream you created in steps 3 through 5 appears.
9. Still in Video Center, navigate to **Utilities > Server Configurations > Live Streams**. The Live Streams page opens.
10. Click **Add Config**. The Create New Config page opens.
11. Complete the required fields, noting the following fields specifically:
- **YouTube Channel ID** \- choose the channel you want to live stream from.
- **YouTube Stream ID** \- choose the live stream you created in steps 3 through 5.
- Select server-side or client-side encoding depending on the use case.
1. Click **Save**.
2. Begin streaming to your YouTube stream by returning to YouTube and retrieving the required props.
3. Send your stream to the stream URL along with the stream key. In the following example, we use FFmpeg:  
```
ffmpeg -stream_loop -1 -re -i <VIDEO> -c copy -s copy -f flv <STREAM_URL>/<STREAM_KEY>
example:
ffmpeg -stream_loop -1 -re -i test_dog.mp4 -c copy -s copy -f flv rtmp://a.rtmp.youtube.com/live2/aaaa-7s04-bbbb-20fp-cccc
```
A preview appears in YouTube, which shows you connected successfully.
4. In Video Center, navigate to **Live Events**.
5. Click **Add live event**.
6. Choose the live stream config you created in steps 9 through 12, define the start and end time, as well as any other fields.
7. Scroll to the YouTube Platform section, and clear the **Bypass YouTube** option.
8. Click **Save**. Your live event begins processing.
9. In YouTube, confirm that you see the live event scheduled for a future date.

When the live event begins, you can see a preview in Video Center on the Preview page.
