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

Capture Specific Window by their title (Like GDIGrab do that ) #67

Open rplabon opened 9 years ago

rplabon commented 9 years ago

gdigrab works great on -i desktop but when i use -i title the conference area is black. does screen-capture-recorder have window capturing support?

rdp commented 9 years ago

what OS?

rplabon commented 9 years ago

Windows 8.1. 64 bit.

rdp commented 9 years ago

I think the problem is the conference area itself is a different window than the one its selecting, no easy work around for gdigrab I'm afraid (is this a bug report for screen capturer or gdigrab BTW)?

rplabon commented 9 years ago

Hi,thanks.

Its in GDIgrab.

On Sat, Oct 3, 2015 at 12:42 AM, Roger Pack notifications@github.com wrote:

I think the problem is the conference area itself is a different window than the one its selecting, no easy work around for gdigrab I'm afraid (is this a bug report for screen capturer or gdigrab BTW)?

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/67#issuecomment-145120381 .

Regards Kh. Rabiul Hasan (Software Engineer)

rplabon commented 9 years ago

Using FFMPEG(dshow) and screen capture recorder , i wanted to get output for specific window.

Is that possible by modifying some code in screen capture recorder, so that it can capture particular window .?

rdp commented 8 years ago

Yes anything is possible :) I would just figure out some script to compute the proper HWND for you, but I might add it to screen capturer in the next half year or so

On Sat, Oct 3, 2015 at 10:14 PM, Kh. Rabiul Hasan notifications@github.com wrote:

Using FFMPEG(dshow) and screen capture recorder , i wanted to get output for specific window.

Is that possible by modifying some code in screen capture recorder, so that it can capture particular window .?

— Reply to this email directly or view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/67#issuecomment-145316780 .

jabulon commented 8 years ago

Hi @rdp ! I see that in build 0.11.1, You've added a new parameter: capture_foreground_window_if_1. Dies this mean that you now have the capability to capture individual windows ?

rdp commented 8 years ago

yes by HWND or "detect foreground" I believe

On Thu, Sep 29, 2016 at 5:47 AM, jabulon notifications@github.com wrote:

Hi @rdp https://github.com/rdp ! I see that in build 0.11.1, You've added a new parameter: capture_foreground_window_if_1. Dies this mean that you now have the capability to capture individual windows ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/67#issuecomment-250444095, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0NFTMh0P89HtibQ2xm_B7Idzx2nhks5qu6VOgaJpZM4GHBHU .

jabulon commented 7 years ago

Thanks, but I seem to be somewhat lost..I'm trying to record a specific window and trace its location if I move it around. How can pass screen-capture-recorder the name/pid of the window ?

rdp commented 7 years ago

please see the README about HWND I'm not sure if it tracks a window that moves but it should...

On Sun, Oct 23, 2016 at 2:20 AM, jabulon notifications@github.com wrote:

Thanks, but I seem to be somewhat lost..I'm trying to record a specific window and trace its location if I move it around. How can pass screen-capture-recorder the name/pid of the window ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/67#issuecomment-255575515, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0B9H9QO3S7lYsQeLh2VVOTgxaQVuks5q2xjIgaJpZM4GHBHU .

jabulon commented 7 years ago

Using HWND works and it tracks the window smoothly! I do have an issue though: When I resize the window, the mouse cursor is recorded in a weird way inside the previously occupied space. In addition, the area left behind when the window's size was reduced, is still displayed in the recording: recording Am I the only one experiencing this?

rdp commented 7 years ago

param track_new_x_y_coords_each_frame_if_1 help?

On Tue, Mar 7, 2017 at 12:33 AM, Eli Abramson notifications@github.com wrote:

Using HWND works and it tracks the window smoothly! I do have an issue though: When I resize the window, the mouse cursor is recorded in a weird way inside the previously occupied space. In addition, the area left behind when the window's size was reduced, is still displayed in the recording: [image: recording] https://cloud.githubusercontent.com/assets/9354410/23646317/fac7b4fc-0318-11e7-8055-d0f1204791f8.gif Am I the only one experiencing this?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rdp/screen-capture-recorder-to-video-windows-free/issues/67#issuecomment-284644336, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAw0LmMDqBa9HPS-hp7tVuOKbu7it3_ks5rjQhcgaJpZM4GHBHU .

jabulon commented 7 years ago

nope.. I think I've tried most possible combinations: with and without aero, specifying size, stretching, dedup, w/o mouse cursor. The same behaviour happens when I'm using ffmpeg's GDIgrab driver. I'm thinking that in order to solve this, I would have to somehow "flush" the current frame when the window is resized.

rdp commented 7 years ago

hmm that's odd...

f4z3k4s commented 2 years ago

For anybody who might be looking at this in 2022: it also produces the same black output as gdigrab on hardware accelerated windows, don't waste your time on it.

wbtcpip2 commented 2 years ago

in 2022 with windows 10/11 to capture a single window you need to use windows Graphics Capture API (it works also on hardware accelerated windows)

https://github.com/robmikh/Win32CaptureSample