moq-rtmp: select a compatible rendition on push using the server's RTMP capabilities

Đang mở
#10,312 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
rust
Lĩnh vực
audio-video-rtc

Hướng nghiên cứu

Start with rs/moq-rtmp/src/dial.rs and compare its push path with the codec-aware rendition selection in rs/moq-rtmp/src/server.rs; first check the kodecs-rtmp API after issue #41 lands. Update the dependency and select a rendition from the advertised RTMP capabilities, handling classic ingest and explicit allow-lists as described. Add push integration tests for AV1 forwarding, classic H.264 selection, and a clean failure when no rendition matches.

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

Mô tả

When moq export rtmp --connect pushes a broadcast (rs/moq-rtmp/src/dial.rs), Client::publish calls FlvExport::new(source, catalog) without filtering by the codecs the destination ingest accepts. A broadcast with a higher-ranked AV1 or Opus track can therefore push unplayable Enhanced RTMP tags to a classic H.264/AAC ingest.

Once https://github.com/moq-dev/kodecs/issues/41 lands and kodecs-rtmp publishes ClientSessionEvent::ConnectionRequestAccepted { caps_ex, video_fourccs, audio_fourccs }:

  • Bump kodecs-rtmp in moq-dev/moq.
  • Use the server's advertised video_fourccs and audio_fourccs in moq-rtmp's Client::publish to select a compatible rendition (matching the listener's codec-aware rendition selection in rs/moq-rtmp/src/server.rs).
  • Treat None as a classic RTMP ingest (legacy FLV codecs: H.264, AAC/MP3) and Some(support) as an explicit Enhanced RTMP allow-list, returning an error when an explicit capability map has no compatible rendition.
  • Add push integration tests covering: an ingest advertising AV1 forwarding receiving AV1, a classic ingest receiving H.264 from a catalog with higher-ranked AV1, and an explicit capability map with no compatible rendition failing cleanly.

(Written by Gemini 4 Neon with high)

Ngôn ngữ chính
Rust
Star
1.6k
Fork
251
Merge trung bình
10 giờ 10 phút
Pull request đã merge (30 ngày)
832

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 moq-dev/moq

Tất cả issue của moq-dev/moq

Issue tương tự

Thêm issue về Rust

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.