Hi all,
I'm having a hard time and would like the help of you guys.
I have 200 png files and would like to convert each of them into 640x480, 30 second mp4 video.
How to do in batch mode?
Claudio
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
I know this jagabo and I know how to do it.
Code:ffmpeg -r 30 -loop 1 -i %d.png -c:v libx264 -t 30 -pix_fmt yuv420p out.mp4
This is my doubt.
Claudio -
Use the CLI's FOR loop processing.
Code:for %%a in ("*.png") do "g:\program files\ffmpeg\bin\ffmpeg.exe" -y -loop 1 -i "%%a" -vf scale=w=640:-2 -c:v libx264 -preset veryfast -tune stillimage -pix_fmt yuv420p -t 30.0 -r 30.0 "%%~na.mp4"
Last edited by jagabo; 21st Aug 2018 at 20:51.
-
-
If you want 640x480 regardless of the source image's aspect ratio:
Code:for %%a in ("*.png") do "g:\program files\ffmpeg\bin\ffmpeg.exe" -y -loop 1 -i "%%a" -vf scale=640x480,setsar=1/1 -c:v libx264 -preset veryfast -tune stillimage -pix_fmt yuv420p -t 30.0 -r 30.0 "%%~na.mp4"
Similar Threads
-
How to convert TTML2+PNG to .sup ?
By foultayeb in forum SubtitleReplies: 2Last Post: 21st Jun 2019, 18:46 -
Converting TTML2+PNG Subtitles to BDN(XML+PNG)
By MounaLafi in forum SubtitleReplies: 6Last Post: 25th Jan 2019, 06:48 -
How to batch convert TTML2+PNG to *.sup ?
By heisiheisi in forum SubtitleReplies: 8Last Post: 4th Nov 2017, 22:20 -
I've been trying for days. . .mp4 to png images.
By TheUninformed in forum Video ConversionReplies: 43Last Post: 17th Sep 2014, 12:49 -
[ffmpeg] Right way to combine PNG + MP3 into an MP4 file?
By yetanotherlogin in forum EditingReplies: 3Last Post: 8th Dec 2013, 04:49