moq-video: Media Foundation refuses an unsupported size at open so Kind::Auto falls back to OpenH264

Aperta
#10,284 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à
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend, testing

Direzione di ricerca

Start with rs/moq-video/src/encode/backend/mediafoundation.rs and compare its open-time size handling with NVENC. Trace how Kind::Auto falls back to OpenH264, then add a Windows test for an unsupported size such as 64x48 or 64x64. Done means that size is rejected at open and Kind::Auto encodes it with OpenH264.

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

Descrizione

On Windows, the Media Foundation H.264 encoder (rs/moq-video/src/encode/backend/mediafoundation.rs) accepts any size at open, then refuses small sizes such as 64x48 and 64x64 at the first picture. By then it's too late for Kind::Auto to fall back to OpenH264, so a small capture or media file fails to encode on Windows.

Refuse at open a size the hardware encoder won't take, the way NVENC does, so Kind::Auto picks OpenH264 instead. This currently fails nine moq-scene tests in https://github.com/moq-dev/studio on Windows; their picture sizes were left as is on purpose so they keep catching it.

Done when an unsupported size fails at open and Kind::Auto encodes it with OpenH264, covered by a Windows test.

Found by https://github.com/moq-dev/studio/pull/294.

(Written by Claude Opus 5.5 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.