Overview
Add RTMP outputs when you create a job. For UI instructions, see Using Live RTMP Outputs.
Create a job with RTMP outputs
curl -X POST \
"https://api.live.brightcove.com/v2/accounts/ACCOUNT_ID/jobs" \
-H "Authorization: Bearer ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Simulcast channel",
"type": "channel",
"region": "us-west-2",
"input": { "protocol": "rtmp" },
"outputs": {
"video": [
{ "label": "720p", "height": 720, "width": 1280, "bitrate": 3000000, "codec": "h264" }
],
"audio": [
{ "label": "default", "codec": "aac", "bitrate": 128000 }
],
"rtmp": [
{
"label": "youtube",
"url": "rtmps://a.rtmp.youtube.com/live2/STREAM_KEY",
"video_label": "720p",
"audio_label": "default"
}
]
}
}'