From ce755cb1a39b9e9e41924bc159228e0658cde9ad Mon Sep 17 00:00:00 2001 From: RPJosh Date: Wed, 27 Mar 2024 22:58:27 +0100 Subject: [PATCH] Change H264 encoder from baseline to main --- .gitignore | 1 + src/h264-encoder-ffmpeg-impl.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 085e2f8..c299a39 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ build experiments subprojects sandbox +.vscode \ No newline at end of file diff --git a/src/h264-encoder-ffmpeg-impl.c b/src/h264-encoder-ffmpeg-impl.c index 8f082bb..0babc4e 100644 --- a/src/h264-encoder-ffmpeg-impl.c +++ b/src/h264-encoder-ffmpeg-impl.c @@ -310,9 +310,11 @@ static int h264_encoder__init_codec_context(struct h264_encoder_ffmpeg* self, c->global_quality = quality; /* open-h264 requires baseline profile, so we use constrained - * baseline. + * baseline: AV_PROFILE_H264_BASELINE. + * But that is not supported by many clients. So we use a "DEFAULT" profile. + * */ - c->profile = 578; + c->profile = AV_PROFILE_H264_MAIN; return 0; }