[FFmpeg-user] randomly named png to mp4: ffmpeg
Lou
lou at lrcd.com
Wed Jan 15 07:00:05 CET 2014
On Tue, 14 Jan 2014 20:02:42 -0500
Tyler Rinker <tyler.rinker at gmail.com> wrote:
> I have a directory with randomly named png files (`a.png b.png c.png`) I
> want to stitch together in a particular order.
Try a glob pattern:
ffmpeg -framerate 10 -pattern_type glob -i "*.png" out.mkv
http://ffmpeg.org/ffmpeg-formats.html#image2-2
<https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images>
However, being "randomly named" your images may not be in a desirable
sequence.
> I tried:
>
> ffmpeg -r 4 -i a.png b.png c.png -c:v libx264 -r 4 -pix_fmt yuv420p
> out.mp4
>
> but it outputs a video with `a.png` only; I also tried:
This command will consider a.png as an input, and b.png c.png out.mp4
to be outputs. ffmpeg will ask you if you want to overwrite the files
if they exist.
> I'm on Windows 7 if it makes a difference.
I don't use Windows, so my example may not work as expected for you.
More information about the ffmpeg-user
mailing list