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

Aperta
#10,312 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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)

Lingua principale
Rust
Stelle
1.6k
Fork
251
Merge medio
10h 10m
PR unite (30g)
832

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di moq-dev/moq

Tutte le issue di moq-dev/moq

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.