Skip to content

Commit

Permalink
TRy setting sw_pix_fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Connor committed Feb 3, 2025
1 parent 7e3e9f3 commit d282f6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/zm_videostore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ bool VideoStore::open() {
video_out_ctx->max_b_frames = video_in_ctx->max_b_frames;
video_out_ctx->qmin = video_in_ctx->qmin;
video_out_ctx->qmax = video_in_ctx->qmax;
video_out_ctx->sw_pix_fmt = chosen_codec_data->sw_pix_fmt;
//video_out_ctx->pix_fmt = chosen_codec_data->hw_pix_fmt, av_get_pix_fmt_name(chosen_codec_data->hw_pix_fmt),

if (!av_dict_get(opts, "crf", nullptr, AV_DICT_MATCH_CASE)) {
if (av_dict_set(&opts, "crf", "23", 0)<0)
Expand Down Expand Up @@ -332,7 +334,7 @@ bool VideoStore::open() {
* the motion of the chroma plane does not match the luma plane. */
video_out_ctx->mb_decision = 2;
}
if (setup_hwaccel(video_out_ctx,
if (setup_hwaccel(video_out_ctx,
chosen_codec_data, hw_device_ctx, monitor->EncoderHWAccelDevice(), monitor->Width(), monitor->Height())) {
continue;
}
Expand Down

0 comments on commit d282f6b

Please sign in to comment.