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

RuntimeError: memory access out of bounds fixed after running invalid command #823

Open
allen-garvey opened this issue Jan 17, 2025 · 0 comments

Comments

@allen-garvey
Copy link

Describe the bug
For certain video files, when converting from video to images, ffmpeg will fail with RuntimeError: memory access out of bounds. However if ffmpeg.exec is run before, with an invalid command, the operation will succeed.

To Reproduce

// for certain videos, fails with RuntimeError: memory access out of bounds
ffmpeg.exec(["-i", "movie.mp4", "-vf", `fps=1`, `/tmp/%02d.jpg`]);

// however the following will succeed
ffmpeg
  .exec(["-i", "not-found"])
  .then(() =>
    ffmpeg.exec(["-i", "movie.mp4", "-vf", `fps=1`, `/tmp/%02d.jpg`])
  );

Expected behavior
ffmpeg.exec should work the first time without having to execute an invalid command.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Browser Chrome
  • Version 132.0.6834.83
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