QTMovieView 支持的格式
我正在 Mac OS X(v 10.6)中使用 QTKit 框架开发媒体播放器。我已经使用 QTMovieView 控件进行相同的操作,但有一个问题。问题是 mov 文件可以完美播放,但 avi 文件和类似格式无法正常播放,我的意思是,虽然我为 public.avi 文件类型添加了文档类型,但只有声音出现,并且在玩家。一直尝试使用 Quicktime(v 10)玩同样的游戏,但没有成功。
有人能指出我正确的方向吗?
I am developing a media player using QTKit framework in Mac OS X (v 10.6). I have used QTMovieView control for the same but there is a problem. The issue is that mov files are played perfectly but avi files and similar formats are not playing properly by properly I mean that though I have added a document type for public.avi file type but only sound is coming and there is no visual output in the player. Been trying to play the same using Quicktime (v 10) but no avail.
Could anyone point me in the right direction?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
AVI 和 MOV 只是电影容器。通常,电影文件包含视频轨道和音频轨道。当进行播放时,它取决于用于压缩曲目的特定编解码器。 Quicktime可以读取AVI文件,但需要一定的编解码器才能播放视频。
您需要找出您的电影中使用的视频编解码器。有许多应用程序可以显示此信息。例如 VLC 播放器。
如果 Quicktime 不使用默认的编解码器集来播放它,则编解码器很可能是 Divx。
找到使用的编解码器后,安装特定的 Quicktime 组件。
AVI as well as MOV are just movie containers. Usually a movie file contains a video track and an audio track. When in comes to playback it depends on the particular codecs used to compress the tracks. Quicktime can read AVI files, but it needs the certain codec to play the video.
You need to find out what video codec was used in your movie. There are number of apps that can display this information. For example VLC Player.
If Quicktime does not play it with default set of codecs, most likely the codec is Divx.
After you have found out what codec is used install the certain Quicktime component.
从文档..并查看<一href="http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/QTKitApplicationProgrammingGuide/AnatomyoftheQTKFramework/AnatomyoftheQTKFramework.html" rel="nofollow">支持的格式。。
音频格式
视频格式
编解码器
网络流媒体格式
From documentation..and see supported formats..
Audio formats
Video formats
Codecs
Web streaming formats