将图像序列转换为视频文件的算法? [英] Algorithm to convert a sequence of images to a video file?

查看:98
本文介绍了将图像序列转换为视频文件的算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将图像序列转换为视频文件的算法?

Algorithm to convert a sequence of images to a video file?

推荐答案

没有这种单一算法.

有很多不同的媒体容器格式,请参见 http://en.wikipedia.org/wiki /Media_container [ ^ ].现在,有很多视频压缩算法和标准,请参见 http://en.wikipedia. org/wiki/Video_compression [ ^ ].然后,大多数媒体容器可以很好地包含不同视频压缩格式的一些大子集,因此,可能的视频文件格式"的数量确实很大,因此,甚至没有人考虑使用此格式.每个人都可以结合使用.未压缩的视频也是可能的,并且被视为可能的压缩格式之一.最后,有一个名为 codecs 的软件,每个软件都可以使用该格式的某些子集,请参见 ^ ].不要忘记,视频文件还包含音频,并且音频与视频同步(实际上这是问题之一).这也增加了很多选择.

要获得几乎全面的编解码器功能集,可以下载名为K-Lite编解码器包的免费软件产品,请参见 http://zh-CN. wikipedia.org/wiki/K-Lite_Codec_Pack [ ^ ], http://codecguide.com/ [ http://jffmpeg.sourceforge.net/ [ ^ ].关于JMF(Java Media Framework),请参见http://en.wikipedia.org/wiki/Java_Media_Framework [ ^ ]).

对于像Linux这样的不同平台,也有不同的编解码器包.参见 http://news.softpedia.com/news/How -to-Install-Multimedia-Codecs-in-Linux-39555.shtml [ http://en.wikipedia.org/wiki/VirtualDub [ ^ ],VirtualDub,GNU许可.它仅适用于Windows,并且只能在AVI文件上运行( http://en.wikipedia.org/wiki/Audio_Video_Interleave [ ^ ]).

但是,如果您仍然想使用Java自己完成此工作,请首先选择要实现的标准,然后继续查找文档并实现它.我的任务是警告您有关问题的严重性并列出所涉及的问题.也许最简单的方法是创建自己的格式并实现它.虽然没有其他人可以使用它,但是我不确定这是否是您的要求之一. :-)

—SA
There is no such single algorithm.

There is a great number of different media container formats, see http://en.wikipedia.org/wiki/Media_container[^]. Now, there is a great number of video compression algorithms and standards, see http://en.wikipedia.org/wiki/Video_compression[^]. Then, most of the media containers can, well, contain, some big subset of different video compression formats, so the number of possible "video file formats" is really big, so nobody even considers this set; everyone works with the combination. Uncompressed video is also possible and is considered as one of the possible compression formats. Finally there are piece of software called codecs, each of them can work with some sub-set of the format, see http://en.wikipedia.org/wiki/Video_codecs#Video_codecs[^]. Don''t forget that video files also include audio, and audio is synchronized with video (which is one of the problems, in fact). This also adds to a great number of options.

For a nearly comprehensive set of codec capabilities you can download a freeware product called K-Lite Codec Pack, see http://en.wikipedia.org/wiki/K-Lite_Codec_Pack[^], http://codecguide.com/[^].

But this is only for Windows, and you did not tag your platform. Shame is on you. Don''t tell us "Java", this is not enough. (However, why not enough? There are also pure Java codecs, for JMF, see http://jffmpeg.sourceforge.net/[^]. About JMF (Java Media Framework) see http://en.wikipedia.org/wiki/Java_Media_Framework[^]).

For different platforms like Linux, there are also different codecs packs. See http://news.softpedia.com/news/How-to-Install-Multimedia-Codecs-in-Linux-39555.shtml[^].

To close this discussion: you can more or less easily find an application which will solve this problem for you. I did what you want to do using VirtualDub, http://en.wikipedia.org/wiki/VirtualDub[^], VirtualDub, GNU License. It is only for Windows and operates only on AVI files (http://en.wikipedia.org/wiki/Audio_Video_Interleave[^]).

However, if you still want to do it by yourself using Java, first select the standards you want to implement, and go ahead, find the documentation and implement it. My mission was to warn you about the scale of the problem and list what''s involved. Maybe the easiest way would be creating your own format and implementing it. Nobody else would be able to use it though, but I''m not sure this is one of your requirements. :-)

—SA


这篇关于将图像序列转换为视频文件的算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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