CapSoftware / Cap

Open source Loom alternative. Effortless, instant screen sharing.

Home Page:https://cap.so

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Combine Ffmpeg commands into one single command (macOS)

richiemcilroy opened this issue Β· comments

Right now, there are two separate commands for capturing audio and video. They can be found in media.rs located in apps/desktop/src-tauri. I would like to have them combined into one single ffmpeg command to reduce system load when recording.

Requirements

  • Create one single ffmpeg command that takes input from both the audio and video sources, muxing into one .ts file
    • This will probably be done by creating separate named pipes as the input sources
  • Make sure the recording process is still performant after changing

You can use this guide to help you get started developing locally as quickly as possible.

/bounty $100

πŸ’Ž $200 bounty β€’ Cap

Steps to solve:

  1. Start working: Comment /attempt #24 with your implementation plan
  2. Submit work: Create a pull request including /claim #24 in the PR body to claim the bounty
  3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

Thank you for contributing to CapSoftware/Cap!

Add a bounty β€’ Share on socials

Attempt Started (GMT+0) Solution
πŸ”΄ @webbdays Apr 11, 2024, 3:11:38 PM WIP
🟒 @Brendonovich Jun 13, 2024, 8:21:35 AM #46

/attempt

Algora profile Completed bounties Tech Active attempts Options
@webbdays 1 bounty from 1 project
Python, Rust,
JavaScript & more
Cancel attempt

@richiemcilroy
some example usage of the command?

yes, i would like to have idea of using command with both type of inputs.

@webbdays it's possible but requires the use of fifo named pipes so that ffmpeg can read from the two input sources from one command.

Or if there's an alternative method with a better approach that can also be used.

Currently, i am not full-fledged working on this.
others with ideas can attempt this issue.

Make sure the recording process is still performant after changing

do we have any sort of benchmark to run before and after?

I guess the benchmark is just making sure that the screen capture and microphone recording is being created from a single ffmpeg command instead of two currently

Where are recordings saved on the dev environment (without S3 enabled)?

Also, do I need a running mysql to run the app locally?

πŸ’‘ @Brendonovich submitted a pull request that claims the bounty. You can visit your bounty board to reward.

/bounty $200

πŸŽ‰πŸŽˆ @Brendonovich has been awarded $200! 🎈🎊