-
Notifications
You must be signed in to change notification settings - Fork 130
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
Creating a video client side #175
Comments
@abacaj Be aware that the interfaces under development as part of MediaCapture Transform are going to replace |
@aboba thank you for that. Will migrate to |
Sadly, I don't think we have any demos for this yet. Chrome folks are planning a demo hackathon later this quarter - I think this is a good candidate for us to work on.
Can you share the code? Are you pushing the encoded chunks directly into a blob? You'll want to use a library that muxes the chunks into the webm format. |
Hi @chcunningham thanks for that info. Yes, I'm new to video processing so missed that part about muxing to the container format. I was directly trying to use the encoded vp8 chunks as a blob. I might be able to do it with ffmpeg.js (the emscripten port) fully client side. Will let you know how that goes. |
I did try to encode the blob using ffmpeg but received an error for invalid frame size, not sure what else I would need to do with the encoded frames.
|
I don't immediately grok your ffmpeg output, but you might be excited to see this demo that creates a webm file using a muxer implemented in javascript. https://w3c.github.io/webcodecs/samples/capture-to-file/capture-to-file.html |
Closing since I think the above sample may answer the question. Feel free to re-open if new questions arise. |
Hello, I am trying to make use of the webcodecs API, specifically using the
VideoTrackReader
to pass frames toVideoEncoder
to encode frames.I have tried to take the encoded frames and generate a
new Blob(encodedChunks, {type: 'video/webm;codecs=vp8'})
but the resultingwebm
file is not playable.I took a look at some of the examples and they seem to stop at the encoding stage and not generating a container for the video. Any tips for this?
Thank you
The text was updated successfully, but these errors were encountered: