Upgrade FFmpeg to latest version (0.12.10)
Updated @ffmpeg/core from 0.12.6 to 0.12.10 and updated CDN URL references. The newer version may have better Turbopack compatibility. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -42,8 +42,8 @@ export async function loadFFmpeg(): Promise<FFmpegType> {
|
||||
|
||||
// Use CDN URLs for FFmpeg core - avoids "dynamic require" bundler issues
|
||||
// with local file paths that FFmpeg's internal code cannot resolve at runtime
|
||||
const coreURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.6/dist/esm/ffmpeg-core.js';
|
||||
const wasmURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.6/dist/esm/ffmpeg-core.wasm';
|
||||
const coreURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm/ffmpeg-core.js';
|
||||
const wasmURL = 'https://cdn.jsdelivr.net/npm/@ffmpeg/core@0.12.10/dist/esm/ffmpeg-core.wasm';
|
||||
|
||||
await ffmpegInstance.load({ coreURL, wasmURL });
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"postinstall": "mkdir -p public/wasm && cp node_modules/.pnpm/@ffmpeg+core@0.12.6/node_modules/@ffmpeg/core/dist/umd/ffmpeg-core.* public/wasm/ && cp node_modules/.pnpm/@imagemagick+magick-wasm@0.0.38/node_modules/@imagemagick/magick-wasm/dist/magick.wasm public/wasm/"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ffmpeg/core": "0.12.6",
|
||||
"@ffmpeg/core": "0.12.10",
|
||||
"@ffmpeg/ffmpeg": "^0.12.15",
|
||||
"@ffmpeg/util": "^0.12.2",
|
||||
"@imagemagick/magick-wasm": "^0.0.38",
|
||||
|
||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -9,8 +9,8 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
'@ffmpeg/core':
|
||||
specifier: 0.12.6
|
||||
version: 0.12.6
|
||||
specifier: 0.12.10
|
||||
version: 0.12.10
|
||||
'@ffmpeg/ffmpeg':
|
||||
specifier: ^0.12.15
|
||||
version: 0.12.15
|
||||
@@ -317,8 +317,8 @@ packages:
|
||||
resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
|
||||
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
|
||||
|
||||
'@ffmpeg/core@0.12.6':
|
||||
resolution: {integrity: sha512-PrjWBTfGn2WVn9T7wGnzfFwChbqWeZc7tM9vvJZVRadYFUDakfzy7W0LpYC0cvvK0xT82qlBsk38lQhJ/Hps5A==}
|
||||
'@ffmpeg/core@0.12.10':
|
||||
resolution: {integrity: sha512-dzNplnn2Nxle2c2i2rrDhqcB19q9cglCkWnoMTDN9Q9l3PvdjZWd1HfSPjCNWc/p8Q3CT+Es9fWOR0UhAeYQZA==}
|
||||
engines: {node: '>=16.x'}
|
||||
|
||||
'@ffmpeg/ffmpeg@0.12.15':
|
||||
@@ -4230,7 +4230,7 @@ snapshots:
|
||||
'@eslint/core': 0.17.0
|
||||
levn: 0.4.1
|
||||
|
||||
'@ffmpeg/core@0.12.6': {}
|
||||
'@ffmpeg/core@0.12.10': {}
|
||||
|
||||
'@ffmpeg/ffmpeg@0.12.15':
|
||||
dependencies:
|
||||
|
||||
Reference in New Issue
Block a user