Commit a4c5ce9
committed
obs-ffmpeg: Fix Opus encoder bitrate limit
The Opus encoder was using enc_properties which allows bitrates up to
1024 kbps. However, FFmpeg's libopus enforces a maximum of 256 kbps per
channel. Selecting bitrates above 256 kbps would cause encoder
initialization to fail.
Added opus_properties() function that sets the correct bitrate range of
64-256 kbps. The 256 kbps limit is more than sufficient for Opus, as
typical WebRTC usage is only 30-90 kbps.
Fixes #127531 parent ab602ea commit a4c5ce9
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
422 | 422 | | |
423 | 423 | | |
424 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
425 | 437 | | |
426 | 438 | | |
427 | 439 | | |
| |||
481 | 493 | | |
482 | 494 | | |
483 | 495 | | |
484 | | - | |
| 496 | + | |
485 | 497 | | |
486 | 498 | | |
487 | 499 | | |
| |||
0 commit comments