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 generated but not getting saved in specified directory for a specific video file #1305

Open
KunjManavadariya opened this issue Nov 15, 2024 · 0 comments

Comments

@KunjManavadariya
Copy link

KunjManavadariya commented Nov 15, 2024

Version information

  • fluent-ffmpeg version: 2.1.2
  • ffmpeg version: 7.1
  • OS: macOS

Problem

Screenshots are generated but are not saved in the tmp directory for the specified video file further below. However, it works as expected for all other video files.

Code to reproduce

// below is a snippet code from the actual function which returns a promise

const ffmpeg = require("fluent-ffmpeg");
const thumbnailFileNames = [];
ffmpeg(videoFilePath)
        .on("filenames", (filenames) => {
          thumbnailFileNames.push(...filenames);
        })
        .on("end", () => {
          resolve(thumbnailFileNames);
        })
        .on("error", (err) => {
          reject(err);
        })
        .screenshots({
          timestamps,
          filename: `${thumbnailFilePattern}-%s.png`,
          folder: '/tmp',
          size: `${width}x${height}`,
        })

Input file: https://awsstage-test-video-ap-south-1.s3.amazonaws.com/112016/459d2a24-f9ed-49e4-af60-85018da4e737.mp4

Expected results

Screenshots generated and saved in tmp directory

Observed results

Screenshots are generated but screenshot image files not saved in tmp directory

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