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

Open
#10,312 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
rust

Research direction

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.

Written by the indexing model from the issue text.

Description

quest

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)

Dominant language
Rust
Stars
1.6k
Forks
251
Avg merge
10h 10m
Merged PRs (30d)
822

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from moq-dev/moq

All issues in moq-dev/moq

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.