Документация Steamworks
Подготовка трансляции

Общие сведения

В этой обучающей статье мы расскажем, как транслировать вашу игру в магазине Steam.

Прежде чем начать

Note: Games marked as "Adult-Only" cannot be streamed on the Steam store.
  • Вам потребуется аккаунт Steam без ограничений. Этот аккаунт, с которого вы будете вести трансляцию, должен потратить хотя бы 5 долларов США в магазине Steam. Аккаунт с ограничениями (то есть не потративший хотя бы 5 долларов) не сможет создать RTMP-токен и вести трансляцию в магазине Steam.
  • Аккаунт, с которого вы будете вести трансляцию, должен владеть транслируемой игрой. Чтобы проверить, владеет ли аккаунт игрой, войдите в него в клиенте Steam и убедитесь, что игра есть в вашей библиотеке.
  • The account must either have the "Broadcast Live" permission in the Steamworks partner account, or be a member of the Steam Broadcast Beta group.

Подготовка трансляции с помощью RTMP


The steps below will help you gather the information required to stream your game from third-party broadcasting software. Streaming on Steam uses the RTMP protocol. You won’t need to know exactly how this protocol works to stream on Steam, but some familiarity with the below concepts will be helpful.
  • 1. Перейдите по ссылке http://steamcommunity.com/broadcast/upload/

  • 2. Найдите раздел «Сервер загрузки». Steam автоматически выбирает сервер, наиболее близкий к текущему местоположению, на основе вашего IP-адреса. Если вы хотите сменить сервер загрузки, выберите другую опцию из списка на странице. Компьютер, с которого транслируется игра, будет отправлять видео на сервер загрузки, поэтому важно выбрать вариант с наименьшей задержкой (как правило, он ближе всего к вам географически).

    stream1.png


  • 3. Найдите RTMP-токен. Его потребуется ввести в программу для трансляции.

    Что такое RTMP-токен?

    RTMP-токен — это уникальный идентификатор, позволяющий транслировать контент в Steam. Его нужно сгенерировать на странице https://steamcommunity.com/broadcast/upload и ввести в программу, через которую вы будете вести трансляцию в Steam.
    Важно: обращайтесь с токеном так же, как с паролем. Не сообщайте его другим пользователям, так как с его помощью трансляцию может вести кто угодно. Если вы считаете, что он стал известен другим людям, перейдите по ссылке выше и сгенерируйте новый токен, автоматически деактивировав старый.

    stream2.png


  • 4. Введите appID своей игры

    AppID вашей игры можно найти на её главной странице в Steamworks или открыв её страницу в магазине Steam — номер в ссылке является вашим appID.

    Обратите внимание, что необходимо использовать appID основной игры. Не используйте appID доп. контента, демоверсий, саундтреков и других вторичных типов приложений.

    stream3.png


  • 5. Задайте разрешения трансляции

    По умолчанию трансляция предназначается «только для друзей», то есть её видите только вы и ваши друзья в Steam. This is a good way to test your stream before it’s publicly visible on your store page. Чтобы открыть трансляцию, нажмите на кнопку «URL-адрес вашей трансляции» в разделе «Быстрые ссылки». Once you are ready for your stream to appear publicly on your store page, you can change this permission to “Public”.

    stream4.png

Подготовка OBS (необязательно)

There are several software tools available for streaming your game to Steam. OBS is a popular free and open-source option. Below are steps to get your stream set up in OBS. Steam supports any broadcast software that supports the RTMP protocol.

stream5.png
  • 1. Откройте меню Файл -> Настройки -> Вещание.

  • 2. В выпадающем меню выберите «Настраиваемый».

    stream6.png

  • 3. В поле «Сервер» введите содержимое поля «Сервер загрузки» со страницы http://steamcommunity.com/broadcast/upload/

  • 4. В поле «Ключ потока» введите содержимое поля «Токен загрузки» со страницы http://steamcommunity.com/broadcast/upload/

  • 5. В OBS откройте меню Файл -> Настройки -> Вывод

    stream7.png

  • 6. В выпадающем списке «Режим вывода» выберите «Расширенный».
  • 7. На вкладке «Потоковое вещание» задайте интервалу ключевых кадров значение «2» (без кавычек). Обратите внимание: это необходимый шаг. Без его выполнения трансляция не запустится.

Проверка трансляции

Once you are ready, begin streaming your game using OBS. Next, go back to http://steamcommunity.com/broadcast/upload/ and look for a link to the right of the page called “Your Broadcast URL”.

stream8.png

You should see your gameplay being streamed on this page. At this point, if you set your broadcast permission to “Friends only”, your stream is not public yet.

Create a Steam Event For Your Game

It's a good idea to let your community know about your stream. You can do this using the Event tools on Steamworks. Below is a brief guide to setting up a Live-Stream/Broadcast event. You can learn more about Events on Steam here: https://partner.steamgames.com/doc/marketing/event_tools.

Follow these steps:
  • 1. From your game’s App Landing Page, Click “Post New Event” (or whatever it says)

  • 2. Select “Live-Stream/Broadcast”


    stream10.png


  • 3. Navigate to the “Broadcasting” tab


    stream11.png


    This is where you will designate one or more Steam accounts as allowed to stream to your store page during the event. Enter a title for your broadcast from the list, or enter your own. If you enter a custom name, don’t forget to add localized titles.

    stream12.png


    Add the account you intend to Stream with:


    stream13.png


    Important: The Steam account setting up the stream and the account that is streaming must be friends in order for it to be visible on this page.

    Suggested but optional: upload artwork (which you can re-use in the future) for your livestream. This artwork will appear on both sides of your livestream.

    Click the “Save” button to save your event.

  • 4. Go to the “Options” tab and confirm the start and stop times of the event are correct. You can continue your stream for up to 24 hours past the end time of your event.

  • 5. Enable the broadcast feature on the event

    stream14.png

    • Save and publish your event. When you start streaming during the event, your stream will appear on your store page. Note that There may be a delay up to 5 minutes before the stream is picked up on the store page once you start streaming, so you may want to begin the stream a few minutes early to account for this.

Troubleshooting:


Q: I don’t see my broadcast on my Steam store page!

  • A.You may need to refresh the product page after a few seconds. We only display the live broadcast once a connection is established. First viewers will take the longest to establish the connection to the broadcaster.
  • Confirm that you have entered the right appID at https://steamcommunity.com/broadcast/upload. The appid is used to connect the stream to the correct game. If the appid is missing, the Steam store product page will not show the stream and it will not be featured on the front page. You will need to enter the appID and regenerate the RTMP token and enter it into your broadcasting software.

RTMP Streaming Specs

If your stream is using external software to stream content to steam, then this section applies. At this time, Steam requires these encoding specs to be set. If you're having issues with videos stuttering, pausing, or not playing back correctly, please check the following:

Video encoding requirements

  • Codec: H.264
  • Profile: High
  • Level: 4.1
  • Frame Rate: 30 FPS or 60 FPS
  • Frame Ratio: 16:9
  • Keyframe interval: 2 seconds
  • Maximum bitrate: 7000 kbps CBR
Audio encoding requirements
  • Codec: AAC-LC
  • Maximum bitrate: 128 kbps

Streaming Software Notes
VMIX: By default, VMIX uses Profile Main and Level 3.0. You must change those settings in order for VMIX to stream correctly to Steam.

Using a Multi-streaming Service

Content Rules

Remember to obey the content rules when broadcasting on your product page. Those rules can be found in the FAQ under the answer to 'What kind of content is restricted?'. Valve may moderate streams that violate these rules, or take other action on offending partner accounts, including termination.