如何从botocore.response.StreamingBody解析视频的第一帧?

问题描述 投票:0回答:1

我正在从Kinesis视频流botocore.response.StreamingBody接收以字节为单位的MKV视频get_media

client = boto3.client(
    'kinesis-video-media',
    endpoint_url='<...>',
    region_name='eu-west-1'
)
response = client.get_media(
    StreamARN='arn:aws:kinesisvideo:eu-west-1:<...>:stream/kinesis_stream/<...>',
    StartSelector={
        'StartSelectorType': 'FRAGMENT_NUMBER',
        'AfterFragmentNumber': '111',
    }
)

如何解析该对象以获取视频(或在最佳情况下为视频的第一帧)?

python amazon-web-services boto3 amazon-kinesis botocore
1个回答
-1
投票

我也面临这个问题...您找到解决方案了吗?

© www.soinside.com 2019 - 2024. All rights reserved.