强制MATLAB mmreader或av​​ireader使用其他编解码器? [英] Force MATLAB mmreader or avireader to use a different codec?

查看:108
本文介绍了强制MATLAB mmreader或av​​ireader使用其他编解码器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我需要播放AVI文件时,如何强制MATLAB函数使用其他编解码器? 我正在使用Windows7,但由于操作系统的原因,我发现indeo5编解码器无法正常工作. 所有代码都可以在XP上正常工作.

How do I force MATLAB functions to use a different codec when I need to play an AVI file? I am using windows7 and I find that indeo5 codec is not working properly because of the OS. All code works fine on XP.

谢谢!

推荐答案

如果您的问题是关于如何使用非编解码器播放AVI的问题,则必须使用某种图像转换软件( RAD视频工具又名bink和smacker都是免费的),可以使用新的编解码器.视频质量可能会有所下降.

If your question is about how to play an avi using a codec other than the one used to create it, you'll have to use some kind of image conversion software ( RAD video tools aka bink and smacker is popular and free ) to recompress the movie using the new codec. There may be some loss of video quality.

如果您的问题是如何告诉MATLAB使用其他编解码器创建avi,请键入help avifile以查看完整的文档.

If your question is how to tell MATLAB to create an avi using a different codec, type help avifile to see the full documentation.

如果您的问题是MATLAB阻碍了它表示支持的编解码器,并且如果您使用的是64位MATLAB,那么我就遇到了这个问题.不幸的是,简短的答案是没有可与MATLAB一起使用的64位编解码器.有两种解决方法,它们都很糟糕.一种是安装32位MATLAB,并在需要访问avi时使用.另一种是使用某种图像转换软件将avi转换为图像堆栈,然后使用MATLAB加载该图像.

If your problem is that MATLAB is choking on a codec it says it supports and if you're using 64 bit MATLAB, I've had this problem. The short answer, unfortunately, is that there are no 64 bit codecs that work with MATLAB. There are two workarounds, and they both suck. One is to install 32 bit MATLAB and use that when you need to access an avi. The other is to use some kind of image conversion software to convert your avi to an image stack, then load that with MATLAB.

(在较新版本的MATLAB中,您可以使用VideoWriter对象在64位窗口中写入MP4和其他压缩格式)

( In newer versions of MATLAB, you can use the VideoWriter object to write MP4 and other compressed formats in 64 bit windows)

这篇关于强制MATLAB mmreader或av​​ireader使用其他编解码器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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