I am developing Qt application on Windows 10. My goal is to capture my application's content using ffmpeg. My script is:
ffmpeg -rtbufsize 1500M -f dshow -i video="screen-capture-recorder":audio="virtual-audio-capturer" -f dshow -i audio="Microphone (Realtek High Definition Audio)" -c:v libx264 -pix_fmt yuv420p -crf 25 -preset ultrafast -filter_complex amix -y -hide_banner "D:/XXX.mp4"
Before I run the script, I setup the options in HKEY_CURRENT_USER\Software\screen-capture-recorder as requested in documentation:
hwnd_to_track REG_DWORD 190fa0
track_new_x_y_coords_each_frame_if_1 REG_DWORD 1
Finally, I get incorrect output like that:
https://github.com/rdp/virtual-audio-capture-grabber-device/assets/7863986/2ed6b594-3a53-411c-8894-6523e6d4221d
(Indeed I see the other cmd window in the recording, not the application content)
Are there some restrictions passing HWND values? Should it be the main window (the parent of all others) or which conditions should the window satisfy? I have QWebEngineView control on my window. As investigated, it contains QtQuick widgets as children.
Maybe not directly related to screen-capture-recorder, but when I use gdigrab to capture other window (e.g. WhatsApp) it is recording the black screen. But when I record the whole desktop, both "dshow" and "gdigrab" succeed.
Finally, I appreciate for the great work you've made to implement this tool!
I am developing Qt application on Windows 10. My goal is to capture my application's content using ffmpeg. My script is:
ffmpeg -rtbufsize 1500M -f dshow -i video="screen-capture-recorder":audio="virtual-audio-capturer" -f dshow -i audio="Microphone (Realtek High Definition Audio)" -c:v libx264 -pix_fmt yuv420p -crf 25 -preset ultrafast -filter_complex amix -y -hide_banner "D:/XXX.mp4"
Before I run the script, I setup the options in HKEY_CURRENT_USER\Software\screen-capture-recorder as requested in documentation:
hwnd_to_track REG_DWORD 190fa0
track_new_x_y_coords_each_frame_if_1 REG_DWORD 1
Finally, I get incorrect output like that:
https://github.com/rdp/virtual-audio-capture-grabber-device/assets/7863986/2ed6b594-3a53-411c-8894-6523e6d4221d
(Indeed I see the other cmd window in the recording, not the application content)
Are there some restrictions passing HWND values? Should it be the main window (the parent of all others) or which conditions should the window satisfy? I have QWebEngineView control on my window. As investigated, it contains QtQuick widgets as children.
Maybe not directly related to screen-capture-recorder, but when I use gdigrab to capture other window (e.g. WhatsApp) it is recording the black screen. But when I record the whole desktop, both "dshow" and "gdigrab" succeed.
Finally, I appreciate for the great work you've made to implement this tool!