<div dir="ltr"><div>I'm running ffmpeg 2.8.1 (I think, I know its not the latest since I grabbed it in October). </div><div><br></div><div>I was able to resolve the issue by turning off screen-scaling in windows. By default its set to 150% on the surface Pro 3. If I didn't set a video_size the recording with screen scaling on it would only record a small portion of the top left hand corner of the screen (1280x853), so I believe the issue is with Dshow and screen scaling in windows 10 not playing together nicely. </div><div><br></div><div>This fix works for me, but it would be nice if capturing would work with screen-scaling on since its quite hard to use the tablet with it off. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 7:22 PM, Roger Pack <span dir="ltr"><<a href="mailto:rogerdpack2@gmail.com" target="_blank">rogerdpack2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What version of ffmpeg are you using here? You should not have to<br>
specify video_size by default it should capture the whole thing.<br>
<div><div class="h5"><br>
On 12/14/15, Casey Price <<a href="mailto:cprice1317@gmail.com">cprice1317@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I'm currently trying to record the desktop of a surface pro 3 running<br>
> windows 10 using screen-capture-recorder and ffmpeg. The following works in<br>
> the command line.<br>
><br>
>      ffmpeg -f dshow -video_size 1280x853 -i video=screen-capture-recorder<br>
> output.mpg<br>
><br>
> However when I try to do the same in code I get the error<br>
><br>
>      '[dshow] Could not set video options'<br>
><br>
> Which only happens when set the video_size option by doing the following:<br>
><br>
><br>
>      av_dict_set(&dictionary, "video_size", "1280x853", NULL);<br>
><br>
>      if ((ret = avformat_open_input(&ifmt_ctx, input_device, inputFormat,<br>
> &dictionary)) < 0) {<br>
> printf("Cannot open input file\n");<br>
> return ret;<br>
>      }<br>
><br>
> I've also noticed that screen-capture-recorder says it only supports up to<br>
> 1280x853 video size when doing -list_options, even though the resolution of<br>
> the tablet in windows is 1920x1280, I think this is due to some software<br>
> scaling that is going on with the surface, but not entirely certain because<br>
> the command line arguments that I posted above that works only records the<br>
> top left portion of the screen.<br>
><br>
> Also, if I don't specify the video_size in the dictionary, the recording<br>
> works but only records a portion of the desktop.<br>
><br>
> Has anyone had an issue like this before? I'm not entirely certain if the<br>
> issue lies with windows 10, directshow, screen-capture-recorder, or if I'm<br>
> just doing something wrong in my code.<br>
><br>
> Thanks,<br>
> Casey<br>
><br>
</div></div>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div><br></div>