Change H264 encoder from baseline to main

own_2024-03-26
Jonas Letzbor 2024-03-27 22:58:27 +01:00
parent a77b99f2b4
commit b3bafd4e97
Signed by: RPJosh
GPG Key ID: 43ACB900522EA740
2 changed files with 5 additions and 2 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ build
experiments
subprojects
sandbox
.vscode

View File

@ -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;
}