locked
Merging multiple video files

    Question

  • Working with MediaCapture class and I'm trying to implement pause/resume video recording functionality.

    I've got to a stage where on each pause and resume a new mp4 file is made, however when it comes to splicing the files back together I'm hitting a dead end.

    What would be the recommended way to go about this?

    Currently files are being saved in mp4 format and for single files I'm setting the video src as so:

    var video = document.getElementById('resultVideo');

    video.src = URL.createObjectURL(file, { oneTimeOnly:  true});

    Is there an easy way to concatenate them into a single mp4, merge the blobs or do I have to read the files as streams and merge them?

    Tuesday, January 21, 2014 7:04 PM

Answers

  • Hi,

    There is no documentation about this in JavaScript. You can make Souce reader and Sink Writer into a C++ Windows Runtime component. And calling it from JavaScript or C#. See the link below:

    http://msdn.microsoft.com/en-us/library/windows/apps/hh755833(v=vs.110).aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, January 23, 2014 6:55 AM

All replies

  • Hi,

    You can use Souce reader and Sink Writer to do that. They are supported in WinRT.

    Source Reader:

    http://msdn.microsoft.com/en-us/library/windows/desktop/dd940436(v=vs.85).aspx

    Sink Writer:

    http://msdn.microsoft.com/en-us/library/windows/desktop/ff819461(v=vs.85).aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Wednesday, January 22, 2014 2:21 AM
  • Is there any documentation anywhere to implement these in JavaScript?
    Wednesday, January 22, 2014 1:26 PM
  • Hi,

    There is no documentation about this in JavaScript. You can make Souce reader and Sink Writer into a C++ Windows Runtime component. And calling it from JavaScript or C#. See the link below:

    http://msdn.microsoft.com/en-us/library/windows/apps/hh755833(v=vs.110).aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, January 23, 2014 6:55 AM