Incorrect Sample Rate validation for non App2E interlaced content

Đang mở
#369 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@fschleich đang làm issue này rồi.

Từ ngày 15/10/2024.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

Problem
When using com.netflix.imflibrary.app.IMPAnalyzer we get an incorrect (and confusing) error report for interlaced content that is not App2E:

EssenceDescriptorList represented by the ID urn:uuid:1172379b-1e95-4917-a460-c73ab91a4d5a whose indicated SampleRate value is =================== EditRate =====================
    numerator = 12, denominator = 1
    , however the Resource Edit Rate is =================== EditRate =====================
    numerator = 25, denominator = 1

For this example, in the App6 Image Track File the SampleRate and the EditRate are both 25/1 which is correct (the frame rate). The reported SampleRate value (above) is actually the SampleRate of the EssenceDescriptor divided by 2 (and then rounded down).

This issue potentially applies to all interlaced content that is not App2E. A similar issue has been reported here for interlaced ProRes content.

Proposal of solution
When Photon handles interlaced content the relationship between SampleRate and EditRate is dependent on the Application ID and not just the FrameLayout (therefore should not be checked as part of core constraints).

Problem details
In the IMFCoreConstraintsChecker (link) class, the SampleRateToEditRateScale is derived from looking at the FrameLayout. If FrameLayout is SeparateFields then the SampleRateToEditRateScale is set to 2 otherwise it is 1.

According to both Application 6 (SMPTE ST 2067-60:2023) & Application 2E (SMPTE ST 2067-21:2023) the FrameLayout of interlaced content must equal “SEPARATE_FIELDS”. However:

  • In SMPTE ST 2067-21:2023, the image essence shall be wrapped according to mode I1 specified in SMPTE ST 422 ("Interlaced Frame, 1 field per KLV Element") and the SampleRate must be double the EditRate (which is the frame rate).
  • In App6 “Two field-coded access units each shall be wrapped in a single KLV” and “Edit Rate and Sample Rate are equal to the image frame rate”.

Other Applications could have other rules.

Note:
This issue is more confusing as App6 (for example) is not in line with SMPTE ST 377-1 (because App6 is based on SMPTE ST 381-3).

Ngôn ngữ chính
Java
Star
259
Fork
82
Merge trung bình
2 ngày 7 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Netflix/photon

Tất cả issue của Netflix/photon

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.