1

我正在使用 Matlab R2013a,Ubuntu 64 12.04

我正在尝试读取这样的视频文件:

ipVidObj = vision.VideoFileReader(fullFileName);

其中 fullFileName 是 .mp4 文件的路径+文件名

注意:在 Windows 上,上述行工作正常。

但在 Ubuntu 上,会发生以下情况: 上述行有时有效,但大多数时候都失败。matlab 控制台上给出的前两行错误是这样的:

Error using coder.internal.errorIf (line 9)
Unable to read video from the file. Use dsp.AudioFileReader to read audio content.

(这是一个很长的错误。如果您要我粘贴整个内容,请告诉我)

我四处搜索,似乎发生这种情况是因为我可能没有 gstreamer。但是,我确实...我安装了 gstreamer1.0。如果我安装 gstreamer0.10,那么同一行总是失败并导致 matlab 崩溃并出现以下错误:

      DtsGetHWFeatures: Create File Failed
      DtsGetHWFeatures: Create File Failed
      Running DIL (3.22.0) Version
      DtsDeviceOpen: Opening HW in mode 0
      DtsDeviceOpen: Create File Failed
      DtsGetHWFeatures: Create File Failed
      Running DIL (3.22.0) Version
      DtsDeviceOpen: Opening HW in mode 0
      DtsDeviceOpen: Create File Failed
      libva: VA-API version 0.32.0
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      libva: va_getDriverName() returns 0
      libva: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
      libva: va_openDriver() returns -1
      Killed

我希望有人早点遇到过这个......

4

0 回答 0