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

screenshots function not working #830

Open
chaoxihailing opened this issue Jul 4, 2018 · 0 comments
Open

screenshots function not working #830

chaoxihailing opened this issue Jul 4, 2018 · 0 comments

Comments

@chaoxihailing
Copy link

Version information

  • fluent-ffmpeg version: ^2.1.2
  • ffmpeg version: "@ffmpeg-installer/ffmpeg": "^1.0.15"
  • OS: window

Code to reproduce

I hava try example of fluent-ffmpeg with js, it can work; but I want to
it work on typescript. but it not work.

 let proc = ffmpeg("D:\\test\\test.mp4")
            // setup event handlers
            .on("filenames", (filenames) => {
                logger.info("screenshots are ");
            })
            .on("end", () => {
                logger.info("screenshots were saved");
            })
            .on("error", (err) => {
                logger.info("an error happened:" + `${err.message}`);
            })
            // take 2 screenshots at predefined timemarks and size
            .takeScreenshots({ count: 1, size: "320x240", folder: "C:\\test", filename: "thumbnail-at-%f-seconds.png" });

(note: if the problem only happens with some inputs, include a link to such an input file)

Expected results

screenShot work.

Observed results

an error happened:ffmpeg exited with code 1: Failed to set value '97.03149400000001' for option 'ss': Option not found;

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

1 participant