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

Error: Cannot call 'flush' on a closed codec. In Demo #32

Closed
Pensarfeo opened this issue Jan 23, 2024 · 4 comments
Closed

Error: Cannot call 'flush' on a closed codec. In Demo #32

Pensarfeo opened this issue Jan 23, 2024 · 4 comments

Comments

@Pensarfeo
Copy link

Hi, I was trying to run the demo and I go the following error:

DOMException: Failed to execute 'flush' on 'AudioEncoder': Cannot call 'flush' on a closed codec.
at HTMLButtonElement.endRecording (https://vanilagy.github.io/mp4-muxer/demo/script.js:140:22)

I am using chrome latest version on linux.

@Vanilagy
Copy link
Owner

Is there any error before that? Seems like an issue related to the AudioEncoder.

@Pensarfeo
Copy link
Author

Yes,

image

@Vanilagy
Copy link
Owner

Yes, seems like your browser doesn't support encoidng AAC on your system. Can't really say why not! You can try playing around with other codec strings and codecs until you find one that works. These are the ones for AAC:

https://www.w3.org/TR/webcodecs-aac-codec-registration/#fully-qualified-codec-strings

@Pensarfeo
Copy link
Author

Thanks!

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