YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat: support h.265 videos on mac (#1012)
ologbonowiwi71e1ecf99e3f
diff --git a/pipes/identify-speakers/src/components/video.tsx b/pipes/identify-speakers/src/components/video.tsxindex 87bbacba5..dd2d4cfb0 100644--- a/pipes/identify-speakers/src/components/video.tsx+++ b/pipes/identify-speakers/src/components/video.tsx@@ -126,6 +126,8 @@ export const VideoComponent = memo(function VideoComponent({</div>) : (<video controls className="w-full rounded-md">+ <source src={mediaSrc} type='video/mp4; codecs="hvc1"' />+ <source src={mediaSrc} type='video/mp4; codecs="hvec"' /><source src={mediaSrc} type="video/mp4" />Your browser does not support the video tag.</video>diff --git a/pipes/search/src/components/video.tsx b/pipes/search/src/components/video.tsxindex 04dc84cc4..eef967cd0 100644--- a/pipes/search/src/components/video.tsx+++ b/pipes/search/src/components/video.tsx@@ -129,6 +129,8 @@ export const VideoComponent = memo(function VideoComponent({/>) : (<video controls className="w-full rounded-md">+ <source src={mediaSrc} type='video/mp4; codecs="hvc1"' />+ <source src={mediaSrc} type='video/mp4; codecs="hvec"' /><source src={mediaSrc} type="video/mp4" />Your browser does not support the video tag.</video>diff --git a/pipes/timeline/src/components/video.tsx b/pipes/timeline/src/components/video.tsxindex 20adfda27..6c6992ca6 100644--- a/pipes/timeline/src/components/video.tsx+++ b/pipes/timeline/src/components/video.tsx@@ -123,6 +123,8 @@ export const VideoComponent = memo(function VideoComponent({</div>) : (<video controls className="w-full rounded-md">+ <source src={mediaSrc} type='video/mp4; codecs="hvc1"' />+ <source src={mediaSrc} type='video/mp4; codecs="hvec"' /><source src={mediaSrc} type="video/mp4" />Your browser does not support the video tag.</video>diff --git a/screenpipe-server/src/video.rs b/screenpipe-server/src/video.rsindex eb35b694b..4a5095e5a 100644--- a/screenpipe-server/src/video.rs+++ b/screenpipe-server/src/video.rs@@ -167,12 +167,16 @@ pub async fn start_ffmpeg_process(output_file: &str, fps: f64) -> Result<Child,"pad=width=ceil(iw/2)*2:height=ceil(ih/2)*2",];- // TODO: issue on macos https://github.com/mediar-ai/screenpipe/pull/580- #[cfg(target_os = "macos")]- args.extend_from_slice(&["-vcodec", "libx264", "-preset", "ultrafast", "-crf", "23"]);-- #[cfg(not(target_os = "macos"))]- args.extend_from_slice(&["-vcodec", "libx265", "-preset", "ultrafast", "-crf", "23"]);+ args.extend_from_slice(&[+ "-vcodec",+ "libx265",+ "-tag:v",+ "hvc1",+ "-preset",+ "ultrafast",+ "-crf",+ "23",+ ]);args.extend_from_slice(&["-pix_fmt", "yuv420p", output_file]);