M
M
maxbugs2020-10-26 11:45:50
fmpeg
maxbugs, 2020-10-26 11:45:50

How to create video files from several folders with photos in ffmpeg for each folder?

Please tell me how you can create a video from several folders with photos with division into each folder.
I try the code:

@echo off
for /r %%i in (*.mp4) do (ffmpeg -f image2 -r 3 -i "%%~dpni_img%%03d.jpg" -y -an -r 24 -vcodec mpeg4 out.avi )

It seems to collect, but on each folder it overwrites out.avi

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Brendan Castaneda, 2020-10-30
@ae_ph

I use Windows os
1) Create folder Your_files and folder Result in directory with ffmpeg.exe 2) Put png files with similar name out001.png out002.png out003.png in folder Your_files ...

for %%a in ("Your_files\out%%03d.png") do ffmpeg -y -f image2 -r 3 -i "%%a" "Result\video.mp4"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question