Create a Video Stream (AVI) from a Series of Images

前端 未结 4 1590
天涯浪人
天涯浪人 2020-12-07 21:15

There is an IP web camera that I wrote a .NET class for sometime ago. It\'s basically a Timer implementation that pings a snapshot CGI script from the camera every five sec

4条回答
  •  鱼传尺愫
    2020-12-07 22:03

    There are several command-line tools that can take a series of images and output an AVI file. I would suggest you call one of them from your app.

    I would provide links to suggestions, but it has been years since I've used one.

    Edit: apparently you can do this using ffmpeg: http://ffmpeg.org/ffmpeg-doc.html

    For creating a video from many images:

    ffmpeg -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi

    The syntax foo-%03d.jpeg specifies to use a decimal number composed of three digits padded with zeroes to express the sequence number. It is the same syntax supported by the C printf function, but only formats accepting a normal integer are suitable.

提交回复
热议问题