你推荐什么文件类型,我用打一个非常小的视频? [英] What file type do you recommend I use for playing a really small video?

查看:137
本文介绍了你推荐什么文件类型,我用打一个非常小的视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要玩视频游戏的一小视频。这将是最大的约2-4秒的每个文件。

我需要他们到我的WPF窗体的桌面应用程序内播放,他们需要相对较小,因为我将要包括他们在donwload大小(它们将成为.exe文件的一部分)

我应该使用GIF?或.AVI?或MP4?

我在寻找易于纳入到现有的WPF项目和小尺寸。 :D我不需要播放选项,只需要它来播放循环

感谢您的帮助。 :D

我需要什么样的格式给:


  1. 每个视频/动画文件的体积小。 (我将加入其中约70)

  2. 无需最终用户机器上安装额外的codeCS。我不应该打扰他们了绝对的任何有关视频/动画的播放。

  3. 中高品质。

  4. 相当容易与现有的WPF控件来实现。


解决方案

忘记.MP4,除非你想安装一个codeC。目前在大多数Windows计算机没有原生支持。 (除了孤单至少3个互不兼容的味道)。在另一方面,MP4几乎肯定会给你一个给定的下载大小的最佳品质。若要.MP4在Windows上工作,你需要的不只是一个codeC安装,也是一个文件流读取器。

WMV将对Windows的所有味道很好的支持,所以这是你最好的选择。如果影片有许多颜色和运动。

您也可以使用.MPG文件,只要你坚持MPEG1。 MPEG2不存在保证在Windows上获得支撑,但由于Windows98的MPEG1支持已内置的。它是pretty在帧大小方面的限制,但它是everwhere支持

如果您的视频动画没有音频,尤其是卡通风格的动画没有很多不同的颜色和底纹,您可能要使用的AVI RLE COM pression。 RLE COM presses真的很好,当视频有极少数的颜色,和Windows已与自Windows95的RLE编码AVI的原生支持。其中一个RLE的美观大方等优点是,它是无损的,所以$边缘的对$ pserves清晰度。但是,COM presses梯度和严重或根本没有的真实的事物形象。当你虽然它比较GIF动画,这可能是一个洗。

Windows外壳采用AVI与RLE它的小动画移动文件位。做这个控制是COMCTL32的一部分,它被称为动画控制。
它会处理不具有任何音频的AVI。

您也可以考虑Adobe的Flash视频,几乎所有计算机安装Flash这些天,那些不能够从你的游戏单独安装。

I'm going to be playing a small video of a videogame. It's going to be maximum about 2-4 seconds each file.

I need them to playback inside of my WPF Form desktop application and they need to be relatively small because I'm going to be including them in the donwload size (they are going to be part of the .exe file)

Should I use GIF? Or .AVI? or MP4?

I'm looking for ease of inclusion into my existing WPF project and small size. :D I don't need playback options just need it to play looping.

Thanks for the help. :D

What I need the format to give:

  1. Small size of each video/animation file. (I'll be adding about 70 of them)
  2. No need to install additional codecs on end user machine. I shouldn't bother them for absolutely anything regarding the playback of the video/animation.
  3. Medium to High quality.
  4. Fairly easy to implement with an existing WPF control.

解决方案

Forget about .MP4 unless you want to install a codec. There is no native support on most Windows machines. (besides theres at least 3 mutually incompatible flavors). On the other hand, MP4 will almost certainly give you the best quality for a given download size. To get .MP4 working on windows you need not just a codec install, but also a file stream reader.

WMV will have good support for all flavors of windows, so that's your best choice if the videos have lots of colors and motion.

You could also use .mpg files, so long as you stick to MPEG1. MPEG2 isn't guranteed to be supported on Windows, but MPEG1 support has been built in since Windows98. It's pretty limited in terms of frame size, but it is supported everwhere.

If your videos are animation without audio, especially cartoon style animation without a lot of different colors and shading, you may want to use AVI with RLE compression. RLE compresses really well when the video has very few colors, and Windows has had native support for AVI with RLE encoding since Windows95. One of the nice advantages of RLE is that it's lossless, so it preserves sharpness of edges. But it compresses gradients and images of real things badly or not at all. This may be a wash when you compare it to GIF animation though.

The Windows shell uses AVI with RLE it for the little animated "moving files" bit. The control that does this is part of ComCtl32 it's called the animation control. and it will handle any AVI that has no audio.

You might also consider Adobe's flash video, nearly all computers have flash installed these days, and those that don't can install it separately from your game.

这篇关于你推荐什么文件类型,我用打一个非常小的视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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