Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to record with system sound #187

Open
furllmm opened this issue Jun 17, 2024 · 13 comments
Open

how to record with system sound #187

furllmm opened this issue Jun 17, 2024 · 13 comments
Labels
enhancement New feature or request

Comments

@furllmm
Copy link

furllmm commented Jun 17, 2024

and i have problem: my windrecorder consumes battery fast

@Antonoko
Copy link
Member

Thanks for the feedback! By adding parameters to ffmpeg, it should be easy to record the system sound. So it will be added as an option in the future very soon.
Currently, windrecorder relies heavily on ffmpeg video encoding and decoding, so it will take up a lot of system resources when recording and analyzing. In the future, we will consider refactoring and optimizing it to a mode of continuous screenshot analysis and then delayed compression for video archiving, so as to save performance consumption.

@Antonoko Antonoko added the enhancement New feature or request label Jun 17, 2024
@furllmm
Copy link
Author

furllmm commented Jun 18, 2024

umm if screenshot feature comes is screen recording feature stays in app?
i like screen record feat.
and which config to add? to where ?

@Antonoko
Copy link
Member

umm if screenshot feature comes is screen recording feature stays in app? i like screen record feat. and which config to add? to where ?

yes, currently recording with ffmpeg will take up a lot of system resources. I plan to refactor it to capture screenshot first and then stitch them into videos later to be compatible with the previous implement in the future. However, this method may lose a lot of intermediate images as traditional video recording, so the configuration options of the previous method will also be retained.

@Antonoko
Copy link
Member

and i have problem: my windrecorder consumes battery fast

the new version has added a more performance-saving Automatic Flexible Screenshot recording mode and energy-saving options, which should be able to better control power consumption. feel free to update and try it!

@furllmm
Copy link
Author

furllmm commented Jul 24, 2024

how can i reduce ffmpeg ram usage if possible (step by step pls) @Antonoko

@Antonoko
Copy link
Member

how can i reduce ffmpeg ram usage if possible (step by step pls) @Antonoko

currently ffmpeg recording uses the gdigrab recording method, which seems requires the CPU to move and encode screen content from the GPU framebuffer, resulting in a large memory overhead. (For my personal use, I prefer to use the flexible screenshot mode, which only requires ffmpeg to compress the video in the end, and does not take up a lot of ram for recording. If the transcoding step still takes up a lot of memory, you can set it to use GPU encoding (Nvidia or AMD) in the advanced encoding settings under compression in the recording settings tab.

It is said that technically, ddagrab/nvenc (nvidia) or dxva2/qsv can be used to replace gdigrab to achieve simultaneous capture and encoding on the GPU. However, due to my limited engineering ability and time and energy, it is still far to achieve this(including multi-monitor and different GPU platforms detective). If you are interested, you can help us study it together. (https://x.com/7id/status/1771091929284894809)

@furllmm
Copy link
Author

furllmm commented Jul 25, 2024

@Antonoko i not have amd or nvidia gpus
image

@furllmm
Copy link
Author

furllmm commented Jul 25, 2024

can you add intel uhd graphics on that settings

@Antonoko
Copy link
Member

can you add intel uhd graphics on that settings

I added -hwaccel auto to ffmpeg compress command, hardware acceleration should be automatically called when compressing videos (if available). If you use flexible screenshot mode, you can try it after running install_update.bat. However, video compression itself is still a high-energy task, and it may still take up a lot of resources and cause lag on low-performance hardware.

@furllmm
Copy link
Author

furllmm commented Aug 2, 2024

hmm i detected 2 ffmpeg running after some minute. can u fix?
@Antonoko

@furllmm
Copy link
Author

furllmm commented Aug 2, 2024

i have lenovo ideapad slim 3i laptop
it has intel uhd graphic only (gpu)
i mean can you add intel uhd graphs to here?
image

@Antonoko
Copy link
Member

Antonoko commented Aug 3, 2024

I'm not too familiar with ffmpeg and whether Intel has unique hardware accelerated instructions and encoding formats, may need to do some research. If anyone knows, please feel free to add information or submit a PR. (:з」∠)

@furllmm
Copy link
Author

furllmm commented Aug 3, 2024

i have idea:
join discord server or reddit community about ffmpeg

@Antonoko

@Antonoko Antonoko mentioned this issue Sep 25, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants