MATLAB

  1. run MATLAB using shellscript

    1
    matlab -nodisplay -r "vid2frames('../data/regular_videos/', 'RiceCam106.MP4', '../data/frames/', '.png');exit"
  2. VideoReader: NumberOfFrames is 0, cannot read frames.

    something is wrong with gstreamer, first get the right version of gstreamer (0.10 for MATLAB R2015b)

    • install gst-plugins

      1
      2
      sudo add-apt-repository ppa:ddalex/gstreamer
      sudo apt-get install gstreamer0.10-*
    • install gstffmpeg

      1
      2
      3
      sudo add-apt-repository ppa:mc3man/gstffmpeg-keep
      sudo apt-get update
      sudo apt-get install gstreamer0.10-ffmpeg