screen-recorder-ffmpeg-cpp icon indicating copy to clipboard operation
screen-recorder-ffmpeg-cpp copied to clipboard

Assertion desc failed at libswscale\swscale_internal.h

Open Kanni1021 opened this issue 1 year ago • 0 comments

Hi,

Assertion desc failed at C:\Users\Admin\path\FFmpegInterop\ffmpeg\libswscale\swscale_internal.h:677

I’m facing this runtime error while I try to record my screen in windows.

I changed the code as follows

pAVInputFormat = av_find_input_format("gdigrab");

const char* devicename = "desktop";
value = avformat_open_input(&pAVFormatContext, devicename, pAVInputFormat, NULL);

If I use “dshow” & devicename = “video=HP TrueVision HD Camera”. I’m able to record with camera. But I would like to record my screen.

Kanni1021 avatar Mar 22 '24 04:03 Kanni1021