Skip to content

VideoDecoder decodes keyframe to retrieve video resolution #120

@haydenmc

Description

@haydenmc

As part of #87, VideoDecoder is now capable of retrieving the width/height of a video stream. However, to do this, it must be provided a keyframe sequence that it will decode via libav. As a result, the metadata report thread now ends up decoding keyframes twice - first to retrieve the video dimensions, and a second time to generate a JPEG preview image.

It's also worth considering using a different approach to extract the resolution from H264 video. SPS NAL units should contain the information we need. There's some good reference code from the WebRTC implementation here. This will save us from having to decode an entire frame just to get the width/height information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions