bbc / bmx

Library and utilities to read and write broadcasting media files. Primarily supports the MXF file format
BSD 3-Clause "New" or "Revised" License
62 stars 17 forks source link

Use parsed MPEG-2 video aspect ratio in descriptor #67

Closed philipnbbc closed 5 months ago

philipnbbc commented 5 months ago

This PR uses the aspect ratio parsed from the bitstream to set the Aspect Ratio in the essence descriptor. The value parsed from the bitstream, if known, overrides any value provided by an input file descriptor or user.

The AVID KLV essence container label was moved to the descriptor helper from AvidTrack to prevent UpdateFileDescriptor() undoing the container label set in AvidTrack. AVC is the only format that uses a regular, non-AVID container label.

Fixes https://github.com/bbc/bmx/issues/66