you could give videoconverter.js a try, I have not tried it before,
but I think that's the only way to do it front-end for now... and the smallest minified version also takes 6.1 MB.
Another option is upload the video to your server, merge it using ffmpeg and give user the link to output file, either to download or stream.