diff options
| author | Hyteq <DerpsDer.es@gmail.com> | 2025-06-23 10:33:03 +0300 |
|---|---|---|
| committer | Hyteq <DerpsDer.es@gmail.com> | 2025-06-23 10:33:03 +0300 |
| commit | 56480772c3ce5b9a2da8fb57b66cb184a52cfc97 (patch) | |
| tree | adadac534ba88a681a632cfd2aa60b6c4f5dd8c5 /apps/web/src/lib/media-processing.ts | |
| parent | 56efb55a0fbcd22fefd6d8c5cf4300166b7f168a (diff) | |
| download | opencut-56480772c3ce5b9a2da8fb57b66cb184a52cfc97.tar.gz | |
feat: initial DnD and ffmpeg install
Diffstat (limited to 'apps/web/src/lib/media-processing.ts')
| -rw-r--r-- | apps/web/src/lib/media-processing.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/web/src/lib/media-processing.ts b/apps/web/src/lib/media-processing.ts index c51dde55..d241f411 100644 --- a/apps/web/src/lib/media-processing.ts +++ b/apps/web/src/lib/media-processing.ts @@ -6,6 +6,7 @@ import { getImageAspectRatio,
type MediaItem,
} from "@/stores/media-store";
+// import { generateThumbnail, getVideoInfo } from "./ffmpeg-utils"; // Temporarily disabled
export interface ProcessedMediaItem extends Omit<MediaItem, "id"> {}
@@ -33,7 +34,7 @@ export async function processMediaFiles( // Get image aspect ratio
aspectRatio = await getImageAspectRatio(file);
} else if (fileType === "video") {
- // Generate thumbnail and get aspect ratio for videos
+ // Use basic thumbnail generation for now
const videoResult = await generateVideoThumbnail(file);
thumbnailUrl = videoResult.thumbnailUrl;
aspectRatio = videoResult.aspectRatio;
@@ -42,8 +43,8 @@ export async function processMediaFiles( aspectRatio = 1;
}
- // Get duration for videos and audio
- if (fileType === "video" || fileType === "audio") {
+ // Get duration for videos and audio (if not already set by FFmpeg)
+ if ((fileType === "video" || fileType === "audio") && !duration) {
duration = await getMediaDuration(file);
}
|
