1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[154],{6911:(e,t,a)=>{a.d(t,{Z:()=>l});var o=a(7896),i=a(2784),m=a(361),r=a(7160),n=a(7565);const p=(0,r.Z)({}),f=(0,r.Z)({palette:{mode:"dark"}});function l(e){const{colorMode:t}=(0,m.I)();return i.createElement(n.Z,(0,o.Z)({theme:"dark"===t?f:p},e))}},2492:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>x,contentTitle:()=>d,default:()=>w,frontMatter:()=>s,metadata:()=>c,toc:()=>k});var o=a(7896),i=(a(2784),a(876)),m=a(6911),r=a(4036),n=a(2924),p=a(7666),f=a(1285),l=a(6898),g=a(9615);const s={},d="Migrating from 0.11.x to 0.12+",c={unversionedId:"migration",id:"migration",title:"Migrating from 0.11.x to 0.12+",description:"As 0.12+ is not backward compatible with 0.11.x, below is a quick mapping",source:"@site/docs/migration.md",sourceDirName:".",slug:"/migration",permalink:"/docs/migration",draft:!1,editUrl:"https://github.com/ffmpegwasm/ffmpeg.wasm/tree/main/apps/website/docs/migration.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Performance",permalink:"/docs/performance"},next:{title:"FAQ",permalink:"/docs/faq"}},x={},k=[],b={toc:k},T="wrapper";function w({components:e,...t}){return(0,i.kt)(T,(0,o.Z)({},b,t,{components:e,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"migrating-from-011x-to-012"},"Migrating from 0.11.x to 0.12+"),(0,i.kt)("p",null,"As 0.12+ is not backward compatible with 0.11.x, below is a quick mapping\ntable to transform 0.11.x to 0.12+"),(0,i.kt)(m.Z,{mdxType:"MuiThemeProvider"},(0,i.kt)(f.Z,{mdxType:"TableContainer"},(0,i.kt)(r.Z,{sx:{minWidth:650},"aria-label":"simple table",mdxType:"Table"},(0,i.kt)(l.Z,{mdxType:"TableHead"},(0,i.kt)(g.Z,{mdxType:"TableRow"},(0,i.kt)(p.Z,{align:"center",mdxType:"TableCell"},"0.11.x"),(0,i.kt)(p.Z,{align:"center",mdxType:"TableCell"},"0.12+"),(0,i.kt)(p.Z,{align:"center",mdxType:"TableCell"},"Note"))),(0,i.kt)(n.Z,{mdxType:"TableBody"},[{"0.11.x":"import { createFFmpeg } from '@ffmpeg/ffmpeg'","0.12+":"import { FFmpeg } from '@ffmpeg/ffmpeg'",note:""},{"0.11.x":"createFFmpeg()","0.12+":"new FFmpeg()",note:"argumens of createFFmpeg() is moved to ffmpeg.load()"},{"0.11.x":"await ffmpeg.load()","0.12+":"await ffmpeg.load()",note:""},{"0.11.x":"await ffmpeg.run(...args)","0.12+":"await ffmpeg.exec([...args])",note:""},{"0.11.x":"ffmpeg.FS.writeFile()","0.12+":"await ffmpeg.writeFile()",note:""},{"0.11.x":"ffmpeg.FS.readFile()","0.12+":"await ffmpeg.readFile()",note:""},{"0.11.x":"ffmpeg.exit()","0.12+":"ffmpeg.terminate()",note:""},{"0.11.x":"ffmpeg.setLogger()","0.12+":'ffmpeg.on("log", () => {})',note:""},{"0.11.x":"ffmpeg.setProgress()","0.12+":'ffmpeg.on("progress", () => {})',note:""},{"0.11.x":"import { fetchFile } from '@ffmpeg/ffmpeg'","0.12+":"import { fetchFile } from '@ffmpeg/util'",note:""}].map((e=>(0,i.kt)(g.Z,{key:e["0.11.x"],mdxType:"TableRow"},(0,i.kt)(p.Z,{component:"th",scope:"row",mdxType:"TableCell"},e["0.11.x"]),(0,i.kt)(p.Z,{align:"left",mdxType:"TableCell"},e["0.12+"]),(0,i.kt)(p.Z,{align:"left",mdxType:"TableCell"},e.note)))))))))}w.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.