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.