-
Notifications
You must be signed in to change notification settings - Fork 13
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
Timescliced chunks dont contain wav headers, only the first chunk does (ondataavailable) #638
Comments
Hi @JoshuaeKaiser, that's actually a feature and not a bug. :-) The native MediaRecorder also produces chunks that can only be used when stitched together. https://w3c.github.io/mediacapture-record/#dom-mediarecorder-start
But it should be fairly easy to add the appropriate header to each chunk for wav files. When provided a |
A WAV file can be created from each 'chunk' see https://github.com/guest271314/audioInputToWav/blob/master/array-typedarray-with-audio-context.html. |
Hi, on a similar vein, is it possible to know whats the length of header for webm audio file so I can also make every chunks playable? |
@herbzhao You can encode each chunk with WebCodecs |
Thanks. I took the lazy approach evetually by prepending all the previous chunks and then slice them in my backend, since i will have all the chunks available anyway. |
Hi There,
Sorry to be a pain. Quick question. I am looking to basically process each timesliced chunk as its own audio file and not join all the chunks toguether at the end of the recording.
I have noticed the first chunk saves perfectly (As i asume it has the correct WAV headers), but any chunk after that is corrupted.
Is there a way I can specify that each timesliced chunk contain headers, or a way I can retrospectively add the headers to the 2nd, 3rd, .... etc chunks ?
Appreicate any help on this.
The text was updated successfully, but these errors were encountered: