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

One half of video was black. #20

Open
JenishaDalin opened this issue Nov 7, 2019 · 2 comments
Open

One half of video was black. #20

JenishaDalin opened this issue Nov 7, 2019 · 2 comments

Comments

@JenishaDalin
Copy link

JenishaDalin commented Nov 7, 2019

Hi, @tungs
I had recorded canvas using timecut. But result was not full video, one half of video is blank, And it started to play after some time. How to sync video start time with this module?

Cc : @varunarora

@tungs
Copy link
Owner

tungs commented Nov 11, 2019

Hi @JenishaDalin, could you post a simplest example of the web page you're trying to capture, the command you're trying to use, and a screenshot of the half-blank video? It's very hard to understand what the issue is with the information you've provided.

@vasanthudhaya
Copy link

Hi, @tungs i loaded a video element and fabric sprite image in a fabric canvas. Am facing a black issue of the first frame of output video when am render using timecut. So i give an url for your testing. And let me know how to resolve.

Ref url: https://poc.netaxis.co/video

timecut({
    headless: true,
    ignoreHTTPSErrors: false,  
    executablePath: '/usr/bin/google-chrome',
    launchArguments : [
      '--enable-usermedia-screen-capturing', 
      '--allow-http-screen-capture',
      '--no-sandbox',
      '--auto-select-desktop-capture-source=pickme',
      '--disable-setuid-sandbox'
    ],
    url: 'https://poc.netaxis.co/video',
    Width: 1080,
    Height: 1080,
    outputOptions : ['-vf', 'scale=1080:1080'],
    viewport: {
      width: 1920,
      height: 900,
      isLandscape : true,
    },
    preparePage : function(page) {
        page.tap('#playbtn');
    },
    pipeMode : false,
    canvasCaptureMode : true,
    selector: '#vdo_canvas',     // crops each frame to the bounding box of '#container'
    fps: 24,                    // saves 30 frames for each virtual second
    duration: 20,               // for 20 virtual seconds 
    output: 'video.mp4'         // to video.mp4 of the current working directory
  }).then(function () {
    console.log('done');
  }).catch(function(e) {
    console.log(e);
  })

cc: @varunarora

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

3 participants