0

I have two mp4 blobs I need to combine on a browser client. Performance is important. Is this possible?

Keith Carter
  • 422
  • 1
  • 6
  • 18
  • 1
    So you want performance _and_ be performed on user browser? All I can think of involves FFmpeg, but that's server-side – Justinas May 10 '21 at 13:44
  • Actually there is an option to run ffmpeg client site: https://stackoverflow.com/a/48280149/863110 – Mosh Feu May 10 '21 at 14:18
  • @MoshFeu isn't that library enormous to download on a client? – Keith Carter May 10 '21 at 16:44
  • According to [bundlephobia](https://bundlephobia.com/result?p=ffmpeg.js@4.2.9003) it's 1.8MB gzipped. Not the end of the world. – Mosh Feu May 10 '21 at 16:49
  • I'm not expert with Blobs and I don't know if merging blobs are like concating strings like part1 + part2 = part1part2 but [this answer](https://stackoverflow.com/a/24876873/863110) might help – Mosh Feu May 10 '21 at 16:54
  • @MoshFeu Unfortunately mp4 blobs can't be simply concatenated. There is information in the header and footer, and key frame intervals (and other things) may vary between blobs. – Keith Carter May 10 '21 at 17:11

0 Answers0