Click here to Skip to main content
15,886,919 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.
Posted
Updated 29-Jul-23 5:28am
v2
Comments
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 https://www.npmjs.com/~mux-npmjs and https://github.com/ffmpegwasm .
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