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

Got 1 second video when loop < 0.1 #88

Open
verycosy opened this issue May 15, 2020 · 2 comments
Open

Got 1 second video when loop < 0.1 #88

verycosy opened this issue May 15, 2020 · 2 comments

Comments

@verycosy
Copy link

verycosy commented May 15, 2020

Dear h2non,

I want to make 4 seconds video from 120 images.

So I passed options like this.

const videoOptions = {
  fps: 30,
  loop: 0.03,
  format: "mp4",
  transition: false,
  videoCodec: "libx264",
  videoBitrate: 1024,
  pixelFormat: "yuv420p",
  size: "200x200",
};

videoshow(imageset, videoOptions)
  .save("1.mp4")
  .on("start", (command) => console.log("start >> ", command))
  .on("progress", (data) => console.log(data))
  .on("error", (err, stdout, stderr) => {
    console.log(err);
    console.log(stdout);
  })
  .on("end", () => console.log("done"));

I can get video, but it's duration is only 1 second.

When I changed loop value to 0.1, It works perfectly(almost 12 seconds video).
But it didn't work well when loop value was less than 0.1.

Did I something wrong?

Same results on

  • Ubuntu 18.04
  • Mac Catalina 10.15.4
@eran-sefirot
Copy link

+1

@longforu
Copy link

I am having the same problem.

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