Design a timestamped audio sample contract

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

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
audio-video-rtc

Hướng nghiên cứu

Read the existing FrameEngine contract and the Wave 5 design and fixture evidence; this issue names no files or tests. First review the proposed audio timing contract and acceptance scenarios, then present the design for a maintainer decision. Done means a decided contract covering timestamps, discontinuities, video synchronization and evidence retention; implementation and tests follow that decision.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

design engine-sdk help wanted

Scope

Propose a contract for decoded audio samples, time bases, discontinuities, synchronization with video and evidence retention. Include test scenarios with known offsets and document how the existing FrameEngine contract would remain usable.

This is a roadmap item for evidence or design. Implementation starts after a maintainer decision.

Proposed timing contract

An audio observation identifies the source stream, original block PTS and rational time base, starting sample index, samples per channel, sample rate, layout, and discontinuity segment. Derive time within a block as pts × time_base + sample_offset / sample_rate. Use half-open observation intervals. Normalize audio and video against one source presentation origin. Keep original PTS and time bases as evidence alongside any displayed milliseconds. Missing timestamps remain explicit and block cross-stream alignment until the timeline can be recovered with recorded provenance.

Keep frame engines callable with the existing RGB interface. Audio engines consume separate timestamped blocks and emit observations on the shared timeline. Persist a bounded audio window or a source reference according to the job's evidence policy, with its sample interval and any resampling mapping. A live reconnect or real timestamp break starts a new discontinuity segment.

On FFmpeg 9.1, a synthetic Matroska control with video at 30 FPS, 48 kHz PCM and an intentional +125 ms audio offset began at PTS 1250 for video and 1375 for audio on time base 1/1000. Consecutive 1,024-sample PCM blocks had 21 and 22 ms PTS steps, while their exact duration was about 21.333 ms. The acceptance tests should distinguish timestamp quantization from a real gap. Include a later annotated gap, missing PTS, a resampled source and a reconnect. Assert original sample intervals, the +125 ms alignment and the absence of fabricated events.

This is design and fixture evidence for Wave 5. The adapter and correlation path still require implementation and tests.

Ngôn ngữ chính
Python
Star
0
Fork
0
Merge trung bình
20 giờ
Pull request đã merge (30 ngày)
5

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 JusticeGG-dev/CodeHunter

Tất cả issue của JusticeGG-dev/CodeHunter

Issue tương tự

Thêm issue về Python

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.