DASH-IF-Conformance icon indicating copy to clipboard operation
DASH-IF-Conformance copied to clipboard

BitRateBox in sample entry

Open RufaelDev opened this issue 4 years ago • 2 comments

https://dvb-2017-dm.s3.eu-central-1.amazonaws.com/philips.mpd

message :unknown atom found "btrt": video sample descriptions would not normally contain this this seems incorrect:

From mpeg-4 part 15:

8.4.1.1.1 Definition Sample Entry and Box Types: 'hvc1', 'hev1', 'hvcC' Container: Sample Table Box ('stbl') Mandatory: An 'hvc1' or 'hev1' sample entry is mandatory Quantity: One or more sample entries may be present An HEVC visual sample entry shall contain an HEVC Configuration Box, as defined below. This includes an HEVCDecoderConfigurationRecord, as defined in ‎8.3.3.1. An optional BitRateBox may be present in the HEVC visual sample entry to signal the bit rate information of the HEVC video stream. Extension descriptors that should be inserted into the Elementary Stream Descriptor, when used in MPEG-4, may also be present. 4.3.4 Optional boxes in the sample entry Unless otherwise explicitly specified, the optional boxes, including the BitRateBox, in the sample entry document the information for the output bitstream by the file parser reconstructed from this track and all the tracks this track depends on for decoding.

RufaelDev avatar Jan 24 '21 17:01 RufaelDev

Could you please provide your command-line?

If I launch with no argument, I see:

..\src\ValidateAtoms.cpp : 2408 : Warning: moov-1:trak-1:mdia-1:minf-1:stbl-1:stsd-1 - unknown atom found "hvcC": video sample descriptions would not normally contain this
..\src\ValidateAtoms.cpp : 2408 : Warning: moov-1:trak-1:mdia-1:minf-1:stbl-1:stsd-1 - unknown atom found "btrt": video sample descriptions would not normally contain this

For the information the content can be retrieved at https://dvb-2017-dm.s3.eu-central-1.amazonaws.com/philips.cmfv

The dump is:

<SampleTableBox Size="387" Type="stbl" Specification="p12" Container="minf">
  <SampleDescriptionBox Size="295" Type="stsd" Version="0" Flags="0" Specification="p12" Container="stbl">
    <HEVCSampleEntryBox Size="279" Type="hev1" Specification="p15" Container="stsd" DataReferenceIndex="1" Width="3840" Height="2160" XDPI="4718592" YDPI="4718592" BitDepth="24" CompressorName="HEVC Coding">
      <HEVCConfigurationBox Size="154" Type="hvcC" Specification="p15" Container="hvc1 hev1 hvc2 hev2 encv resv ipco dvhe">
</HEVCConfigurationBox>
      <BitRateBox Size="20" Type="btrt" Specification="p12" Container="sample_entry" BufferSizeDB="0" avgBitRate="12025000" maxBitRate="13698056"></BitRateBox>
      <ColourInformationBox Size="19" Type="colr" Specification="iff" Container="video_sample_entry ipco encv resv" colour_type="nclx" colour_primaries="9" transfer_characteristics="16" matrix_coefficients="9" full_range_flag="0">  </ColourInformationBox>
  </HEVCSampleEntryBox>
</SampleDescriptionBox>

So:

  • The box positioning is incomplete (hev1 missing).
  • Oddly no warning is emitted for colr?

To be analyzed in light of the current ISOSegmentValidator refactoring.

rbouqueau avatar Jan 24 '21 17:01 rbouqueau

there is hev1 included it is the type field of the sample entry, I don;t have a command line i am running the web interface, there is no documentation for the command line, and nice catch on hvcC asswell, alos colr box is allowed in visual sample entry see ISOBMMF 14496 part 12 12.1.5 Colour information 12.1.5.1 Definition Colour information may be supplied in one or more ColourInformationBoxes placed in a VisualSampleEntry.

RufaelDev avatar Jan 25 '21 14:01 RufaelDev

I don't see the initial issue anymore. The 'color' issue is in #671.

rbouqueau avatar Apr 03 '24 20:04 rbouqueau