Classic/VPC環境で利用できます。
全(System、Custom)画質設定の詳細情報を照会します。
リクエスト
リクエスト形式を説明します。リクエスト形式は次の通りです。
| メソッド | URI |
|---|---|
| GET | /api/v2/qualitySets/{qualitySetId} |
リクエストヘッダ
Live Station APIで共通して使用されるヘッダの詳細は、Live Stationのリクエストヘッダをご参照ください。
リクエストパスパラメータ
リクエストパスパラメータの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
qualitySetId |
Integer | Required | 画質設定 ID
|
リクエスト例
リクエストのサンプルコードは次の通りです。
curl --location --request GET 'https://livestation.apigw.ntruss.com/api/v2/qualitySets/****' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
--header 'Content-Type: application/json' \
--header 'x-ncp-region_code: KR'
レスポンス
レスポンス形式を説明します。
レスポンスボディ
レスポンスボディの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
content |
Object | - | 画質設定情報 |
content.disabled |
Boolean | - | 画質を無効化するか
|
content.id |
Integer | - | 画質設定 ID |
content.status |
String | - | 画質設定の状態
|
content.createdTime |
Integer | - | 画質設定作成日時(ミリ秒)
|
content.genType |
String | - | 設定の分類
|
content.name |
String | - | 画質設定名 |
content.segmentDuration |
Integer | - | セグメントあたりの再生時間(ミリ秒)
|
content.segmentCount |
Integer | - | セグメント数
|
content.qualities |
Array | - | 画質リスト: qualities |
content.inUseChannelNames |
Array | - | 使用中チャンネルリスト
|
content.enableHlsTimedMetadata |
Boolean | - | 時間ベースのメタデータを設定するか
|
content.isEnabledUll |
Boolean | - | Low Latency設定
|
content.targetLatency |
Integer | - | 目標の Low Latency遅延時間(秒)
|
content.timedMetadata |
Object | - | 時間ベースのメタデータ設定
|
content.timedMetadata.key |
String | - | キー
|
content.timedMetadata.header |
String | - | ヘッダ(識別値) |
content.timedMetadata.interval |
Integer | - | 挿入周期(ミリ秒)
|
qualities
qualitiesの説明は次の通りです。
| フィールド | タイプ | 必須の有無 | 説明 |
|---|---|---|---|
disabled |
Boolean | - | 画質を無効化するか
|
id |
Integer | - | 画質 ID |
status |
String | - | 画質の状態
|
createdTime |
Integer | - | 画質作成日時(ミリ秒)
|
genType |
String | - | 設定の分類
|
name |
String | - | 画質名 |
type |
String | - | 画質タイプ
|
video |
Object | - | ビデオ設定情報
|
video.fps |
Float | - | 1秒当たりのフレーム数(fps) |
video.bitrate |
Integer | - | ビデオストリームのビットレート(bps) |
video.bframes |
Integer | - | Bフレーム(双方向予測フレーム)数 |
video.level |
Integer | - | ビデオコーデックレベル
|
video.width |
Integer | - | 出力ビデオの幅(ピクセル) |
video.height |
Integer | - | 出力ビデオの高さ(ピクセル) |
video.bypass |
Boolean | - | ビデオストリームバイパス
|
video.codec |
String | - | ビデオコーデックの形式
|
video.orientation |
String | - | ビデオの方向転換設定
|
video.profile |
String | - | ビデオコーデックプロファイル
|
video.rateControl |
String | - | ビットレート配分方式
|
video.videoH264ParamRefFrames |
Integer | - | H.264参照フレーム数
|
audio |
Object | - | オーディオ設定情報 |
audio.codec |
String | - | オーディオコーデックの形式
|
audio.profile |
String | - | オーディオコーデックプロファイル
|
audio.samplerate |
Integer | - | オーディオサンプリングレート(Hz)
|
audio.channels |
Integer | - | オーディオチャンネル数 |
audio.bitrate |
Integer | - | オーディオストリームのビットレート(Kbps) |
audio.bypass |
Boolean | - | オーディオストリームバイパス
|
レスポンスステータスコード
Live Station APIで共通して使用されるレスポンスステータスコードの詳細は、Live Stationのレスポンスステータスコードをご参照ください。
レスポンス例
レスポンスのサンプルコードは次の通りです。
{
"content": {
"disabled": false,
"id": ****,
"status": "CREATED",
"createdTime": 1755138264000,
"genType": "CUSTOM",
"name": "setting000",
"segmentDuration": 1000,
"segmentCount": 2,
"qualities": [
{
"disabled": false,
"id": 5,
"status": "CREATED",
"createdTime": 1546300800000,
"genType": "SYSTEM",
"name": "720p-9-16",
"type": "NORMAL",
"video": {
"fps": 30.0,
"bitrate": 2500000,
"bframes": 0,
"level": -1,
"width": 720,
"height": 1280,
"bypass": false,
"codec": "H264",
"profile": "MAIN",
"rateControl": "VBR",
"videoH264ParamRefFrames": 1
},
"audio": {
"codec": "AAC",
"profile": "LC",
"samplerate": 48000,
"channels": 0,
"bitrate": 128,
"bypass": false
}
},
{
"disabled": false,
"id": ****,
"status": "CREATED",
"createdTime": 1755134604000,
"genType": "CUSTOM",
"name": "quality000",
"type": "NORMAL",
"video": {
"fps": 60.0,
"bitrate": 204800000,
"bframes": 4,
"level": -1,
"width": 1920,
"height": 1080,
"bypass": true,
"codec": "H264",
"profile": "HIGH",
"rateControl": "VBR",
"videoH264ParamRefFrames": 1
},
"audio": {
"codec": "AAC",
"profile": "LC",
"samplerate": 44100,
"channels": 2,
"bitrate": 320,
"bypass": true
}
}
],
"inUseChannelNames": [
"channel000"
],
"enableHlsTimedMetadata": true,
"isEnabledUll": false,
"timedMetadata": {
"key": "utc",
"header": "ncloud.livestation.metadata",
"interval": 1000
}
}
}