Open bravoshota opened 8 months ago
incorrect output meaning the wrong window?
On Tue, Dec 19, 2023 at 1:39 PM Shota Meladze @.***> wrote:
I am developing Qt application for Windows. 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:
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?
— Reply to this email directly, view it on GitHub https://github.com/rdp/virtual-audio-capture-grabber-device/issues/42, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADBUFJIPEU75U5U44IHZDYKH3RHAVCNFSM6AAAAABA3YPXVKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DSNBQGAYTIOA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
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!