<div dir="ltr">Hello,<div><br></div><div>I'm currently trying to record the desktop of a surface pro 3 running windows 10 using screen-capture-recorder and ffmpeg. The following works in the command line.</div><div><br></div><div>     ffmpeg -f dshow -video_size 1280x853 -i video=screen-capture-recorder output.mpg </div><div><br></div><div>However when I try to do the same in code I get the error </div><div><br></div><div>     '[dshow] Could not set video options'</div><div><br></div><div>Which only happens when set the video_size option by doing the following:</div><div><br></div><div><br></div><div>     av_dict_set(&dictionary, "video_size", "1280x853", NULL);<br></div><div><br></div><div><div>     if ((ret = avformat_open_input(&ifmt_ctx, input_device, inputFormat, &dictionary)) < 0) {</div><div><span class="" style="white-space:pre">          </span>printf("Cannot open input file\n");</div><div><span class="" style="white-space:pre">              </span>return ret;</div><div>     }</div></div><div><br></div><div>I've also noticed that screen-capture-recorder says it only supports up to 1280x853 video size when doing -list_options, even though the resolution of the tablet in windows is 1920x1280, I think this is due to some software scaling that is going on with the surface, but not entirely certain because the command line arguments that I posted above that works only records the top left portion of the screen. </div><div><br></div><div>Also, if I don't specify the video_size in the dictionary, the recording works but only records a portion of the desktop. </div><div><br></div><div>Has anyone had an issue like this before? I'm not entirely certain if the issue lies with windows 10, directshow, screen-capture-recorder, or if I'm just doing something wrong in my code. </div><div><br></div><div>Thanks,</div><div>Casey</div></div>