-
Notifications
You must be signed in to change notification settings - Fork 506
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
switch to ffmpeg-sidecar #194
Comments
/bounty 100 |
💎 $100 bounty • Screenpi.peSteps to solve:
Thank you for contributing to mediar-ai/screenpipe! Add a bounty • Share on socials
|
/attempt #194
|
/attempt #194
|
💡 @Neptune650 submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
hey adding more context here it's complex task with things involved:
|
@louis030195 Hey there, this shouldn't cause any issues at all because what this does is install ffmpeg if it's not found, it's exactly the same as if the user already installed it or was shipped. |
Also, after installing it, we set the ffmpeg path it's installed to, we could use the native bindings, but again this shouldn't cause any issues because it's really just vanilla ffmpeg. |
no, there are many different versions of ffmpeg that supports some encodings or don't (from my own experience) which results in crashes if not supported that' why we have special if for windows vs macos encoding which don't support the same things |
All of the ffmpeg builds provided support h265 encoding. (look here) But acceleration of course depends on the OS and hardware.
Within my tests in CI and in VMs, it all worked fine.
I checked all the URLs myself, none of them are blocked in China. I tested using this website: https://www.dotcom-tools.com/china-firewall-test
I think it would be good to leave it there as a fallback.
As I linked above, it's all different links and not by the maintainer but other people, so shouldn't break suddenly. @louis030195 Tell me what you think, and merge #580 if appropriate. |
hmm @Neptune650 any chance you can do some measurement of difference between using h265 and current? i need more conviction it's worthwhile to switch like maybe simple bash script that runs screenpipe on --data-dir /tmp/test123 and measure how much storage it consume after 10-60 mins and how much resource (cpu, gpu, ram) and run this with and without h265 (or some more efficient test) |
once merged, does this swap audio capture over to ffmpeg? if so, not sure if i closed/my ticket got closed about audio on linux always recording output streams, but it may resolve that issue. If so, as long as the performance is identical or slightly worse, it'd be worth it (for me/any other linux users, presumably) imo |
🎉🎈 @Neptune650 has been awarded $100! 🎈🎊 |
https://github.com/CapSoftware/ffmpeg-sidecar
https://github.com/CapSoftware/Cap/blob/63719073805f1fd040343ae27366272a29918078/apps/desktop/src-tauri/src/main.rs#L75
switch to use this lib to install ffmpeg in screenpipe lib
Update: little concern with cap fork is that it's using their s3 ffmpeg build so if they close it, product is down, but can work around this later i guess
The text was updated successfully, but these errors were encountered: