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.11k stars 463 forks source link

How to capture a specified window, not the screen #16

Open ghost opened 11 years ago

ghost commented 11 years ago

How to capture a specified window, not the screen?

Can I pass it the window handle?

rdp commented 11 years ago

there is an HWND registry setting...

On Thu, Mar 28, 2013 at 10:22 AM, anderschen notifications@github.comwrote:

How to capture a specified window, not the screen?

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

ghost commented 11 years ago

HKEY_CURRENT_USER\Software\screen-capture-recorder\hwnd_to_use

Do like this?

rdp commented 11 years ago

Yep that shouldwork :)

On Thu, Mar 28, 2013 at 9:51 PM, anderschen notifications@github.comwrote:

HKEY_CURRENT_USER\Software\screen-capture-recorder\hwnd_to_use

Do like this?

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

huazi103 commented 10 years ago

ffmpeg -rtbufsize 1500M -f dshow -i audio="virtual-audio-capturer" -f gdigrab -framerate 30 -draw_mouse 1 -i title=RecordWindow -pix_fmt yuv420p -profile:v baseline -y Huangbaohua.mp4

the RecordWindow is the title of a specified window.