View Single Post
Old 14th August 2020, 12:08   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 14th August 2020 at 14:46.
StainlessS is offline   Reply With Quote