VideoConcatQuery

Update time: 2024-07-29 17:12:03

The videoConcatQuery command is used to query the result of the video stitching task

  • Single user trigger frequency: 300/5min
  • Applicable Products: Cloud VoD

Request

Body Params

NameDescription
*transNoString
Customer video cut task code, up to 32 bits

Response

Body Params

NameDescription
codeInteger
200 success
messageString
Successful operation
dataObject
Return data
taskIdString
taskId
transNoString
transNo
statusInteger
status
videoInfoObject
videoNameString
videoName
videoIdString
videoId
encryptInteger
Whether to encrypt transcoding files Value range: 0(unencrypted) 1(encryption)
videoSizeString
The space occupied by the video, and the total space used by the video and its transcoding
videoDurationString
videoDuration
uploadTimeString
uploadTime
updateTimeString
updateTime
videoDescriptionString
videoDescription
videoClassificationString
videoClassification
imageUrlString
imageUrl
publishDomainString
publishDomain
playerNameString
playerName
playerIdString
playerId
videoStateInteger
videoState
transcodeStateInteger
If authorized play is not enabled, the video transcoding status ranges from: 1(transcoded) 2(no transcoding) 3(in transcoding) 4(Transcoding fails) Value range of transcoding status when the Authorized Play (video encryption) function is enabled: 1(encrypted transcoding) 2(non-encrypted transcoding) 3(in transcoding) 4(Transcoding fails) 5(no transcoding)
videoSourceCodeInteger
Video source Value range: 0(other) 1(Upload) 2 (Live streaming to recording) 3 (Video pull) 4 (Video cutting) 5 (Video Stitching) 6 (edge pull recording) 10 (universal version of live broadcasting to recording) 11 (Uploading SDK) 12 (Upload tool)
videoResolutionsList
Video resolution and other information
clarityInteger
Clarity. Value range: 1(original painting) 2(fluency) 3(standard definition) 4(HD) 5(Super clear) -99(record file)
serverTypeInteger
Terminal type. Value range: 0(PC) 1(original video)
heightInteger
height
widthInteger
width
fileSizeLong
fileSize

Error code

Error code(code)Description(message)HTTP statusSemantic
1560The video is being processed200The video is being processed
1601TRANSNO cannot be empty200TRANSNO cannot be empty
1602TRANSNO is not legal200TRANSNO is not legal
1603TRANSNO does not exist200TRANSNO does not exist

Example

JSON
JSON
Request example
Copy Copy success
#!/bin/bash
username='example_username'
apiKey='example_apiKey'
date=`env LANG="en_US.UTF-8" date -u "+%a, %d %b %Y %H:%M:%S GMT"`
password=`echo -en "$date" | openssl dgst -sha1 -hmac $apiKey -binary | openssl enc -base64`
curl -i --url "https://api.cdnetworks.com/vod/videoManage/videoConcatQuery" \
-X "POST" \
-u "$username:$password" \
-H "Date: $date" \
-H "x-cnc-auth-method: BASIC" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
    "transNo": "idxxxxxx"
}'
Response example
Copy Copy success
{
    "code": 200,
    "data": {
        "status": 2,
        "taskId": "025d0ca201641000acce255700000000",
        "transNo": "0251168101641000f4cf4da800000000",
        "videoInfo": {
            "encrypt": 0,
            "playerId": "DF2DAF233DDA",
            "playerName": "name1",
            "imageUrl": "http://ovptest.haplat.net/concat/2018-06-15/025d0ca2016410003a485fa100000000/cloudv-cover/025d0ca201641000a55933ca00000000.jpg",
            "publishDomain": "ovptest.haplat.net",
            "transcodeState": "5",
            "updateTime": "1529048100",
            "uploadTime": "1529048009",
            "videoClassification": "",
            "videoDescription": "",
            "videoDuration": "7202",
            "videoId": "025d0ca201641000a55933ca00000000",
            "videoName": "ew",
            "videoResolutions": [
                {
                    "clarity": 1,
                    "fileSize": 1223912405,
                    "height": 720,
                    "serverType": -1,
                    "width": 1280
                }
            ],
            "videoSize": "1223912405",
            "videoSourceCode": 5,
            "videoState": "0"
        }
    },
    "message": "Operation succeeded"
}
Is the content of this document helpful to you?
Yes
I have suggestion
Submitted successfully! Thank you very much for your feedback, we will continue to strive to do better!