Update all references to core version 0.12.2 to 0.12.3 (#592)
This commit is contained in:
parent
4de91ba651
commit
6386757610
@ -13,7 +13,7 @@ export default function Home() {
|
||||
|
||||
const load = async () => {
|
||||
setIsLoading(true)
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current
|
||||
ffmpeg.on('log', ({ message }) => {
|
||||
if (messageRef.current) messageRef.current.innerHTML = message
|
||||
|
@ -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.2/dist/esm";
|
||||
const baseURL = "https://unpkg.com/@ffmpeg/core-mt@0.12.3/dist/esm";
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
ffmpeg.on("log", ({ message }) => {
|
||||
if (messageRef.current) messageRef.current.innerHTML = message;
|
||||
|
@ -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.2/dist/esm'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.3/dist/esm'
|
||||
const videoURL = 'https://ffmpegwasm.netlify.app/video/video-15s.avi'
|
||||
|
||||
export default defineComponent({
|
||||
|
@ -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.2/dist/umd~~ => https://unpkg.com/@ffmpeg/core@0.12.2/dist/esm
|
||||
~~https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd~~ => https://unpkg.com/@ffmpeg/core@0.12.3/dist/esm
|
||||
:::
|
||||
|
||||
```jsx live
|
||||
@ -24,7 +24,7 @@ function() {
|
||||
const messageRef = useRef(null);
|
||||
|
||||
const load = async () => {
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
ffmpeg.on('log', ({ message }) => {
|
||||
messageRef.current.innerHTML = message;
|
||||
@ -81,7 +81,7 @@ function() {
|
||||
const messageRef = useRef(null);
|
||||
|
||||
const load = async () => {
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core-mt@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
ffmpeg.on('log', ({ message }) => {
|
||||
messageRef.current.innerHTML = message;
|
||||
@ -134,7 +134,7 @@ function() {
|
||||
const messageRef = useRef(null);
|
||||
|
||||
const load = async () => {
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
ffmpeg.on('log', ({ message }) => {
|
||||
messageRef.current.innerHTML = message;
|
||||
@ -192,7 +192,7 @@ function() {
|
||||
const messageRef = useRef(null);
|
||||
|
||||
const load = async () => {
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
// Listen to progress event instead of log.
|
||||
ffmpeg.on('progress', ({ progress, time }) => {
|
||||
@ -243,7 +243,7 @@ function() {
|
||||
const messageRef = useRef(null);
|
||||
|
||||
const load = async () => {
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
ffmpeg.on('log', ({ message }) => {
|
||||
messageRef.current.innerHTML = message;
|
||||
@ -313,7 +313,7 @@ function() {
|
||||
const messageRef = useRef(null);
|
||||
|
||||
const load = async () => {
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
ffmpeg.on('log', ({ message }) => {
|
||||
messageRef.current.innerHTML = message;
|
||||
@ -372,7 +372,7 @@ function() {
|
||||
const messageRef = useRef(null);
|
||||
|
||||
const load = async () => {
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.2/dist/umd'
|
||||
const baseURL = 'https://unpkg.com/@ffmpeg/core@0.12.3/dist/umd'
|
||||
const ffmpeg = ffmpegRef.current;
|
||||
ffmpeg.on('log', ({ message }) => {
|
||||
messageRef.current.innerHTML = message;
|
||||
|
@ -28,7 +28,7 @@ Setup:
|
||||
|
||||
### $ ffmpeg -i [input.webm](https://test-videos.co.uk/vids/bigbuckbunny/webm/vp8/720/Big_Buck_Bunny_720_10s_1MB.webm) output.mp4
|
||||
|
||||
| # | FFmpeg | core v0.12.2 | core-mt v0.12.2 |
|
||||
| # | FFmpeg | core v0.12.3 | core-mt v0.12.3 |
|
||||
| --- | ------ | ------------ | --------------- |
|
||||
| Avg | 5.2 sec | 128.8 sec (0.04x) | 60.4 sec (0.08x) |
|
||||
| Max | 5.3 sec | 130.7 sec | 63.9 sec |
|
||||
|
@ -1,4 +1,4 @@
|
||||
export const CORE_VERSION = "0.12.2";
|
||||
export const CORE_VERSION = "0.12.3";
|
||||
|
||||
export const CORE_URL = `https://unpkg.com/@ffmpeg/core@${CORE_VERSION}/dist/umd/ffmpeg-core.js`;
|
||||
export const CORE_MT_URL = `https://unpkg.com/@ffmpeg/core-mt@${CORE_VERSION}/dist/umd/ffmpeg-core.js`;
|
||||
|
@ -6,8 +6,8 @@ const ROOT = "public/assets";
|
||||
|
||||
const FFMPEG_VERSION = "0.12.3";
|
||||
const UTIL_VERSION = "0.12.0";
|
||||
const CORE_VERSION = "0.12.2";
|
||||
const CORE_MT_VERSION = "0.12.2";
|
||||
const CORE_VERSION = "0.12.3";
|
||||
const CORE_MT_VERSION = "0.12.3";
|
||||
|
||||
const FFMPEG_TGZ = `ffmpeg-${FFMPEG_VERSION}.tgz`;
|
||||
const UTIL_TGZ = `util-${UTIL_VERSION}.tgz`;
|
||||
|
Loading…
Reference in New Issue
Block a user