-
Notifications
You must be signed in to change notification settings - Fork 136
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
Is it possible to do our codec or media processing based on WASM #32
Comments
It is not clear why it is expected that the "raw data" of a video is "YUV" (see https://stackoverflow.com/a/39048445; https://github.com/brion/yuv-canvas). The audio data can be expressed as an
or a
What does "capture" mean in this context?
The term "efficient" is not clearly defined. "efficient" compared to precisely what approaches that are not "efficient"?
Not sure what that means. Encoding and decoding any unknown audio and/or video codec by "wasm/js"? |
I did the wrong action of closing the issue.
|
You can currently use |
The API returns ImageBitmap , which is not the raw data. It must be drawed to canvas and then get the imageData from Canvas API. |
You can read the image data via the |
Old bug! Fidel and Chrome folks have discussed this directly, but for other folks reading along:
Yes, originally offered via VideoTrackReader / AudioTrackReader, but this is now deprecated in favor of (as of #131) using MediaStreamTrackProcessor. Demo here.
Using MediaStreamTrackProcessor, you will have the option to transfer the
Working with WASM unfortunately imposes some copies, as described in WICG/reducing-memory-copies#1
At least in Chrome, we will prefer acceleration by default where available. PR #118 will add the ability to strictly require that hardware acceleration be used (which will fail to create the codec when acceleration is not available). Please re-open if more to discuss. |
Hello.
we have a requirement that we need do ourselves encode/decoder/packetization ourselves on WASM. And then transport the data via webtransport or RtcQuic. In the begining, we might need do some media process, besides the encoder/decoder.
What we need is :
1) read the raw data of captured media data, such as YUV video data, or PCM audio data,etc. Then the raw data could be passed to wasm/js module.
2) It will be better the capture could be worked on worker.
3) The data passing is efficient without memory copy.
4) hardware accelerate encoder/decoder could be used by wasm/ js module, which is a Plus.
Could this spec satisfy our requirement?
The text was updated successfully, but these errors were encountered: