Maybe of some little help.
test.bat
Code:
REM test.bat : With location of ffmpeg.exe in environment PATH, and empty IMG directory relative to test.bat file.
REM Gotta have double %% in bat for it to work, or single if direct on command line, also used %%06d (not %%05d) as 100,000 [0->99999] frames max potentially a bit low for long src clip.
REM r 1, 1 frame per second (originally 24)
REM writes png files to IMG directory relative bat file.
ffmpeg -i 1.mkv -r 1 "IMG/output_%%06d.png"
Or to same dir as bat file (using bat file, so using double '
%%')
Code:
ffmpeg -i 1.mkv -r 1 "output_%%06d.png"
Or to explict path to write at H:\IMG\ (using bat file, so using double '
%%')
Code:
ffmpeg -i 1.mkv -r 1 "H:\IMG\output_%%06d.png"
or direct in CLI command (not in bat file, so using single '
%')
Code:
ffmpeg -i 1.mkv -r 1 "H:\IMG\output_%06d.png"
EDIT:
Your "a/output_
%05d.png", with single '
%', CLI BAT processing, interprets the name of your test.bat as an arg inserted into the output filename
eg (from your error line)
"a/output_
H:\FFMPEG\bin\1.bat5d.png"
so your original bat file was "H:\FFMPEG\bin\1.bat". [error was originating in bat processing, not ffmpeg]
Hope that you can use above to figure out how to get 2nd comand working, good luck.