Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: Improve frame rate compatibility, use Capture screen 0 instead of index number

Richie McIlroyaf67b49fc9d9
diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs
index 551363e60..bcaa51dde 100644
--- a/apps/desktop/src-tauri/src/main.rs
+++ b/apps/desktop/src-tauri/src/main.rs
@@ -141,7 +141,7 @@ async fn construct_recording_args(
video_type: &str
) -> Result<Vec<String>, String> {
let output_filename_pattern = format!("{}/recording_chunk_%03d.ts", chunks_dir.display());
- let fps = if video_type == "screen" { "60" } else { "30" };
+ let fps = if video_type == "screen" { "60" } else { "29.97" };
let preset = "veryfast".to_string();
let crf = "20".to_string();
let pix_fmt = "yuv420p".to_string();
diff --git a/apps/desktop/src/components/windows/inner/Recorder.tsx b/apps/desktop/src/components/windows/inner/Recorder.tsx
index cf0513cb9..c30120c6d 100644
--- a/apps/desktop/src/components/windows/inner/Recorder.tsx
+++ b/apps/desktop/src/components/windows/inner/Recorder.tsx
@@ -117,7 +117,7 @@ export const Recorder = ({ session }: { session: AuthSession | null }) => {
video_id: videoData.id,
aws_region: videoData.aws_region,
aws_bucket: videoData.aws_bucket,
- screen_index: "3",
+ screen_index: "Capture screen 0",
video_index: "0",
},
}).catch((error) => {