简体   繁体   English

使用Microsoft Media Foundation从图像创建视频

[英]Creating video from images using Microsoft media foundation

Is there a way to create video of pre defined duration from a set of images using Microsoft media foundation? 是否可以使用Microsoft Media Foundation从一组图像中创建预定义持续时间的视频?

Say for example, I have 50 images, can Is there a way to use those 50 images and create a video of say 50 seconds or 100 seconds ? 举例来说,我有50张图片,有没有办法使用这50张图片并创建50秒或100秒的视频?

Sink Writer API is exactly for this. Sink Writer API正是为此目的。

You set it up and start feeding with images (such as RGB data) and associated time data. 您对其进行设置,并开始使用图像(例如RGB数据)和相关的时间数据进纸。 The respectively configured API will create a pipeline to accept images, convert and encode them as necessary, write into file such as MP4. 分别配置的API将创建一个管道来接受图像,根据需要对其进行转换和编码,并写入文件如MP4。

MSDN article links tutorial at the bottom of the page. 页面底部的MSDN文章链接教程。 You will find other questions on StackOverflow which also reference this tutorial. 您还将在StackOverflow上找到其他问题,这些问题也参考了本教程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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