diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f87e123df..7fc4ba68a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,11 +3,11 @@ All notable changes to this project are documented in this file. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). -## Unreleased +## 0.19.0 ### Changed -- Both cores build FFmpeg 9.1 (was 9.0.2). +- Both cores build FFmpeg 9.1 (was 9.0.2). The wasm files are about 1.4 percent larger than in 0.18.0. - The cores are built with Emscripten 7.0.0. ## 0.18.0 diff --git a/apps/vanilla-app/download-assets.js b/apps/vanilla-app/download-assets.js index 87dfb5c3f6..96169293fd 100644 --- a/apps/vanilla-app/download-assets.js +++ b/apps/vanilla-app/download-assets.js @@ -5,10 +5,10 @@ const fs = require("fs"); const NPM_URL = "https://registry.npmjs.org"; const ROOT = "public/assets"; -const FFMPEG_VERSION = "0.18.0"; -const UTIL_VERSION = "0.18.0"; -const CORE_VERSION = "0.18.0"; -const CORE_MT_VERSION = "0.18.0"; +const FFMPEG_VERSION = "0.19.0"; +const UTIL_VERSION = "0.19.0"; +const CORE_VERSION = "0.19.0"; +const CORE_MT_VERSION = "0.19.0"; const FFMPEG_TGZ = `ffmpeg-wasm-${FFMPEG_VERSION}.tgz`; const UTIL_TGZ = `ffmpeg-wasm-util-${UTIL_VERSION}.tgz`; diff --git a/apps/website/docs/getting-started/usage.md b/apps/website/docs/getting-started/usage.md index 03ce8fc78b..f8432b47e2 100644 --- a/apps/website/docs/getting-started/usage.md +++ b/apps/website/docs/getting-started/usage.md @@ -17,7 +17,7 @@ single-thread core is about {Math.round(coreSizes.core["ffmpeg-core.wasm"] / 1e6 :::caution If you are a [vite](https://vitejs.dev/) user, use `esm` in **baseURL** instead of `umd`: -~~https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/umd~~ => https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/esm +~~https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/umd~~ => https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/esm ::: ```jsx live @@ -30,7 +30,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/umd' + const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/umd' const ffmpeg = ffmpegRef.current; ffmpeg.on('log', ({ message }) => { messageRef.current.innerHTML = message; @@ -99,7 +99,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-mt@0.18.0/dist/umd' + const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-mt@0.19.0/dist/umd' const ffmpeg = ffmpegRef.current; ffmpeg.on('log', ({ message }) => { messageRef.current.innerHTML = message; @@ -168,7 +168,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/umd' + const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/umd' const ffmpeg = ffmpegRef.current; ffmpeg.on('log', ({ message }) => { messageRef.current.innerHTML = message; @@ -228,7 +228,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/umd' + const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/umd' const ffmpeg = ffmpegRef.current; // Listen to progress event instead of log. ffmpeg.on('progress', ({ progress, time }) => { @@ -279,7 +279,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/umd' + const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/umd' const ffmpeg = ffmpegRef.current; ffmpeg.on('log', ({ message }) => { messageRef.current.innerHTML = message; @@ -349,7 +349,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/umd' + const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/umd' const ffmpeg = ffmpegRef.current; ffmpeg.on('log', ({ message }) => { messageRef.current.innerHTML = message; @@ -408,7 +408,7 @@ function() { const messageRef = useRef(null); const load = async () => { - const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.18.0/dist/umd' + const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.19.0/dist/umd' const ffmpeg = ffmpegRef.current; ffmpeg.on('log', ({ message }) => { messageRef.current.innerHTML = message; @@ -615,7 +615,7 @@ To load it from your own copy instead of the CDN, point `coreURL` and `wasmURL` at it. `FFmpeg` works the same as with the other cores: ```ts -const baseURL = "https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-jspi@0.18.0/dist/umd"; +const baseURL = "https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-jspi@0.19.0/dist/umd"; await ffmpeg.load({ coreURL: `${baseURL}/ffmpeg-core.js`, wasmURL: `${baseURL}/ffmpeg-core.wasm`, diff --git a/apps/website/docs/results.md b/apps/website/docs/results.md index 62888cd5e9..a0146e504c 100644 --- a/apps/website/docs/results.md +++ b/apps/website/docs/results.md @@ -99,9 +99,9 @@ Median of five runs on one GitHub Actions runner, against native ffmpeg version | case | native (ms) | st (ms) | st ratio | st peak RSS (MB) | mt (ms) | mt ratio | mt peak RSS (MB) | jspi (ms) | jspi ratio | jspi peak RSS (MB) | | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | -| h264-to-vp9 | 110 | 530 | 4.82x | 216 | 1200 | 10.91x | 637 | 420 | 3.82x | 176 | -| h264-to-x264 | 80 | 530 | 6.63x | 242 | 1250 | 15.63x | 666 | 440 | 5.50x | 201 | -| h264-to-mpeg4 | 80 | 380 | 4.75x | 172 | 1120 | 14.00x | 621 | 260 | 3.25x | 148 | -| scale-half | 80 | 510 | 6.38x | 233 | 1150 | 14.38x | 649 | 450 | 5.63x | 198 | -| h264-remux-mkv | 70 | 260 | 3.71x | 158 | 1050 | 15.00x | 576 | 220 | 3.14x | 140 | -| vp8-720p-to-mp4 | 5120 | 68900 | 13.46x | 408 | 31590 | 6.17x | 834 | 66610 | 13.01x | 363 | +| h264-to-vp9 | 80 | 320 | 4.00x | 215 | 770 | 9.63x | 644 | 260 | 3.25x | 173 | +| h264-to-x264 | 60 | 340 | 5.67x | 241 | 800 | 13.33x | 663 | 270 | 4.50x | 199 | +| h264-to-mpeg4 | 60 | 250 | 4.17x | 173 | 750 | 12.50x | 621 | 170 | 2.83x | 149 | +| scale-half | 60 | 350 | 5.83x | 232 | 790 | 13.17x | 655 | 290 | 4.83x | 188 | +| h264-remux-mkv | 50 | 170 | 3.40x | 157 | 760 | 15.20x | 585 | 140 | 2.80x | 140 | +| vp8-720p-to-mp4 | 3000 | 42530 | 14.18x | 426 | 17630 | 5.88x | 841 | 41180 | 13.73x | 357 | diff --git a/apps/website/src/components/Playground/const.ts b/apps/website/src/components/Playground/const.ts index fbc976a89c..e58deff9ac 100644 --- a/apps/website/src/components/Playground/const.ts +++ b/apps/website/src/components/Playground/const.ts @@ -1,6 +1,6 @@ import coreSizes from "../../data/core-sizes.json"; -export const CORE_VERSION = "0.18.0"; +export const CORE_VERSION = "0.19.0"; export const CORE_URL = `https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`; export const CORE_MT_URL = `https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.js`; diff --git a/apps/website/src/data/core-sizes.json b/apps/website/src/data/core-sizes.json index 24eeacba11..d3898219e5 100644 --- a/apps/website/src/data/core-sizes.json +++ b/apps/website/src/data/core-sizes.json @@ -1,15 +1,15 @@ { - "version": "0.18.0", + "version": "0.19.0", "core": { - "ffmpeg-core.js": 101831, - "ffmpeg-core.wasm": 39807591 + "ffmpeg-core.js": 102353, + "ffmpeg-core.wasm": 40372975 }, "core-mt": { - "ffmpeg-core.js": 111112, - "ffmpeg-core.wasm": 32783782 + "ffmpeg-core.js": 112106, + "ffmpeg-core.wasm": 33252368 }, "core-jspi": { - "ffmpeg-core.js": 93550, - "ffmpeg-core.wasm": 32417267 + "ffmpeg-core.js": 94133, + "ffmpeg-core.wasm": 32876710 } } diff --git a/baseline/bench.json b/baseline/bench.json index 4d19bc69bb..6083da6c1d 100644 --- a/baseline/bench.json +++ b/baseline/bench.json @@ -3,116 +3,116 @@ "cores": { "st": { "h264-to-vp9": { - "nativeMs": 110, - "wasmMs": 530, - "ratio": 4.82, - "peakRssKb": 220740 + "nativeMs": 80, + "wasmMs": 320, + "ratio": 4, + "peakRssKb": 220076 }, "h264-to-x264": { - "nativeMs": 80, - "wasmMs": 530, - "ratio": 6.63, - "peakRssKb": 247560 + "nativeMs": 60, + "wasmMs": 340, + "ratio": 5.67, + "peakRssKb": 246748 }, "h264-to-mpeg4": { - "nativeMs": 80, - "wasmMs": 380, - "ratio": 4.75, - "peakRssKb": 175756 + "nativeMs": 60, + "wasmMs": 250, + "ratio": 4.17, + "peakRssKb": 177248 }, "scale-half": { - "nativeMs": 80, - "wasmMs": 510, - "ratio": 6.38, - "peakRssKb": 238692 + "nativeMs": 60, + "wasmMs": 350, + "ratio": 5.83, + "peakRssKb": 237292 }, "h264-remux-mkv": { - "nativeMs": 70, - "wasmMs": 260, - "ratio": 3.71, - "peakRssKb": 161532 + "nativeMs": 50, + "wasmMs": 170, + "ratio": 3.4, + "peakRssKb": 160676 }, "vp8-720p-to-mp4": { - "nativeMs": 5120, - "wasmMs": 68900, - "ratio": 13.46, - "peakRssKb": 418060 + "nativeMs": 3000, + "wasmMs": 42530, + "ratio": 14.18, + "peakRssKb": 436728 } }, "mt": { "h264-to-vp9": { - "nativeMs": 110, - "wasmMs": 1200, - "ratio": 10.91, - "peakRssKb": 652744 + "nativeMs": 80, + "wasmMs": 770, + "ratio": 9.63, + "peakRssKb": 658980 }, "h264-to-x264": { - "nativeMs": 80, - "wasmMs": 1250, - "ratio": 15.63, - "peakRssKb": 682456 + "nativeMs": 60, + "wasmMs": 800, + "ratio": 13.33, + "peakRssKb": 679296 }, "h264-to-mpeg4": { - "nativeMs": 80, - "wasmMs": 1120, - "ratio": 14, - "peakRssKb": 635620 + "nativeMs": 60, + "wasmMs": 750, + "ratio": 12.5, + "peakRssKb": 635836 }, "scale-half": { - "nativeMs": 80, - "wasmMs": 1150, - "ratio": 14.38, - "peakRssKb": 664668 + "nativeMs": 60, + "wasmMs": 790, + "ratio": 13.17, + "peakRssKb": 670508 }, "h264-remux-mkv": { - "nativeMs": 70, - "wasmMs": 1050, - "ratio": 15, - "peakRssKb": 589652 + "nativeMs": 50, + "wasmMs": 760, + "ratio": 15.2, + "peakRssKb": 599372 }, "vp8-720p-to-mp4": { - "nativeMs": 5120, - "wasmMs": 31590, - "ratio": 6.17, - "peakRssKb": 853672 + "nativeMs": 3000, + "wasmMs": 17630, + "ratio": 5.88, + "peakRssKb": 861472 } }, "jspi": { "h264-to-vp9": { - "nativeMs": 110, - "wasmMs": 420, - "ratio": 3.82, - "peakRssKb": 180448 + "nativeMs": 80, + "wasmMs": 260, + "ratio": 3.25, + "peakRssKb": 177208 }, "h264-to-x264": { - "nativeMs": 80, - "wasmMs": 440, - "ratio": 5.5, - "peakRssKb": 206020 + "nativeMs": 60, + "wasmMs": 270, + "ratio": 4.5, + "peakRssKb": 204088 }, "h264-to-mpeg4": { - "nativeMs": 80, - "wasmMs": 260, - "ratio": 3.25, - "peakRssKb": 151568 + "nativeMs": 60, + "wasmMs": 170, + "ratio": 2.83, + "peakRssKb": 152256 }, "scale-half": { - "nativeMs": 80, - "wasmMs": 450, - "ratio": 5.63, - "peakRssKb": 203100 + "nativeMs": 60, + "wasmMs": 290, + "ratio": 4.83, + "peakRssKb": 192340 }, "h264-remux-mkv": { - "nativeMs": 70, - "wasmMs": 220, - "ratio": 3.14, - "peakRssKb": 142868 + "nativeMs": 50, + "wasmMs": 140, + "ratio": 2.8, + "peakRssKb": 142976 }, "vp8-720p-to-mp4": { - "nativeMs": 5120, - "wasmMs": 66610, - "ratio": 13.01, - "peakRssKb": 371392 + "nativeMs": 3000, + "wasmMs": 41180, + "ratio": 13.73, + "peakRssKb": 365632 } } } diff --git a/packages/core-jspi/package.json b/packages/core-jspi/package.json index 7dbbbf66c9..3e3ce119c0 100644 --- a/packages/core-jspi/package.json +++ b/packages/core-jspi/package.json @@ -1,6 +1,6 @@ { "name": "@project516/ffmpeg-wasm-core-jspi", - "version": "0.18.0", + "version": "0.19.0", "description": "Experimental FFmpeg WebAssembly version (single thread, JSPI)", "main": "./dist/umd/ffmpeg-core.js", "exports": { diff --git a/packages/core-mt/package.json b/packages/core-mt/package.json index a011f1146b..a20ad85753 100644 --- a/packages/core-mt/package.json +++ b/packages/core-mt/package.json @@ -1,6 +1,6 @@ { "name": "@project516/ffmpeg-wasm-core-mt", - "version": "0.18.0", + "version": "0.19.0", "description": "FFmpeg WebAssembly version (multi thread)", "main": "./dist/umd/ffmpeg-core.js", "exports": { diff --git a/packages/core/package.json b/packages/core/package.json index c584891016..68b74a018a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@project516/ffmpeg-wasm-core", - "version": "0.18.0", + "version": "0.19.0", "description": "FFmpeg WebAssembly version (single thread)", "main": "./dist/umd/ffmpeg-core.js", "exports": { diff --git a/packages/ffmpeg/package.json b/packages/ffmpeg/package.json index 684ec7dcb3..ff1857759b 100644 --- a/packages/ffmpeg/package.json +++ b/packages/ffmpeg/package.json @@ -1,6 +1,6 @@ { "name": "@project516/ffmpeg-wasm", - "version": "0.18.0", + "version": "0.19.0", "description": "FFmpeg WebAssembly version for browser", "main": "./dist/umd/ffmpeg.js", "types": "./dist/esm/index.d.ts", diff --git a/packages/ffmpeg/src/const.ts b/packages/ffmpeg/src/const.ts index 94b5b275e1..b705ec983d 100644 --- a/packages/ffmpeg/src/const.ts +++ b/packages/ffmpeg/src/const.ts @@ -1,7 +1,7 @@ export const MIME_TYPE_JAVASCRIPT = "text/javascript"; export const MIME_TYPE_WASM = "application/wasm"; -export const CORE_VERSION = "0.18.0"; +export const CORE_VERSION = "0.19.0"; export const CORE_URL = `https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`; export const CORE_JSPI_URL = `https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-jspi@${CORE_VERSION}/dist/umd/ffmpeg-core.js`; diff --git a/packages/types/package.json b/packages/types/package.json index 561ec64bbc..e0003eb2a4 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@project516/ffmpeg-wasm-types", - "version": "0.18.0", + "version": "0.19.0", "description": "ffmpeg.wasm types", "types": "types", "scripts": { diff --git a/packages/util/package.json b/packages/util/package.json index 5683c81c92..9a227d612b 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -1,6 +1,6 @@ { "name": "@project516/ffmpeg-wasm-util", - "version": "0.18.0", + "version": "0.19.0", "description": "browser utils for @project516/*", "main": "./dist/cjs/index.js", "type": "module",