Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support hvc1 box & enable simple access of hevc parameter sets #128

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Oct 22, 2023

  1. Support hvc1 box & enable simple access of hevc parameter sets

    I have an HEVC mp4 file of the `hvc1` kind. In order to construct
    the decoder (using Apple VideoToolbox) I need the PPS, SPS, VPS
    parameter sets.
    
    This PR does two things:
    1. It adds parsing for the `hvc1` box. This appears similar to `hev1`
       at least at the 'trak' level. In my files, there are additional
       inner boxes, for example a `colr` box. I therefore skip nested
       boxes.
    1. Enable hevc accessors for the vps, pps, sps properties that are
       required to initialise many decoders.
    
    I should note here - I have no _particular_ video decoding knowledge,
    but do have some experience with binary formats and software engineering
    in general - have reverse engineered what I need in order to solve my
    present problem by looking at output from the `MP4Box` tool.
    j-baker committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    773e965 View commit details
    Browse the repository at this point in the history
  2. remove println

    j-baker committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    bfc1626 View commit details
    Browse the repository at this point in the history
  3. clippy

    j-baker committed Oct 22, 2023
    Configuration menu
    Copy the full SHA
    9c44199 View commit details
    Browse the repository at this point in the history