Repository navigation
frontend: Preview the Enhanced Broadcasting encoding ladder - #181
Conversation
|
Thanks for splitting this out of #162. Same requirement as there: a RED→GREEN test for the logic (docs/rust-port/coordination.md section 4). The UI and network parts can stay untested, but the part that turns a downloaded Go Live config (or a pasted Custom RTMP override) into the preview rows is pure logic. Please factor that into a small Qt-free function and add a test that fails first: rung order, resolution, fps, bitrate, codec, missing or invalid fields, and an empty config. New cmocka tests go in |
|
The row formatting is now RED I compiled it with VS 2022 |
Settings, Stream can ask the service which encodes the current settings would get, without starting a broadcast. The table is read-only and shows the service values. Custom RTMP previews the pasted config override. A preview download skips the continue-anyway status prompts. Split from the encoder-override change. Refs obs-rust#19
mtv_ladder_fill is the Qt-free formatting of a Go Live config into preview rows. The stub leaves that output empty, so test_rungs_keep_order_resolution_and_codec stops because the row count is 0 instead of 2. The other cases cover fps, bitrate, codec, missing or invalid fields, and an empty config. Refs obs-rust#19
mtv_ladder_fill keeps rung order and formats resolution, fps, bitrate, and the encoder id. Missing settings become "-". An empty config has no rows and no bitrate total. Settings calls it for a downloaded Go Live config and for a pasted Custom RTMP override. The cmocka tests added in the previous commit pass: four cases. Refs obs-rust#19 Local-Gate: v1 tree=e1687730a67aed5761bad316ff9c57d07d0702c4 secs=194 lanes=lint:run,rust-test:run,tier2-linux:run Ci-Attestation: {"at":1791685605,"gate":"rust/all/fmt","host":"linux-x86_64","key":"3f265d96d00bc45a3e6f6e41eeff26cd55672fbab83ee0d98cb27387cca87e57","lane":"lint","parents":["41b39ab546e1531202bdac8683153c44f862f282"],"secs":77,"stamp":"135f51b71929c48f545d5300831e8a08","tree":"e1687730a67aed5761bad316ff9c57d07d0702c4","v":1,"via":"run"} Ci-Attestation: {"at":1791685605,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"3f265d96d00bc45a3e6f6e41eeff26cd55672fbab83ee0d98cb27387cca87e57","lane":"lint","parents":["41b39ab546e1531202bdac8683153c44f862f282"],"secs":77,"stamp":"07376efff4dffbd03963df2384fa7219","tree":"e1687730a67aed5761bad316ff9c57d07d0702c4","v":1,"via":"run"} Ci-Attestation: {"at":1791685605,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"4f41bd2dddf7214d26dfba0fc449b9eb47edf90f66c8f6b84541f3cbcb93872b","lane":"rust-test","parents":["41b39ab546e1531202bdac8683153c44f862f282"],"secs":36,"stamp":"8dfff2d8be8f7efcda3492650b768c04","tree":"e1687730a67aed5761bad316ff9c57d07d0702c4","v":1,"via":"run"} Ci-Attestation: {"at":1791685605,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"6f61f462a9d23b83e86933abdd610033cf2cc6d691ec0a5f48e6107c8ba191f4","lane":"tier2-linux","parents":["41b39ab546e1531202bdac8683153c44f862f282"],"secs":81,"stamp":"7cd001c150f8c620008ec6573d30a122","tree":"e1687730a67aed5761bad316ff9c57d07d0702c4","v":1,"via":"run"}
3f74d0a to
7aab124
Compare
|
Verified head
#162 added widgets at the same spot, so the rebase hit conflicts. I kept both sides in |
Refs #19
Split from #162. The read-only encoding ladder does not change how encoders are created, so it can land on its own. It is independent of #162.
What changed
DownloadGoLiveConfigtakesinteractive_status. Preview passes false so a warning status does not open a continue-anyway dialog. Go Live still passes the default, true.mtv_ladder_fillturns the parsed config into those rows. The Qt page and the download stay outside the test.RED → GREEN
The stub returns empty: no rows, no bitrate total, and a blank config id.
a5775fccf.test_multitrack_ladderlinks that stub and does not link libobs or Qt.test_rungs_keep_order_resolution_and_codecfails because the row count is 0 instead of 2.3f74d0a6c. Four tests pass: rung order, resolution, and encoder id; fps and bitrate (including a fractional fps and a non-numeric bitrate); missing or invalid fields; an empty config, including the audio codec.Checklist
masterThis machine has no Docker, so the cmocka CI lane and the local-gate stamp were not run. The new test was compiled and run locally with VS 2022
/W4 /WX(four tests, exit 0). RelWithDebInfoobs64.exebuilt with this change.