查询点播中所有的视频信息?

  • 回答 (3)
  • 关注 (0)
  • 查看 (727)

我现在想要获取点播中的所有视频的信息,然后和我本地比较准备删除无效的视频,但是没有找到获取全部视频的接口,只有获取单个视频的接口

用户1032988用户1032988提问于
以往V回答于

可以使用GetVideoInfo的fileId属性一次调用所需视频信息

参考:https://cloud.tencent.com/document/product/266/8586

Dust资深服务器虚拟化工程师。回答于
秋之夕颜清念念不忘,必有回响回答于

获取全部视频的接口没有,有GetVideoInfo。不过可以调取多个,例如:

    "code": 0,
    "message": "",
    "basicInfo": {
        "name": "test file",
        "size": 1000,
        "duration": 10,
        "description": "",
        "status": "",
        "createTime": 1485156352,
        "updateTime": 1485156352,
        "expireTime": 1485256352,
        "classificationId": 1,
        "classificationName": "",
        "playerId": 0,
        "coverUrl": "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/shotup/f0.100_0.jpg",
        "type": "mp4",
        "sourceVideoUrl": "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/f0.mp4"
    },
    "metaData": {
        "size": 10556,
        "container": "m4a",
        "md5": "b3ae6ed07d9bf4efeeb94ed2d37ff3e3",
        "duration": 3601,
        "bitrate": 246035,
        "height": 480,
        "width": 640,
        "videoStreamList": [
            {
                "bitrate": 246000,
                "height": 480,
                "width": 640,
                "codec": "h264",
                "fps": 222
            }
        ],
        "audioStreamList": [
            {
                "codec": "aac",
                "samplingRate": 44100,
                "bitrate": 35
            }
        ]
    },
    "drm": {
        "definition": 10,
        "getKeyUrl": "https://123.xxx.com/getkey",
        "encryptType": "SingleKey",
        "keySource": "VodBuildInKMS",
        "edkList": [
            "232abc30"
        ]
    },
    "transcodeInfo": {
        "idrAlignment": 1,
        "transcodeList": [
            {
                "url": "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/f0.mp4",
                "definition": 0,
                "bitrate": 563477,
                "height": 378,
                "width": 672,
                "container": "m4a",
                "duration": 3601,
                "size": 10502,
                "md5": "b3ae6ed07d9bf4efeeb94ed2d37ff3e3",
                "videoStreamList": [
                    {
                        "bitrate": 246000,
                        "height": 480,
                        "width": 640,
                        "codec": "h264",
                        "fps": 222
                    }
                ],
                "audioStreamList": [
                    {
                        "codec": "aac",
                        "samplingRate": 44100,
                        "bitrate": 35
                    }
                ]
            },
            {
                "url": "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/f0.f210.m3u8",
                "definition": 211,
                "bitrate": 563477,
                "height": 378,
                "width": 672,
                "container": "mov",
                "duration": 3601,
                "size": 10502,
                "md5": "b3ae6ed07d9bf4efeeb94ed2d37ff3e3",
                "videoStreamList": [
                    {
                        "bitrate": 246000,
                        "height": 480,
                        "width": 640,
                        "codec": "h264",
                        "fps": 222
                    }
                ],
                "audioStreamList": [
                    {
                        "codec": "aac",
                        "samplingRate": 44100,
                        "bitrate": 35
                    }
                ]
            },
            {
                "url": "http://xxxx.vod2.myqcloud.com/4126dd3evodtransgzp1251132611/61f61b839031868223117809145/master_playlist.m3u8",
                "definition": 10000,
                "duration": 145,
                "size": 265,
                "bitrate": 2840055,
                "height": 1080,
                "width": 1920,
                "container": "hls,applehttp",
                "md5": "bfcf7c6f154b18890661f9e80b0731d0",
                "videoStreamList": [
                    {
                        "bitrate": 2794233,
                        "height": 1080,
                        "width": 1920,
                        "codec": "h264",
                        "fps": 24
                    }
                ],
                "audioStreamList": [
                    {
                        "samplingRate": 44100,
                        "bitrate": 45822,
                        "codec": "aac"
                    }
                ]
            }
        ]
    },
    "sampleSnapshotInfo": [
        {
            "definition": 10,
            "sampleType": "percent",
            "Interval": 10,
            "imageUrls": [
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx1.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx2.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx3.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx4.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx5.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx6.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx7.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx8.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx9.png",
                "http://125xx.vod2.myqcloud.com/vodtrans125xx/14508071098244929440/shotup/xx10.png"
            ]
        }
    ],
    "imageSpriteInfo": {
        "imageSpriteList": [
            {
                "definition": 10,
                "height": 576,
                "width": 1024,
                "totalCount": 100,
                "imageUrls": [
                    "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/imageSprite/1490065623_3650079727.100_0.jpg"
                ],
                "webVttUrl": "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/imageSprite/1490065623_3650079727.vtt"
            }
        ]
    },
    "snapshotByTimeOffsetInfo": {
        "snapshotByTimeOffsetList": [
            {
                "definition": 10,
                "picInfoList": [
                    {
                        "timeOffset": 0,
                        "url": "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/snapshotByTime/1490004036_648247659.100_1000.jpg"
                    },
                    {
                        "timeOffset": 1000,
                        "url": "http://xxxx.vod2.myqcloud.com/xxxx/xxxx/snapshotByTime/1490004081_878165936.100_1000.jpg"
                    }
                ]
            }
        ]
    },
    "keyFrameDescInfo": {
        "keyFrameDescList": [
            {
                "timeOffset": 1100,
                "content": "abc"
            },
            {
                "timeOffset": 100200,
                "content": "def"
            }
        ]
    }
}

所属标签

可能回答问题的人

  • 腾讯云视频

    腾讯 · 行业应用产品经理 (已认证)

    34 粉丝0 提问0 回答
  • 西风

    renzha.net · 站长 (已认证)

    7 粉丝1 提问4 回答
  • 视频云直播helper

    0 粉丝0 提问3 回答
  • 最福利服务号

    0 粉丝1 提问1 回答
  • 用户4270139

    0 粉丝0 提问1 回答

扫码关注云+社区

领取腾讯云代金券