wifibroadcast: write noiseLevel where majestic now reads it - #2292
Conversation
majestic is moving its per-channel VENC knobs off the global `fpv` section onto video0/video1, with no migration. `.fpv.noiseLevel` is one of them, and this is the only script in the tree that sets any of them. Losing it is not cosmetic. 0 is a value, not an absence: it turns 3DNR off, which is why an FPV profile sets it. Unset reads as "leave the encoder alone" and the SigmaStar path returns early, so the ISP default comes back on and nothing in the log says the setting was dropped. Both keys are written rather than just the new one, because majestic.mk fetches majestic.$(FAMILY).$(VARIANT).master.tar.bz2 - unpinned master - so an image can be built against either side of the rename. majestic ignores a key it does not know, so writing both is safe on both. The `.fpv` line can go once no supported build still reads it. `.fpv.enabled` is unaffected: it stays where it is, being the switch for the SigmaStar pipeline rather than an encoder setting. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PR Summary by QodoWrite Majestic noise level to video0 with legacy fallback
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Missing hardware streaming evidence
|
Problem
majestic is moving its per-channel VENC knobs off the global
fpvsection ontovideo0/video1, with no migration..fpv.noiseLevelis one of them, andvideo_settings()in this script is the only place in this tree that sets any of them.Losing it is not cosmetic.
0is a value, not an absence: it turns 3DNR off, which is the point of setting it in an FPV profile. Once majestic reads the key from its new location the old one goes unread, the setting reads as "leave the encoder alone", the SigmaStar path returns early, and the ISP default noise reduction comes back on. Nothing in the log says the setting was dropped..fpv.enabledon the line above is unaffected — it stays where it is, being the switch for the SigmaStar pipeline rather than an encoder setting.Hardware tested on
SSC30KQ (
ipcinfo --chip-name→ssc33x, sensorimx335), running a majestic build that has the rename.Evidence
Before — only the old key, exactly what the script writes today:
After — both keys, as this PR writes them:
Why both keys
majestic.mkfetchesmajestic.$(FAMILY).$(VARIANT).master.tar.bz2— unpinned master — so an image can be built against either side of the rename and there is no version to gate on. majestic ignores a key it does not know, so writing both is correct on both, and this can land before or after the majestic side in either order.The
.fpvline can be dropped once no supported build still reads it.Checked
grepover this repo for all eight moved key names: this is the only occurrence.sh -nclean, and the file stays pure ASCII.