This commit is contained in:
Manav Rathi
2024-11-22 12:43:42 +05:30
parent 1631354fd8
commit 9c4c692c31
2 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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.