Skip to content

Commit

Permalink
set some default values for h265 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Mar 16, 2024
1 parent b1de4ab commit 85351f6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions toxav/codecs/h264/codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1941,16 +1941,17 @@ VCSession *vc_new_h265(Logger *log, ToxAV *av, uint32_t friend_number, toxav_vid
// goto fail;
}

/* Configure non-default params */
// param.i_bitdepth = 8;
/*
param.i_csp = X264_CSP_I420;
param.i_width = 1920;
param.i_height = 1080;
*/
vc->h264_enc_width = 1920;
vc->h264_enc_height = 1080;

x265_param_parse(param, "fps", "30");
x265_param_parse(param, "repeat-headers", "1");
x265_param_parse(param, "annexb", "1");
x265_param_parse(param, "input-res", "1920x1080");
x265_param_parse(param, "input-csp", "i420");

vc->h264_enc_bitrate = VIDEO_BITRATE_INITIAL_VALUE_H264 * 1000;

vc->h265_in_pic = x265_picture_alloc();
x265_picture_init(param, vc->h265_in_pic);

Expand Down

0 comments on commit 85351f6

Please sign in to comment.