
Where the %04d means that zeros will be padded until the length of the string is 4 i.e 0001… 0020… 0030… 2000 and so on. etc) use the following command: ffmpeg -r 60 -f image2 -s 1920x1080 -i pic%04d.png -vcodec libx264 -crf 25 -pix_fmt yuv420p test.mp4 To take a list of images that are padded with zeros ( pic0001.png, pic0002.png…. I have noticed that different versions of ffmpeg will produce different output file sizes, so your mileage may vary. When using ffmpeg to compress a video, I recommend using the libx264 codec, from experience it has given me excellent quality for small video sizes. Original, Updated : cleanup and information about overlaying images. Basically, roll your own sync.Īnyway, give a little more detail on what your specific desired result is, and we can give more specific recommendations.Using ffmpeg to convert a set of images into a video

Or scripting: the script processing the file with ffmpeg, and then handling the commands to transfer via sftp, or a script that just transfers everything thing of a particular set of parameters (in a folder, file types, etc) to the target, which is automated to run every so often. In most circumstances, I'd say that you either solve this with network file shares of some sort, which will be viable and secure if the computers are on the same local network, or have a VPN connection bridging them, some sort of automatically sync'd setup that both machines share (so Google Drive, OneDrive, Dropbox etc) that each syncs the same folders to local. This means that in most circumstances, getting a completed file to some other location, beyond just saving the output, is not going to be something ffmpeg will help you with, to ffmpeg, that's your problem. But file transfer would be outside what it does.

Things like rtsp streaming fall under video, so you have some options there. It's very narrowly focused to stay within it's core mission. It'll help if you narrow down what you expect the end result to be, for instance, do you want to have a file on the recipient (an actual file transfer like you are doing with sftp), or the recipient just able to view it, streaming style?Ī thing to keep in mind ffmpeg is concerned with video and audio processing, and that's all. This isn't really an ffmpeg specific problem.
