Giter Site home page Giter Site logo

Comments (2)

kqyang avatar kqyang commented on July 21, 2024

Some more background of the issue:

H.264 typically has a macroblock size of 16x16. Cropping is necessary if width/height are not exactly disivible by 16. For example, for 320x180 resolution, it can be achieved with pic_width_in_mbs_minus1 = 19, pic_height_in_map_units_minus1 = 11, frame_crop_bottom_offset = 6.

ISO/IEC 14496-15:2004 5.3.7 Visual width and height

The width and height fields in a VisualSampleEntry must correctly document the cropped frame dimensions (visual presentation size) of the AVC stream that is described by that entry.

With incorrect width and height values in VisualSampleEntry, Chrome is not able to decrypt and decode the frames correctly, causing playback issues for some resolutions. (Chrome seems to handle unencrypted contents well even with incorrect width/height - Our guess is Chrome h.264 decoder is robust against these size discrepancies and the CDM's decoder is not).

from shaka-packager.

kqyang avatar kqyang commented on July 21, 2024

Fixed in 3a5fdd2

from shaka-packager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.