マルチオーディオトラック

NextGen Live でマルチオーディオトラックを使用する方法について説明します。

Video Cloud を使用したマルチオーディオトラック

  1. チャンネルを作成した後、Control Room を開き、Channel Settings をクリックします。
  2. Advanced Settings に移動し、Audio Tracks セクションを展開します。
  3. Language Code(言語コード)、PID、および Label(ラベル)を入力します。
  4. Add Audio Track をクリックします。
  5. すべてのオーディオトラックを追加したら、Save をクリックします。
  6. Audio Renditions セクション(Overview タブ)でオーディオトラックを確認できます。

API を使用したマルチオーディオトラック

Live API を使用して、複数のオーディオトラックに対応した Brightcove Live チャンネルを作成できます。
マルチオーディオトラックを正しく設定するには、以下を確認してください:

  • エンコーダーが、配信する予定の各オーディオトラックに対応する適切な PID(パケット識別子)で設定されていること。

  • Live API リクエストで定義する input_selectors が、上記のオーディオ PID を参照していること。

  • ジョブ設定の output.input_selector_name が、入力セレクターで定義した audio_pids の名前と一致していること。

API リクエスト

Live チャンネルを作成するには、次のエンドポイントに POST リクエストを送信します:

        
            https://api.live.brightcove.com/v2/accounts/{your_account_id}/jobs
        
    

以下は、マルチオーディオトラックに対応した Live チャンネルを作成する際のリクエスト ボディの例です:

        
        {
            "name": "Multiple Audio tracks 3",
            "description": "Created via API",
            "type": "event",
            "region": "us-east-1",
            "input": {
                "protocol": "srt",
                "audio_pids": [
                    {
                        "name": "english",
                        "pid": 475
                    },
                    {
                        "name": "french",
                        "pid": 476
                    }
                ],
                "fixed_ingest_ip": false
            },
            "outputs": {
                "video": [
                    {
                        "label": "hls270p",
                        "height": 270,
                        "width": 480,
                        "bitrate": 450000,
                        "codec": "h264",
                        "codec_options": {
                            "level": "3",
                            "profile": "main"
                        },
                        "framerate": "30/1",
                        "num_b_frames": 3,
                        "num_reference_frames": 4,
                        "keyframe_rate": 0.5,
                        "sample_aspect_ratio": "1:1",
                        "decoder_buffer_size": 675000,
                        "max_bitrate": 540000
                    },
                    {
                        "label": "hls360p",
                        "height": 360,
                        "width": 640,
                        "bitrate": 780000,
                        "codec": "h264",
                        "codec_options": {
                            "level": "3",
                            "profile": "main"
                        },
                        "framerate": "30/1",
                        "num_b_frames": 3,
                        "num_reference_frames": 4,
                        "keyframe_rate": 0.5,
                        "sample_aspect_ratio": "1:1",
                        "decoder_buffer_size": 1170000,
                        "max_bitrate": 936000
                    },
                    {
                        "label": "hls540p",
                        "height": 540,
                        "width": 960,
                        "bitrate": 1500000,
                        "codec": "h264",
                        "codec_options": {
                            "level": "3.2",
                            "profile": "main"
                        },
                        "framerate": "30/1",
                        "num_b_frames": 3,
                        "num_reference_frames": 4,
                        "keyframe_rate": 0.5,
                        "sample_aspect_ratio": "1:1",
                        "decoder_buffer_size": 2250000,
                        "max_bitrate": 1800000
                    },
                    {
                        "label": "hls720p",
                        "height": 720,
                        "width": 1280,
                        "bitrate": 2400000,
                        "codec": "h264",
                        "codec_options": {
                            "level": "4",
                            "profile": "high"
                        },
                        "framerate": "30/1",
                        "num_b_frames": 3,
                        "num_reference_frames": 4,
                        "keyframe_rate": 0.5,
                        "sample_aspect_ratio": "1:1",
                        "decoder_buffer_size": 3600000,
                        "max_bitrate": 2880000
                    },
                    {
                        "label": "hls1080p",
                        "height": 1080,
                        "width": 1920,
                        "bitrate": 4500000,
                        "codec": "h264",
                        "codec_options": {
                            "level": "4.2",
                            "profile": "high"
                        },
                        "framerate": "30/1",
                        "num_b_frames": 3,
                        "num_reference_frames": 4,
                        "keyframe_rate": 0.5,
                        "sample_aspect_ratio": "1:1",
                        "decoder_buffer_size": 6750000,
                        "max_bitrate": 5400000
                    }
                ],
                "audio": [
                    {
                        "label": "english",
                        "input_selector_name": "english",
                        "language_code": "eng",
                        "codec": "aac",
                        "bitrate": 128000,
                        "sample_rate": 48000
                    },
                    {
                        "label": "french",
                        "input_selector_name": "french",
                        "language_code": "fra",
                        "codec": "aac",
                        "bitrate": 128000,
                        "sample_rate": 48000
                    }
                ]
            },
            "manifest": {
                "name": "playlist",
                "segment_duration_seconds": 6,
                "playlist_window_seconds": 30,
                "hls": {}
            },
            "maintenance_preferences": {
                "day": "WEDNESDAY",
                "start_time": "02:00"
            },
            "playback_rights_id": "primary"
        }