简体   繁体   中英

Convert PNG sequence to MP4 from directory

On a mac I would normally convert a folder of pngs to mp4 using the following:

ffmpeg -framerate 25 -i -pattern_type glob -i "*" -c:v libx264 -pix_fmt yuv420p -b:v 10M output.mp4

Now I'm trying to accomplish the same using windows 10, but globbing is not supported.

Not knowing what the filenames might be, is there a decent way of getting a complete file list of the directory and implementing it with ffmpeg?

Have u tried the % operator?

ffmpeg -r 30 -i %.png -vcodec libx264 -crf 25 -pix_fmt yuv420p test.mp4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM