Skip to content

Commit

Permalink
docs: 📝rename transmuxer to remuxer
Browse files Browse the repository at this point in the history
  • Loading branch information
Banou26 committed Feb 17, 2024
1 parent 02fbc24 commit b981187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# LibAV WASM

This library can be used to transmux from MKV -> MP4, it could technically do any transmux but i haven't had the need for it, create an issue if you'd like it.
This library can be used to remux from MKV -> MP4, it could technically do any remux but i haven't had the need for it, create an issue if you'd like it.

Basic usage
```ts
const remuxer = await makeTransmuxer({
const remuxer = await makeRemuxer({
// the path at which the wasm file is getting served
publicPath: new URL('/dist/', new URL(import.meta.url).origin).toString(),
// url of the worker file of libavWASM
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const convertTimestamp = (ms: number) =>
.slice(11, 22)
.replace(/^00/, '0')

export const makeTransmuxer = async ({
export const makeRemuxer = async ({
publicPath,
workerUrl,
workerOptions,
Expand Down
4 changes: 2 additions & 2 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import PQueue from 'p-queue'

import { queuedDebounceWithLastCall, toBufferedStream, toStreamChunkSize } from './utils'
import { makeTransmuxer } from '.'
import { makeRemuxer } from '.'
import pDebounce from 'p-debounce'

type Chunk = {
Expand Down Expand Up @@ -82,7 +82,7 @@ fetch(VIDEO_URL, { headers: { Range: `bytes=0-1` } })

let slow = false

const remuxer = await makeTransmuxer({
const remuxer = await makeRemuxer({
publicPath: new URL('/dist/', new URL(import.meta.url).origin).toString(),
workerUrl,
bufferSize: BUFFER_SIZE,
Expand Down

0 comments on commit b981187

Please sign in to comment.