From 9c4c692c31fe428e1765d359b03dfc5bcfc0b565 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 22 Nov 2024 12:43:42 +0530 Subject: [PATCH] Unstar --- web/apps/photos/src/services/upload/upload-service.ts | 4 ++-- web/docs/dependencies.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/apps/photos/src/services/upload/upload-service.ts b/web/apps/photos/src/services/upload/upload-service.ts index 28aa08039c..603ee11f91 100644 --- a/web/apps/photos/src/services/upload/upload-service.ts +++ b/web/apps/photos/src/services/upload/upload-service.ts @@ -28,7 +28,7 @@ import type { import { FileType, type FileTypeInfo } from "@/media/file-type"; import { encodeLivePhoto } from "@/media/live-photo"; import { extractExif } from "@/new/photos/services/exif"; -import * as ffmpeg from "@/new/photos/services/ffmpeg"; +import { extractVideoMetadata } from "@/new/photos/services/ffmpeg"; import { getNonEmptyMagicMetadataProps, updateMagicMetadata, @@ -1077,7 +1077,7 @@ const tryExtractImageMetadata = async ( const tryExtractVideoMetadata = async (uploadItem: UploadItem) => { try { - return await ffmpeg.extractVideoMetadata(uploadItem); + return await extractVideoMetadata(uploadItem); } catch (e) { log.error(`Failed to extract video metadata for ${uploadItem}`, e); return undefined; diff --git a/web/docs/dependencies.md b/web/docs/dependencies.md index 35d2509e6a..e04f1d1231 100644 --- a/web/docs/dependencies.md +++ b/web/docs/dependencies.md @@ -168,8 +168,8 @@ For more details, see [translations.md](translations.md). - [ffmpeg.wasm](https://github.com/ffmpegwasm/ffmpeg.wasm) is used to run FFmpeg in the browser using WASM. Note that this is substantially slower - than native ffmpeg, which is why we still recommend customers to use the - desktop app (since it can bundle a native ffmpeg implementation too). + than native ffmpeg (the desktop app can, and does, bundle the faster native + ffmpeg implementation too). - [ExifReader](https://github.com/mattiasw/ExifReader) is used for Exif parsing.