从图像和音频创建视频文件(预录制) [英] Creating video file from images and audio( pre-recorded )

查看:148
本文介绍了从图像和音频创建视频文件(预录制)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一些示例代码,其中添加了一组图片来创建一个QTmovie。

I have come across some sample codes where set of images are added to make a QTmovie.

我针对这个OS X平台没有任何QT框架。
我想要创建一个带有扩展名的文件,并嵌入适当的元数据,并找到一种方法来插入所需格式的图像和音频。因此,当文件被创建时,它可以简单地播放。

I am targeting this for OS X platform without any QT frameworks. I have ague idea of creating a file with extension and embed it with appropriate metadata and find a way to insert images and audio in required format. So when the file is created it can simply be played.

我不知道什么格式/扩展更好。
指针非常感谢。

I am not sure of what format/extension is better. pointers are much appreciated.

推荐答案

如果你想编写一个程序来做这个,你可以使用 Xuggler 在Java中做到。

If you want to write a program to do this, you could use Xuggler in Java to do it. It will allow you to save your final video in a format playable by almost any media player.

通过了解视频文件(例如MP4,Quicktime)的开始方式,实际上代表了此过于简单化的音频和视频互联网视频指南

Start out by gaining an understanding of how video files (e.g. MP4, Quicktime) actually represent audio and video with this Overly Simplistic Guide to Internet Video.

然后,使用 MediaTool教程。您可以编写将原始图片转换为视频文件的程序(请参阅此示例代码)。最后,要编写一个使音频和视频同步的程序,请参阅本教程;它会产生一组图像,并产生一些音频噪音,当一个球撞击一个盒子的边缘时,时间会改变。

Then, play around with the MediaTool tutorials. You can write programs that make raw images into video files (see this sample code). Finally, to write a program that makes audio and video that are in sync, see this tutorial; it generates a set of images, and makes some audio noise that is timed to change when a ball hits the edge of a box.

希望有帮助。

艺术

这篇关于从图像和音频创建视频文件(预录制)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆