Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Import

Manav Rathi780da003cc6f
diff --git a/web/packages/new/photos/services/download.ts b/web/packages/new/photos/services/download.ts
index 5c49b9a15e..15f06ea009 100644
--- a/web/packages/new/photos/services/download.ts
+++ b/web/packages/new/photos/services/download.ts
@@ -15,7 +15,7 @@ import { retryAsyncOperation } from "@/gallery/utils/retry-async";
import type { EnteFile, LivePhotoSourceURL, SourceURLs } from "@/media/file";
import { FileType } from "@/media/file-type";
import { decodeLivePhoto } from "@/media/live-photo";
-import * as ffmpeg from "@/new/photos/services/ffmpeg";
+import { convertToMP4 } from "./ffmpeg";
import { renderableImageBlob } from "@/new/photos/utils/file";
import { CustomError } from "@ente/shared/error";
import HTTPService from "@ente/shared/network/HTTPService";
@@ -545,7 +545,7 @@ async function getPlayableVideo(
const converted = async () => {
try {
log.info(`Converting video ${videoNameTitle} to mp4`);
- const convertedVideoData = await ffmpeg.convertToMP4(videoBlob);
+ const convertedVideoData = await convertToMP4(videoBlob);
return new Blob([convertedVideoData], { type: "video/mp4" });
} catch (e) {
log.error("Video conversion failed", e);