问题
Is there any way to load new codecs for matlab? It only supports basic codecs and filters. I need to use uncompperessed videos in matlab
回答1:
On Linux, you can use all GStreamer plugins.
On Windows, you can use DirectShow codecs, including ffdshow. Alternatively, you can use ffmpeg to transcode video or write the frames of a video into a series of images.
回答2:
The short answer is NO, you cannot add new codecs. I presume you wish to use these codecs with the Matlab functions avifile
and addframe
etc. Matlab only supports a very limited and outdated set of codecs.
To get MPEG encoding you could try mpgwrite and mpgread on The Mathworks file exchange. Or for further information see this support link.
来源:https://stackoverflow.com/questions/9002573/how-can-i-add-new-codecs-for-matlab