Audioread filname not on specified path / Restoredefaultpath not working duplicate file name
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sebastian Chen
le 27 Mar 2016
Commenté : Brian Barbosa
le 1 Mar 2017
Hi! I'm trying to get my code working again, but whenever I run audioread() it tells me that it was not specified on the path. This is the offending line:
filename = audiovideo.internal.absolutePathForReading(...
filename, ...
'MATLAB:audiovideo:audioread:fileNotFound', ...
'MATLAB:audiovideo:audioread:filePermissionDenied');
I tried restoredefaultpath, but it tells me that there are duplicate directory names. I've tried deleting the one from the path that i could find, but it still wouldn't run. I've reinstalled MATLAB on my computer twice, so maybe that's what it's from, but I don't know how to fix that. I'm not quite sure what the problem is, but it says the error is from this line:
matlabpath([userpath, RESTOREDEFAULTPATH_result]);
Any help is greatly appreciated, I'm really at a loss for what to do.
0 commentaires
Réponse acceptée
Star Strider
le 27 Mar 2016
I’m not exactly sure what you’re doing.
Type this in your Command Window:
which('audioread', '-all')
and you should get:
C:\Program Files\MATLAB\R2016a\toolbox\matlab\audiovideo\audioread.m
or something similar.
How did you call audioread initially? What was the error?
5 commentaires
adi zeira
le 2 Jan 2017
Hi Sebastien ,can you say how did you solve the problem? I have a similar problem...
Plus de réponses (1)
seth kum
le 10 Mai 2016
Hello, I have a similar problem. I am trying to extract some frames from .avi file. Matlab has a sample code with sample file 'rhinos.avi'. I tried replacing my .avi file in the same location as rhinos.avi file. But Matlab keeps giving me the same error: Error using VideoReader/init (line 607) The filename specified was not found in the MATLAB path.
Error in VideoReader (line 172) obj.init(fileName);
Any inputs would be appreciated. Thanks.
1 commentaire
Brian Barbosa
le 1 Mar 2017
Hello Seth, did you find how to solve this problem? I'm having the same issue
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!