RELEASE: v12.13 (main) | v12.9 (core/core-mt) | v12.4 (types)

This commit is contained in:
Lucas Gelfond 2025-01-06 23:52:40 +01:00
parent f44e3da16d
commit 21b90a8d09
12 changed files with 21 additions and 19 deletions

View File

@ -4,7 +4,7 @@ import { RouterOutlet } from '@angular/router';
import { FFmpeg } from '@ffmpeg/ffmpeg';
import { fetchFile, toBlobURL } from '@ffmpeg/util';
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.6/dist/esm';
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.9/dist/esm';
@Component({
selector: 'app-root',

View File

@ -13,7 +13,7 @@ export default function Home() {
const load = async () => {
setIsLoading(true);
const baseURL = "https://unpkg.com/@ffmpeg/core@0.12.6/dist/umd";
const baseURL = "https://unpkg.com/@ffmpeg/core@0.12.9/dist/umd";
const ffmpeg = ffmpegRef.current;
ffmpeg.on("log", ({ message }) => {
if (messageRef.current) messageRef.current.innerHTML = message;

View File

@ -9,7 +9,7 @@ function App() {
const messageRef = useRef<HTMLParagraphElement | null>(null);
const load = async () => {
const baseURL = "https://unpkg.com/@ffmpeg/core-mt@0.12.6/dist/esm";
const baseURL = "https://unpkg.com/@ffmpeg/core-mt@0.12.9/dist/esm";
const ffmpeg = ffmpegRef.current;
ffmpeg.on("log", ({ message }) => {
if (messageRef.current) messageRef.current.innerHTML = message;

View File

@ -11,7 +11,7 @@ import type { LogEvent } from '@ffmpeg/ffmpeg/dist/esm/types'
import { fetchFile, toBlobURL } from '@ffmpeg/util'
import { defineComponent, ref } from 'vue'
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.7/dist/esm'
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.9/dist/esm'
const videoURL = 'https://raw.githubusercontent.com/ffmpegwasm/testdata/master/video-15s.avi'
export default defineComponent({
@ -36,7 +36,9 @@ export default defineComponent({
await ffmpeg.exec(['-i', 'test.avi', 'test.mp4'])
message.value = 'Complete transcoding'
const data = await ffmpeg.readFile('test.mp4')
video.value = URL.createObjectURL(new Blob([(data as Uint8Array).buffer], { type: 'video/mp4' }))
video.value = URL.createObjectURL(
new Blob([(data as Uint8Array).buffer], { type: 'video/mp4' })
)
}
return {
video,

View File

@ -11,7 +11,7 @@ It is recommended to read [Overview](/docs/overview) first.
:::caution
If you are a [vite](https://vitejs.dev/) user, use `esm` in **baseURL** instead of `umd`:
~~https://unpkg.com/@ffmpeg/core@0.12.6/dist/umd~~ => https://unpkg.com/@ffmpeg/core@0.12.6/dist/esm
~~https://unpkg.com/@ffmpeg/core@0.12.9/dist/umd~~ => https://unpkg.com/@ffmpeg/core@0.12.9/dist/esm
:::
```jsx live

8
package-lock.json generated
View File

@ -28702,7 +28702,7 @@
},
"packages/core": {
"name": "@ffmpeg/core",
"version": "0.12.8",
"version": "0.12.9",
"license": "GPL-2.0-or-later",
"engines": {
"node": ">=16.x"
@ -28710,7 +28710,7 @@
},
"packages/core-mt": {
"name": "@ffmpeg/core-mt",
"version": "0.12.8",
"version": "0.12.9",
"license": "GPL-2.0-or-later",
"engines": {
"node": ">=16.x"
@ -28718,10 +28718,10 @@
},
"packages/ffmpeg": {
"name": "@ffmpeg/ffmpeg",
"version": "0.12.12",
"version": "0.12.13",
"license": "MIT",
"dependencies": {
"@ffmpeg/types": "^0.12.3"
"@ffmpeg/types": "^0.12.4"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.1.0",

View File

@ -1,6 +1,6 @@
{
"name": "@ffmpeg/core-mt",
"version": "0.12.8",
"version": "0.12.9",
"description": "FFmpeg WebAssembly version (multi thread)",
"main": "./dist/umd/ffmpeg-core.js",
"exports": {

View File

@ -1,6 +1,6 @@
{
"name": "@ffmpeg/core",
"version": "0.12.8",
"version": "0.12.9",
"description": "FFmpeg WebAssembly version (single thread)",
"main": "./dist/umd/ffmpeg-core.js",
"exports": {

View File

@ -59,6 +59,6 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"@ffmpeg/types": "^0.12.3"
"@ffmpeg/types": "^0.12.4"
}
}

View File

@ -1,7 +1,7 @@
export const MIME_TYPE_JAVASCRIPT = "text/javascript";
export const MIME_TYPE_WASM = "application/wasm";
export const CORE_VERSION = "0.12.6";
export const CORE_VERSION = "0.12.9";
export const CORE_URL = `https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`;
export enum FFMessageType {

View File

@ -1,6 +1,6 @@
{
"name": "@ffmpeg/types",
"version": "0.12.3",
"version": "0.12.4",
"description": "ffmpeg.wasm types",
"types": "types",
"files": [

View File

@ -4,10 +4,10 @@ const fs = require("fs");
const NPM_URL = "https://registry.npmjs.org";
const ROOT = "public/assets";
const FFMPEG_VERSION = "0.12.6";
const UTIL_VERSION = "0.12.0";
const CORE_VERSION = "0.12.8";
const CORE_MT_VERSION = "0.12.8";
const FFMPEG_VERSION = "0.12.13";
const UTIL_VERSION = "0.12.1";
const CORE_VERSION = "0.12.9";
const CORE_MT_VERSION = "0.12.9";
const FFMPEG_TGZ = `ffmpeg-${FFMPEG_VERSION}.tgz`;
const UTIL_TGZ = `util-${UTIL_VERSION}.tgz`;