rdp / screen-capture-recorder-to-video-windows-free

a free open source windows "screen capture" device and recorder (also allows VLC/ffmpeg and others to capture/stream desktop/audio)
https://github.com/rdp/screen-capture-recorder-to-video-windows-free/releases
Other
2.09k stars 458 forks source link

Surface Pro incorrect resolution used #31

Open JCH01 opened 10 years ago

JCH01 commented 10 years ago

I am using your directshow filter to stream my desktop on a surface pro. The resolution on the device is 1920x1080, the resolution detected by your software is 1280x720 (as recorded in the registry). I did some searching and I believe this is because of the DPI vs DIP mentioned here: http://msdn.microsoft.com/en-us/library/windows/desktop/ff684173%28v=vs.85%29.aspx

I don't understand all that, but I hope you do.

Thanks.

rdp commented 10 years ago

What are your registry settings?

On Mon, Dec 2, 2013 at 10:58 PM, jch85297 notifications@github.com wrote:

I am using your directshow filter to stream my desktop on a surface pro. The resolution on the device is 1920x1080, the resolution detected by your software is 1280x720 (as recorded in the registry). I did some searching and I believe this is because of the DPI vs DIP mentioned here:

http://msdn.microsoft.com/en-us/library/windows/desktop/ff684173%28v=vs.85%29.aspx

I don't understand all that, but I hope you do.

Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/31 .

JCH01 commented 10 years ago

The registry only has the two default keys last_init_config_was and last_run_performance. I run it with default values.

rdp commented 10 years ago

Do you think it's the same problem as https://github.com/rdp/on-screen-capture-recorder-to-video-windows-free/issues/3?

On Wed, Dec 4, 2013 at 4:57 PM, jch85297 notifications@github.com wrote:

Reopened #31https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/31 .

— Reply to this email directly or view it on GitHubhttps://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/31 .

JCH01 commented 10 years ago

I don't have windows 8.1, I have 8.0. but I do think it's related. In Control Panel->All Control Panel Items->Display I have the options of 100%, 125%, 150%. When 100% is selected, screen-capture-recorder correctly detects 1920x1080. When 150% is selected, screen-capture-recorder detects the resolution to be 1280x720. Windows is telling screen-capture-recorder the horizontal to be 1280 (1280 x 1.5 = 1920) because screen-capture-recorder is not "DPI aware" as they call it in the link of my first question. I think it makes sense to me now. That link also has code samples of how to calculate the scale (100, 125, or 150) currently in use.

rdp commented 10 years ago

which link has them?

On Thu, Dec 5, 2013 at 7:30 AM, jch85297 notifications@github.com wrote:

I don't have windows 8.1, I have 8.0. but I do think it's related. In Control Panel->All Control Panel Items->Display I have the options of 100%, 125%, 150%. When 100% is selected, screen-capture-recorder correctly detects 1920x1080. When 150% is selected, screen-capture-recorder detects the resolution to be 1280x720. Windows is telling screen-capture-recorder the horizontal to be 1280 (1280 x 1.5 = 1920) because screen-capture-recorder is not "DPI aware" as they call it in the link of my first question. I think it makes sense to me now. That link also has code samples of how to calculate the scale (100, 125, or 150) currently in use.

— Reply to this email directly or view it on GitHubhttps://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/31#issuecomment-29901486 .

mochazi commented 1 year ago

This happens to me too on Windows 10.

When it is Display as 100% recognition success, but 125% is wrong. @rdp @JCH01

Command Line: ffmpeg -rtbufsize 1024M -f dshow -i video="screen-capture-recorder" -pix_fmt yuv420p output.mkv

image image image

But the gdigrab that comes with ffmpeg can identify successfully.

Command Line: ffmpeg -f gdigrab -framerate 30 -i desktop -pix_fmt yuv420p output.mkv

FFmpeg Use built-in GDI screengrabber

image image

rdp commented 1 year ago

I might be able to fix it, hard to get the motivation tho, funding or a PR welcome :)

On Tue, Nov 22, 2022 at 1:56 AM 李浩能 @.***> wrote:

This happens to me too on Windows 10.

When it is Display as 100% recognition success, but 125% is wrong. @rdp https://github.com/rdp @JCH01 https://github.com/JCH01

Command Line: ffmpeg -rtbufsize 1024M -f dshow -i video="screen-capture-recorder" -pix_fmt yuv420p output.mkv

[image: image] https://user-images.githubusercontent.com/54659396/203267168-005434d5-0bca-468f-b5ef-9b8e73e09190.png [image: image] https://user-images.githubusercontent.com/54659396/203267817-c75fb331-ca0f-40a3-9d56-e00bb72d4d76.png [image: image] https://user-images.githubusercontent.com/54659396/203268413-a45fea42-aa9c-4145-8c98-791a00efa425.png

— Reply to this email directly, view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/31#issuecomment-1323320011, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUBXT473WRGLZTECUA3WJSDDNANCNFSM4AKFF2HQ . You are receiving this because you were mentioned.Message ID: <rdp/screen-capture-recorder-to-video-windows-free/issues/31/1323320011@ github.com>