I'm trying to load an mp4 video with Matlab with:
robj=VideoReader('ball moving.mp4')
I receive the following error:
Error using VideoReader/init (line 450)
The VideoReader plugin libmwgstreamerplugin failed to load properly.
Error in VideoReader (line 147)
obj.init(fileName);
Matlab (R2013a) is running on a Linux machine (Ubuntu 14.04.2 LTS). Something is wrong in the installation, but what is it?
Downgrading gstreamer packages from version 1.0 to 0.10 "solved" the issue. Maybe because package gstreamer-x-ffmpeg is required (only found for version x=0.10, in ppa:mc3man/trusty-media ).
Install ffmpeg and use this function:
function v=readVideo(path_file)
system(['rm /tmp/video_tmp.avi']);
system(['ffmpeg -i ' path_file ' -vcodec copy -acodec copy /tmp/video_tmp.avi']);
v = VideoReader('/tmp/video_tmp.avi')
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.