Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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.16.0

### Added

Expand All @@ -15,6 +15,9 @@ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Fixed

- The core ends the argv array it passes to ffmpeg and ffprobe with `NULL`.
0.15.0 could crash on a command whose last argument is an option without a
value.
- A second `load()` on a loaded `FFmpeg` no longer creates a second core and
leaks the first. It keeps the loaded core and resolves `false`.
- `load()` names the `wasmURL` in its error when the response is not a
Expand Down
8 changes: 4 additions & 4 deletions apps/vanilla-app/download-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const fs = require("fs");
const NPM_URL = "https://registry.npmjs.org";
const ROOT = "public/assets";

const FFMPEG_VERSION = "0.15.0";
const UTIL_VERSION = "0.15.0";
const CORE_VERSION = "0.15.0";
const CORE_MT_VERSION = "0.15.0";
const FFMPEG_VERSION = "0.16.0";
const UTIL_VERSION = "0.16.0";
const CORE_VERSION = "0.16.0";
const CORE_MT_VERSION = "0.16.0";

const FFMPEG_TGZ = `ffmpeg-wasm-${FFMPEG_VERSION}.tgz`;
const UTIL_TGZ = `ffmpeg-wasm-util-${UTIL_VERSION}.tgz`;
Expand Down
16 changes: 8 additions & 8 deletions apps/website/docs/getting-started/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/umd~~ => https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/esm
~~https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/umd~~ => https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/esm
:::

```jsx live
Expand All @@ -24,7 +24,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/umd'
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -85,7 +85,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-mt@0.15.0/dist/umd'
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core-mt@0.16.0/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -137,7 +137,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/umd'
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -195,7 +195,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/umd'
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/umd'
const ffmpeg = ffmpegRef.current;
// Listen to progress event instead of log.
ffmpeg.on('progress', ({ progress, time }) => {
Expand Down Expand Up @@ -246,7 +246,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/umd'
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -316,7 +316,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/umd'
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down Expand Up @@ -375,7 +375,7 @@ function() {
const messageRef = useRef(null);

const load = async () => {
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.15.0/dist/umd'
const baseURL = 'https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@0.16.0/dist/umd'
const ffmpeg = ffmpegRef.current;
ffmpeg.on('log', ({ message }) => {
messageRef.current.innerHTML = message;
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/components/Playground/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const CORE_VERSION = "0.15.0";
export const CORE_VERSION = "0.16.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`;
Expand Down
2 changes: 1 addition & 1 deletion packages/core-mt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project516/ffmpeg-wasm-core-mt",
"version": "0.15.0",
"version": "0.16.0",
"description": "FFmpeg WebAssembly version (multi thread)",
"main": "./dist/umd/ffmpeg-core.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project516/ffmpeg-wasm-core",
"version": "0.15.0",
"version": "0.16.0",
"description": "FFmpeg WebAssembly version (single thread)",
"main": "./dist/umd/ffmpeg-core.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ffmpeg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project516/ffmpeg-wasm",
"version": "0.15.0",
"version": "0.16.0",
"description": "FFmpeg WebAssembly version for browser",
"main": "./dist/umd/ffmpeg.js",
"types": "./dist/esm/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/ffmpeg/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const MIME_TYPE_JAVASCRIPT = "text/javascript";
export const MIME_TYPE_WASM = "application/wasm";

export const CORE_VERSION = "0.15.0";
export const CORE_VERSION = "0.16.0";
export const CORE_URL = `https://cdn.jsdelivr.net/npm/@project516/ffmpeg-wasm-core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`;

export enum FFMessageType {
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project516/ffmpeg-wasm-types",
"version": "0.15.0",
"version": "0.16.0",
"description": "ffmpeg.wasm types",
"types": "types",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@project516/ffmpeg-wasm-util",
"version": "0.15.0",
"version": "0.16.0",
"description": "browser utils for @project516/*",
"main": "./dist/cjs/index.js",
"type": "module",
Expand Down
Loading