Click here to Skip to main content
15,798,592 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a question. I am developing a web-based video editor where I am utilizing the Web Audio API for audio and Web Codecs for video. I have successfully encoded audio and video data into arrays. Now, my objective is to write an MP4 file using this binary encoded data. Currently, I am using Media Recorder to record audio and video streams, generating a .webm file in the process. However, I am curious if there is a way to write an MP4 file in JavaScript that takes the binary encoded data, performs Muxing, and automatically creates all the necessary metadata.

What I have tried:

I tried searching online but couldn't find anything.
Updated 29-Jul-23 6:28am
Member 10601191 5-Aug-23 13:57pm    
try looking for javascript ffmpeg and or mux libraries I believe they will be of help.
I found these and .
NB: I personally have no experience of using either of these.
khuramhaf 8-Aug-23 2:36am    
Thanks for the answer. I will surely look into these libraries.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900