Skip to content

Commit 913b25d

Browse files
christriantskixelatedclaude
authored
Add AV1 encoder (#20)
* Add AV1 encoder * Update libmoq to 0.2.7 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Luke Curley <kixelated@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 19d9416 commit 913b25d

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"ENABLE_QT": false,
1515
"CMAKE_EXPORT_COMPILE_COMMANDS": true,
1616
"BUILD_PLUGIN": true,
17-
"MOQ_VERSION": "0.2.4",
17+
"MOQ_VERSION": "0.2.7",
1818
"MOQ_ARCHIVE": "tar.gz"
1919
}
2020
},

src/moq-output.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ void register_moq_output()
300300
const uint32_t base_flags = OBS_OUTPUT_ENCODED | OBS_OUTPUT_SERVICE;
301301

302302
const char *audio_codecs = "aac;opus";
303-
// TODO: Add support for AV1, VP9.
304-
const char *video_codecs = "h264;hevc";
303+
const char *video_codecs = "h264;hevc;av1";
305304

306305
struct obs_output_info info = {};
307306
info.id = "moq_output";

src/moq-service.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// TODO: Define supported codecs.
44
const char *audio_codecs[] = {"aac", "opus", nullptr};
5-
const char *video_codecs[] = {"h264", "hevc", nullptr};
5+
const char *video_codecs[] = {"h264", "hevc", "av1", nullptr};
66

77
MoQService::MoQService(obs_data_t *settings, obs_service_t *) : server(), path()
88
{
@@ -37,10 +37,10 @@ void MoQService::ApplyEncoderSettings(obs_data_t *video_settings, obs_data_t *au
3737
*/
3838

3939
// Example:
40-
if (video_settings) {
41-
obs_data_set_int(video_settings, "bf", 0);
42-
obs_data_set_bool(video_settings, "repeat_headers", true);
43-
}
40+
if (video_settings) {
41+
obs_data_set_int(video_settings, "bf", 0);
42+
obs_data_set_bool(video_settings, "repeat_headers", true);
43+
}
4444

4545
if (audio_settings) {
4646
obs_data_set_int(audio_settings, "bf", 0);

0 commit comments

Comments
 (0)