W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > July 2017

Re: [mediacapture-record] How to concatenate Blobs of recordings into single file capable of playback?

From: Miguel Casas-Sanchez via GitHub <sysbot+gh@w3.org>
Date: Tue, 25 Jul 2017 04:23:43 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-317625206-1500956621-sysbot+gh@w3.org>
I'm afraid that from the POV of Media Recorder there's not much that can be done since every one of these individual 1-second files would have a file header, several video frame headers and possibly a trailer; merging them would not be trivial at all.  

You could try wrapping e.g. [`mkvmerge`](https://mkvtoolnix.download/doc/mkvmerge.html) to in js using [emscriptem](http://kripken.github.io/emscripten-site/) or [WebAssembly](http://webassembly.org/), or perhaps cast each file in succession into a `<video>`/`<canvas>` and record a MediaStream out of it (see e.g. [`captureStream()`](https://cs.chromium.org/chromium/src/third_party/WebKit/LayoutTests/external/wpt/mediacapture-fromelement/capture.html?type=cs&q=layouttests+capturestream+mediarecorder&sq=package:chromium&l=19)).

-- 
GitHub Notification of comment by yellowdoge
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/130#issuecomment-317625206 using your GitHub account
Received on Tuesday, 25 July 2017 04:23:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 24 October 2017 05:06:00 UTC