ffmpeg-extract-frames
ffmpeg-extract-frames copied to clipboard
ffmpeg exited with code 1: av_interleaved_write_frame()
I'm using windows 10 and ffmpeg-extract-frames version 2.0.2
after I run this script,
await extractFrames({
input: "https://...",
output: "./tmp/" + name.replace('mp4', 'jpg'),
numFrames: 1,
fps: 1,
ffmpegPath: ffmpegPath,
}).
I'm getting following issue.
ffmpeg exited with code 1: av_interleaved_write_frame(): Invalid argument\nframe= 2 fps=0.0 q=3.5 Lsize=N/A time=00:00:02.00 bitrate=N/A speed=74.2x \nvideo:41kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown\nConversion failed!
I received this issue too. Have you found a fix?
Remove the fps
argument -- it's resulting in an invalid parameter to ffmpeg.