-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Unable to deserialize webm from audio recorded in Chrome #16
Comments
Did you try the same code using a valid example webm file? |
Nope, if you need this test to confim that your package works on my machine I'll immediatly do it, but my requirement is to get the opus audio stream from the webm opus recorded audio from Chrome, It's you're package supposed to works only when reading webm files (FileStream)? |
Can you try this file? |
Just tried the file you provided and with another file i've manually converted with an online converter and it looks working fine, the problem appear only when using audio data streamed from js using the MediaRecorder API. If can be usefull, this is the
and this is the same obj but after a webm audio stream from Chrome:
|
Just looked at the console and I noticed the following error (looks different from the debugging context, I don't know why):
|
Can you provide your file here as attachment? |
I used this code to save the file after recording the audio:
Here the test file recorded and saved with the posted code: The problem persist when I try to extract the ogg from this webm, but the default media player of windows 10/11 can play the audio without problems. |
It can be that this file follows a newer EBML / Matroska specification. I'll take a look if I can update some code... |
@FossaMalaEnt Can you try version |
@FossaMalaEnt did you have time to test that preview version? |
@StefH, sorry for the delay. I downloaded the code from the "issue16" branch to give it a try, but I'm having trouble compiling it in both VS 2019 and 2022. It seems that VS is unable to locate the "Span<>" class. Have you published the DLL somewhere? |
@FossaMalaEnt |
@FossaMalaEnt |
1 similar comment
@FossaMalaEnt |
Hi,
At first, I wanna thank you for the time you're putting into this project!
I'm trying to record the audio from Chrome, route the WebM opus stream to .NET, convert to another format and re-route the audio to another system, for capturing the audio i'm using something like this:
Now, following the examples, I'm using this code in order to extract the opus audio from the WebM stream:
I confirm the webm bytes are the same recorded from the js, so no change in data, but in the line
MatroskaDemuxer.ExtractOggOpusAudio(webmStream, oggStream);
I got the following error:Stack trace:
I'm not able to understand what's the cause of the problem looking into the examples and in the various docs of the repo, Am I missing something? Any idea of what can be the issue?
The text was updated successfully, but these errors were encountered: