You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After further browsing questions, answers and documentations arrived at the following, which is close to what am trying to achieve without third party software, using a server, or system calls; though does not meet requirement fully, yet.
So you can get mp4 recording directly from chrome MediaRecorder with following hack
var options = {mimeType: 'video/webm;codecs=h264'};
mediaRecorder = new MediaRecorder(stream, options);
.....
//Before merging blobs change output mime
var blob = new Blob(recordedBlobs, {type: 'video/mp4'});
// And name your file as video.mp4
Have been able to create videos using MediaRecorder and concatenate the resulting Blobs using new Blob(chunks, {type:"video/mp4"}) where chunks is an array of Blobs resulting from event.data of dataavailable event, stored at an array, where the Blobs can be arranged in any order.
The issue is that no matter the order of the Blobs passed to new Blob() only the first video recording plays, then stops at the last frame of the first video, while each of the audio parts of the concatenated Blobs render playback.
The expected result is for each video and audio render playback, not for audio to continue playback following first concatenated Blob while video following first concatenated Blob does not render playback.
How to solve this issue?
The text was updated successfully, but these errors were encountered:
This issue is a followup to #130.
After further browsing questions, answers and documentations arrived at the following, which is close to what am trying to achieve without third party software, using a server, or system calls; though does not meet requirement fully, yet.
According to FFmpeg FAQ at 3.14.3 Concatenating using the concat protocol (file level)
Using pattern at this Answer at webRTC convert webm to mp4 with ffmpeg.js we can convert
video/webm
tovideo/mp4
Have been able to create videos using
MediaRecorder
and concatenate the resultingBlob
s usingnew Blob(chunks, {type:"video/mp4"})
wherechunks
is an array ofBlob
s resulting fromevent.data
ofdataavailable
event, stored at an array, where theBlob
s can be arranged in any order.The issue is that no matter the order of the
Blob
s passed tonew Blob()
only the first video recording plays, then stops at the last frame of the first video, while each of the audio parts of the concatenatedBlob
s render playback.The expected result is for each video and audio render playback, not for audio to continue playback following first concatenated
Blob
while video following first concatenatedBlob
does not render playback.How to solve this issue?
The text was updated successfully, but these errors were encountered: