I am trying to convert a MP4 video file into a series of jpg images (out-1.jpg, out-2.jpg etc.) using FFMPEG with,
mkdir frames
ffmpeg -i "%1" -r 1 frames/out-%03d.jpg
However I keep getting errors like,
[image2 @ 00000037f5a811a0] Could not open file :
frames/out-C:ApplicationsFFMPEGoGIF.bat3d.jpg
av_interleaved_write_frame(): Input/output error frame= 1 fps=0.0
q=5.9 Lsize=N/A time=00:00:01.00 bitrate=N/A video:63kB audio:0kB
subtitle:0kB other streams:0kB global headers:0kB muxing overhead:
unknown Conversion failed!
If I take out the %03d part, the conversion works but it only outputs the first frame and the program stops with error.
How can I correctly extract all the frames of the video with FFMPEG?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…