moq-ffi: media consumer subscribe waits for a sibling broadcast before checking the decoder
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- audio-video-rtc, backend
Research direction
Read rs/moq-ffi/src/video.rs and find MoqVideoConsumer::subscribe, where resolve_inner runs before moq_video::decode::Consumer::new; inspect the audio counterpart as well. The issue says decoder opening needs only the catalog config, so start by tracing how that config reaches decoder creation. Done means unsupported codecs return UnsupportedConfig before waiting for an unannounced sibling broadcast.
Written by the indexing model from the issue text.
Description
Problem
MoqVideoConsumer::subscribe (and the audio counterpart) resolves the rendition's broadcast before opening the decoder (rs/moq-ffi/src/video.rs, subscribe: resolve_inner runs before moq_video::decode::Consumer::new opens the backend). A rendition whose broadcast points at a sibling that is not announced yet therefore waits for that sibling, even when this machine has no decoder for its codec, for example VP9 in a build without vpx, or AV1 with no NVDEC.
A player that walks ranked renditions, like the OBS MoQ Source (https://github.com/moq-dev/moq/pull/10319), cannot move on to a playable rendition in the catalog's own broadcast until the sibling appears, which may be never.
Notes
- Opening (or at least probing) the decoder before resolving would turn this into an immediate
UnsupportedConfig. The decoder open needs only the catalog config, not the track. video_configalready rejects unknown codec names before resolving for the same reason (its comment); this extends that to codecs the build or device cannot decode.
(Written by Claude Opus 5.5)
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moq-dev/moq
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
moq-dev/moq#10463 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
moq-dev/moq#10460 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
moq-dev/moq#10373 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
moq-dev/moq#10315 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainers usually reply within 1 day
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zizmorcore/zizmor#2608 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
longbridge/nsh#4201 ·
Maintainers usually reply within 1 day