Skip to content

Commit d195f35

Browse files
committed
enable default h264 config
1 parent 7831fe6 commit d195f35

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

pulsebeam/src/controller.rs

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -137,28 +137,29 @@ impl ControllerActor {
137137

138138
// Level 3.1 to 4.1. This is mainly to support clients that don't handle
139139
// level-asymmetry-allowed=true properly.
140-
let baseline_levels = [0x1f, 0x20, 0x28, 0x29];
141-
let mut pt = 96; // start around 96–127 range for dynamic types
142-
143-
for level in &baseline_levels {
144-
// Baseline
145-
codec_config.add_h264(
146-
pt.into(),
147-
Some((pt + 1).into()), // RTX PT
148-
true,
149-
0x420000 | level,
150-
);
151-
pt += 2;
152-
153-
// Constrained Baseline
154-
codec_config.add_h264(
155-
pt.into(),
156-
Some((pt + 1).into()), // RTX PT
157-
true,
158-
0x42e000 | level,
159-
);
160-
pt += 2;
161-
}
140+
// let baseline_levels = [0x1f, 0x20, 0x28, 0x29];
141+
// let mut pt = 96; // start around 96–127 range for dynamic types
142+
//
143+
// for level in &baseline_levels {
144+
// // Baseline
145+
// codec_config.add_h264(
146+
// pt.into(),
147+
// Some((pt + 1).into()), // RTX PT
148+
// true,
149+
// 0x420000 | level,
150+
// );
151+
// pt += 2;
152+
//
153+
// // Constrained Baseline
154+
// codec_config.add_h264(
155+
// pt.into(),
156+
// Some((pt + 1).into()), // RTX PT
157+
// true,
158+
// 0x42e000 | level,
159+
// );
160+
// pt += 2;
161+
// }
162+
codec_config.enable_h264(true);
162163

163164
// TODO: OBS only supports Baseline level 3.1
164165
// // ESP32-P4 supports up to 1080p@30fps

0 commit comments

Comments
 (0)