-
Notifications
You must be signed in to change notification settings - Fork 545
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
Add ffmpeg-sidecar support #580
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@louis030195 Please check this #194 (comment) and review. |
@louis030195 And another benefit is that we no longer need to use a different encoding for Windows and other platforms - we can just use libx265 for every platform. |
still think we can remove old ffmepg then |
@louis030195 I think it's unnecessary - it just stays as a fallback and doesn't cause any issues at all. |
is that only on mac? can you add
|
|
@louis030195 Oh - my bad, I hadn't checked with screenpipe setup. |
@louis030195 It doesn't cause any issues now. |
I hadn't seen this error in Linux or Windows, adding it. |
|
@louis030195 Thanks for creating the issue |
chatgpt says ```screenpipe-app-tauri/components/video.tsx
// ... existing code ...
const getMimeType = (path: string): string => {
const ext = path.split(".").pop()?.toLowerCase();
switch (ext) {
case "mp4":
return "video/mp4";
case "webm":
return "video/webm";
case "ogg":
return "video/ogg";
case "mp3":
return "audio/mpeg";
case "wav":
return "audio/wav";
case "h265": // Add support for H.265
return "video/h265"; // Adjust MIME type if necessary
default:
return isAudio ? "audio/mpeg" : "video/mp4";
}
};
// ... existing code ... (seems wrong but need to investigate mime type) will try when i have time |
@louis030195 I'll also carry out my own tests |
tried again this PR to fix macos that does not render:
does not work still |
@louis030195 How do you feel about keeping the ffmpeg sidecar but using x264? |
the point of this was to enable h265 users don't have ffmpeg issues with the current build |
@louis030195 Well other benefits is that it auto-installs ffmpeg if not present, and also can use x264 in windows instead of x264_mf |
@Neptune650 okay sure, let's do this? lib265 for linux and windows |
/approve |
@louis030195: The claim has been successfully added to reward-all. You can visit your dashboard to complete the payment. |
@louis030195 Sounds good to me, thanks. |
/claim #194
/closes #194
This PR adds ffmpeg-sidecar with auto install, it is partly inspired by the older PR but I've tested it and made significant important changes. Fork has been changed due to being more updated.