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

performance of making a MediaRecorder webm seekable #27

Open
rhwu opened this issue Jun 2, 2019 · 4 comments
Open

performance of making a MediaRecorder webm seekable #27

rhwu opened this issue Jun 2, 2019 · 4 comments

Comments

@rhwu
Copy link

rhwu commented Jun 2, 2019

Hi there,

This is more of a question / feature request.

Your example_seekable.ts works very well. However when the recording is big it will take a long time to process. E.g. I have a 2 and half hours recording of 2.5GB, the tools.makeMetadataSeekable function alone takes around 1 minute to complete.

I'm wondering can this be improved? Specifically, as we know the duration is roughly just the time between recording start and stop. With that, is it possible to just fill that duration information to the metadata of the original file to make it seeable?

Thanks!

@cristiantx
Copy link

@rhwu how are you fixing big files? I'm getting an error due to the buffer size RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2276629181) is greater than possible Buffer: 2147483647 bytes

Is it possible to make the fix not loading all the file in memory?

@rhwu
Copy link
Author

rhwu commented Feb 13, 2020

Unfortunately we still don't have a solution.

Hopefully someone who is familiar with the format can make some comment on this one.

@guest271314
Copy link

How long does mvkmerge -o output.webm --enable-durations input.webm take to output result?

@StaZhu
Copy link

StaZhu commented Jun 18, 2021

@rhwu how are you fixing big files? I'm getting an error due to the buffer size RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2276629181) is greater than possible Buffer: 2147483647 bytes

Is it possible to make the fix not loading all the file in memory?

I have made some modification, instead of create one Buffer, I choose to create a Buffer Slice Array to solve this issue, and published a new npm package named 'fix-webm-metainfo' to support >2GB file. you can have a try

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

4 participants