Questions about using WebCodes API

127 views
Skip to first unread message

신승현

unread,
Nov 23, 2020, 12:19:01 AM11/23/20
to medi...@chromium.org

Hello, I am a student doing web development in Korea. 

 

I'm trying to develop a video editing tool through the WebCodecs API,

 

but I discovered two limitations of me, so I contacted you to get a hint.

 

 

 

First, VideoFrames are needed when creating EncodedVideoChunks through VideoEncoder,

 

so frames are extracted from video using VideoTrackReader.

 

VideoTrackReader extracts frames only when video is played.

 

Is there any way to extract frames without playing?

 

 

 

Second, I'm curious about how to merge EncodedVideoChunk back with audio and turn it into video(mp4).

 

Thank you. 

Dale Curtis

unread,
Nov 23, 2020, 12:51:05 PM11/23/20
to 신승현, tgui...@chromium.org, media-dev
Thanks for your interest. +Thomas Guilbert wrote a demo showing how demuxing can be done here: https://tguilbert-google.github.io/webcodecs/mp4/index.html

It doesn't show how to reassemble the chunks into a mp4, but you might be able to use the same MP4Box.js used by the demo to do this. If not mux.js can be used to do that.

- dale

--
You received this message because you are subscribed to the Google Groups "media-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to media-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/media-dev/21b97a7bbeff7958d93178b4745bba4%40cweb016.nm.nfra.io.
Reply all
Reply to author
Forward
0 new messages