Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:31:17+00:00 2026-06-18T03:31:17+00:00

I am working on extracting features from avi files using MATLAB. Every time I

  • 0

I am working on extracting features from avi files using MATLAB. Every time I run the code I get an error “Exception in Reading”. Code is:

cd('D:\Classified\negative-videos'); 
neg_files = dir('*.avi');


% compute negative files

for fileIter=1:size(neg_files,1)
   tic;
    movie_name = neg_files(fileIter).name;
    try

    [color_score__,edge_score__,spatio_score__,score__] = lg_model(movie_name,fps,3);

    if(score__ < threshold)
       true_neg = true_neg + 1 ;
    end

    if(score__ >= threshold)
        false_pos = false_pos + 1 ;
    end
    fprintf('[ %d / %d ]\tFile : %s\tscore : %f\tcolor_score : %f\tspatio_score : %f\n', fileIter,size(neg_files,1),movie_name, score__,color_score__, spatio_score__);        

    catch ME1
     fprintf('[ %d / %d ]\tFile : %s\t EXCEPTION IN READING \n', fileIter,size(neg_files,1),movie_name);
    end
    toc;    
    end

     fprintf('INTERMEDIATE\ttrue pos =  %d \n false pos = %d \n true neg =  %d \n false neg = %d \n', true_pos,false_pos,true_neg, false_neg); 

What is the problem with the above code snippet?

The stack trace is as follows:
For each of the 18 videos in my directory I get following error:

  [ 1 / 18 ]    File : 38-Meter High Dive Goes Wrong.avi     EXCEPTION IN READING 

   ME1 = 

MException

Properties:
identifier: 'MATLAB:UndefinedFunction'
   message: 'Undefined function or method 'VideoReader' for input arguments of type 'char'.'
     cause: {}
     stack: [3x1 struct]

 Methods


 ME1 = 

 MException

 Properties:
 identifier: 'MATLAB:UndefinedFunction'
   message: 'Undefined function or method 'VideoReader' for input arguments of type 'char'.'
     cause: {}
     stack: [3x1 struct]

 Methods

 MException

 Properties:
 identifier: 'MATLAB:UndefinedFunction'
   message: 'Undefined function or method 'VideoReader' for input arguments of type 'char'.'
     cause: {}
     stack: [3x1 struct]

 Methods

 Undefined function or method 'VideoReader' for input arguments of type 'char'.
 3x1 struct array with fields:
file
name
line

MATLAB:UndefinedFunction
Elapsed time is 0.017901 seconds.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:31:18+00:00Added an answer on June 18, 2026 at 3:31 am

    Apologies for not posing as a comment, but need a little more rep before I’m allowed to.

    I agree with @JimInCO, it looks like you don’t have VideoReader. It was first introduced in R2010b. You can try using aviread instead if you have an older version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project that requires reading text files, extracting data from
I'm working on extracting data from a SQL Server database with a latin_1 character
I have been working on information extraction and was able to run standAloneAnnie.java http://gate.ac.uk/wiki/code-repository/src/sheffield/examples/StandAloneAnnie.java
Working with H2 I get this error when I try to write a row
So I'm extracting the lines that I want from this larger file using this
I am working on extracting information from figures in scientific papers, combining image processing
So far here is the code I have (it is working and extracting text
Language : C++ I am working on Bit Packing (Extracting the required bits from
I'm working with a C++ code base. Right now I'm using a C++ code
I'm working to develop a small system for extracting content from web pages (I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.