screen-recorder icon indicating copy to clipboard operation
screen-recorder copied to clipboard

dont exsit the mp4 file

Open imzengyang opened this issue 9 years ago • 0 comments

hi i just try use the example that

var recorder = require('screen-capture-recorder');
var scene    = new recorder({ x:0, y:0, w:640, h:480 });

scene.warmup(function(err){
  //recorder is ready, now start capture
  scene.StartRecord(function(err){
    if(err)
      console.log("Something got wrong");
    //capture start _very_ quicky (60ms)
  });

  setTimeout(function(){

    scene.once(recorder.EVENT_DONE, function(err, tmp_path) {
      if(!err)
        console.log("Everything is ok, find video in %s.ogg", tmp_path);
      //tmp_path is a temporary file that will be deleted on process exit, keep it by renaming it
      require('fs').renameSync(tmp_path, tmp_path + ".ogg");
    });

    scene.StopRecord(function(err){
      if(err)
        console.log("Something got wrong");
    });
  }, 1000 * 10);
});


however i cant find the video file. why?

Trying to connect after 1s
Connected to 8088
Everything is ok, find video in D:\temp\allTest

imzengyang avatar Nov 29 '16 03:11 imzengyang