GetAvinfo

최신 업데이트:2025-08-18 15:52:06

오디오/비디오 객체의 메타데이터를 조회합니다. 이 작업에는 IAM wos:GetAvinfo 권한이 필요합니다.

요청 문법

GET /Key?avinfo HTTP/1.1
Host: Bucket.Endpoint
Date: Date
Authorization: Authorization

요청 파라미터

이름 설명 필수 여부
avinfo 오디오/비디오 객체의 메타데이터입니다.
타입: String.

요청 헤더

Common Request Headers 를 사용하세요.

요청 본문

없음

응답 문법

HTTP/1.1 StatusCode 
x-wos-request-id: RequestId 
Date: Date
Content-Type: type
Content-Length: length
Server: WS-web-server

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GetAvinfoResult>
    <Streams>
        <Index>index</Index>
        <Codec_name>codec_name</Codec_name>
        <Codec_type>codec_type</Codec_type>
        <Width>width</Width>
        <Height>height</Height>
        <Pix_fmt>pix_fmt</Pix_fmt>
        <Duration>duration</Duration>
        <Bit_rate>bit_rate</Bit_rate>
        <Nb_frames>nb_frames</Nb_frames>
        <R_frame_rate>r_frame_rate</R_frame_rate>
        <Avg_frame_rate>avg_frame_rate</Avg_frame_rate>
    </Streams>
    <Format>
        <Nb_streams>nb_streams</Nb_streams>
        <Format_name>format_name</Format_name>
        <Duration>duration</Duration>
        <Size>size</Size>
        <Bit_rate>bit_rate</Bit_rate>
    </Format>
</GetAvinfoResult>

응답 헤더

Common Response Headers 를 사용하세요.

응답 본문

응답에서 avinfo는 XML 형식으로 리스트됩니다. 자세한 설명은 아래 표를 참고하십시오.

이름 설명
GetAvinfoResult 비디오 메타데이터 정보.
타입: XML.
Streams 스트림 정보.
타입: XML.
Index 스트림 인덱스 번호.
타입: 양의 정수
Codec_name 인코더 이름.
타입: String
Codec_type 인코더 타입.
타입: String
Width 영상의 너비.
타입: 양의 정수
Height 영상의 높이.
타입: 양의 정수
Pix_fmt 픽셀 포맷.
타입: String
Duration 전체 재생 시간.
타입: String
Bit_rate 비트레이트.
타입: String
Nb_frames 프레임 수.
타입: String
R_frame_rate 실재 프레임 레이트.
타입: String
Avg_frame_rate 평균 프레임 레이트.
타입: String
sample_rate 샘플링 레이트.
타입: String
Channels 오디오 채널 수.
타입: 양의 정수
Nb_streams 스트림 수.
타입: 양의 정수
Format_name 포맷 이름.
타입: String
Size 객체 크기.
타입: String

특수 오류

코드 메시지
599 InputFile Invalid

예시

GET /test?avinfo HTTP/1.1
Host: testbucket.s3-cn-south-1.wcsapi.com
Date: Wed, 04 Nov 2020 03:09:24 GMT
x-wos-date:20201104T030923Z
Authorization: WOS-HMAC-SHA256 Credential=7e7dae54118c45a6ffd213a18c9d4847b51a73f1/20201104/cn-east-2/wos/wos_request, SignedHeaders=host;x-wos-content-sha256;x-wos-date, Signature=1c104d10373f9813ecba257d5f48eecbb44f87b572e14edb7fce6c51d64cae13

HTTP/1.1 200 OK
Server: WS-web-server
x-wos-request-id: 202829121210026220201104110923r44rlIlOsampled
Content-Type: application/xml;charset=UTF-8
Date: Wed, 04 Nov 2020 03:09:24 GMT
Content-Length: 885

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<GetAvinfoResult>
    <Streams>
        <Index>0</Index>
        <Codec_name>h264</Codec_name>
        <Codec_type>video</Codec_type>
        <Width>1366</Width>
        <Height>768</Height>
        <Pix_fmt>yuv420p</Pix_fmt>
        <Duration>2643.520000</Duration>
        <Bit_rate>1217993</Bit_rate>
        <Nb_frames>66088</Nb_frames>
        <R_frame_rate>25/1</R_frame_rate>
        <Avg_frame_rate>25/1</Avg_frame_rate>
    </Streams>
    <Streams>
        <Index>1</Index>
        <Codec_name>aac</Codec_name>
        <Codec_type>audio</Codec_type>
        <Sample_rate>44100</Sample_rate>
        <Channels>2</Channels>
        <Duration>2643.522177</Duration>
        <Bit_rate>127900</Bit_rate>
        <Nb_frames>113847</Nb_frames>
        <R_frame_rate>0/0</R_frame_rate>
        <Avg_frame_rate>0/0</Avg_frame_rate>
    </Streams>
    <Format>
        <Nb_streams>2</Nb_streams>
        <Format_name>mov,mp4,m4a,3gp,3g2,mj2</Format_name>
        <Duration>2643.523000</Duration>
        <Size>446437306</Size>
        <Bit_rate>1351037</Bit_rate>
    </Format>
</GetAvinfoResult>
이 문서의 내용이 도움이 되었습니까?
아니오
정상적으로 제출되었습니다.피드백을 주셔서 감사합니다.앞으로도 개선을 위해 노력하겠습니다.