Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I recorded large Video, Web Application Crashed #510

Open
vgokul129 opened this issue Apr 22, 2019 · 8 comments
Open

When I recorded large Video, Web Application Crashed #510

vgokul129 opened this issue Apr 22, 2019 · 8 comments

Comments

@vgokul129
Copy link

vgokul129 commented Apr 22, 2019

I have the following source code to record Video stream(Video constraints: width: 1920, height: 1080, frameRate: 60).

function startRecord(){
        recorder = RecordRTC(window.stream, {
            type: 'video',
            mimeType: 'video/webm;codecs=vp8',
            recorderType: MediaStreamRecorder,
        });

        recorder.startRecording();
}

function stopRecord(){
  recorder.stopRecording(function() {
     var blob = recorder.getBlob();
        getSeekableBlob(blob, function(seekableBlob){
        var fileName = 'video.webm';
        var file = new File([seekableBlob], fileName, {
            type: 'video/webm'
        });

         invokeSaveAsDialog(file);
            });

    });
}

When I try to record video for long time (Say 1/2 an hour) video my application crashed in a while after invoking stopRecording() method.

Note: For small Video records its working well.

Platform: Chromebook
OS Version: 73.0.3683.88 (Official Build)

I found an exact similar issue when tried with MediaStream API. When the same code works good in Linux and Windows Chrome Browsers.

@vgokul129
Copy link
Author

@muaz-khan : Please look into this issue. I am struck with this so long. Any idea ?

@flyfly6
Copy link

flyfly6 commented May 11, 2019

I've encounted the same problem and here is my solution:

Hope this helps

@vctormb
Copy link

vctormb commented May 16, 2019

@flyfly6 Is it possible to show some example on how to increase the maximum recording interval? I have cases that the user can record videos for about 3 hours+. Which size is great to put and how? Thanks!

@tonai
Copy link

tonai commented May 24, 2022

@flyfly6 using timeslice and ondataavailable does not prevent the data to be stored inside local variable arrayOfBlobs.
You just get them
So in fact you should still have memory problems.

@gnidustotalus
Copy link

@muaz-khan Is there any way to empty the local arrayOfBlobs after each ondataavailable event?

@tonai
Copy link

tonai commented Feb 16, 2024

There is an opened PR to fix this issue but not sure this repository is still very active.

@gnidustotalus
Copy link

image

The last commit was yesterday.

@tonai
Copy link

tonai commented Feb 16, 2024

Yes after 2 years of inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants