Cannot read video .avi format from hmdb51 dataset into MATLAB Online (For Classify Video Using Deep Learning MATLAB Tutorial)
1 view (last 30 days)
Show older comments
I am having issues that MATLAB function VideoReader() cannot read .avi files that had been unarchived from hmdb51 dataset as mention in the steps. I tried VideoReader() to read some random test file from myself in .mp4 and the function can read it jsut fine.
How can I solve this problem? I do not want to spend time converting each one of the videos from hmdb51 dataset from .avi into .mp4 manually.
* Note:
In the tutorial, there are no steps mentioning to create MATLAB scripts centerCrop.m and readVideo.m
I made these scripts myself and copied and pasted the code from the tutorial page in the helper function (see last page of the tutorial) into the respectives function scripts.
Thank you,
Daniel
0 Comments
Answers (1)
Samay Sagar
on 28 Aug 2024
Hi Daniel,
I have also faced this issue while running the above example with MATLAB online in the past but now the error is not occurring.
You do not need to change the extensions of the files to MP4. Additionally, you do not have to create the script files separately as these are helper functions defined in the same live script.
Although I have faced this error in my local installation of MATLAB in Linux. This typically occurs due to some missing GStreamer plugins. It is important to ensure that GStreamer and the necessary plugins are installed on the system. The following command can be used to install the necessary plugins:
$ sudo apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-tools
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!