我可以在Windows中使用Matlab阅读一个视频,但无法在ubuntu 14.04中从Matlab读取相同的视频。错误如下:
>> aa = VideoReader('s12_32_xvid.avi');
Error using VideoReader/init (line 619)
Could not read file due to an unexpected error. Reason: Unable to initialize the video obtain properties
Error in VideoReader (line 172)
obj.init(fileName);
有人可以帮忙吗?
答案 0 :(得分:3)
这为我解决了。您需要安装gstreamer0.10-ffmpeg。
安装gstreamer0.10-ffmpeg的说明如下:
https://askubuntu.com/questions/575869/how-do-i-install-gstreamer0-10-ffmpeg-on-ubuntu-14-10
希望有所帮助
答案 1 :(得分:0)
如果安装了gstreamer0.10-ffmpeg,但问题仍然存在,则可能是缺少编解码器问题。您需要安装编解码器
FROM microsoft/dotnet:2.2-sdk
WORKDIR /app
COPY . /app //the file will be here in .
ENTRYPOINT ["dotnet","publish/Server.dll"]
EXPOSE 8300