Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The code doesn't work #3

Open
martiserra99 opened this issue Dec 1, 2022 · 1 comment
Open

The code doesn't work #3

martiserra99 opened this issue Dec 1, 2022 · 1 comment

Comments

@martiserra99
Copy link

I am using the following code:

import { FFprobeWorker } from "ffprobe-wasm";

const worker = new FFprobeWorker();

function Home() {
  const handleChange = async (e) => {
    const file = e.target.files[0];
    const fileInfo = await worker.getFileInfo(file);
    console.log(fileInfo);
  };

  return <input type="file" onChange={handleChange} />;
}

export default Home;

and when I select a file I get this error:
Error: table index is out of bounds

@martiserra99 martiserra99 changed the title The code doesn't works The code doesn't work Dec 1, 2022
@spiceee
Copy link

spiceee commented Jan 13, 2023

@martiserra99 Maybe you're trying to upload a file with an unsupported encoding type. I don't think this wasm supports .avi, for one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants