"File is corrupt or is not a standard MP3 file" error
8 views (last 30 days)
Show older comments
??? Error using ==> mp3read>mysystem at 373
unable to execute mp3info -r m -p "%Q %u %b %r %v * %C %e %E %L %O %o %p" "output1.mp3" ( * output1.mp3 is corrupt or is not a standard MP3 file. )
Error in ==> mp3read at 188
w = mysystem(cmd);
i am using the mp3read function available at file exchange. My code works fine for all mp3 files but this error arises only when i use audio files in database that have separated from avi files by following code :
A=dir('*.avi')
for i=1:length(A)
filename=A(i).name
hmfr = signalblks.MultimediaFileReader...
(filename,'AudioOutputDataType','double');
hfirdec = dsp.FIRDecimator; % decimate by 2
hmfw = signalblks.MultimediaFileWriter...
(strcat('output',num2str(i),'.mp3'),'SampleRate', 22050/2);
while ~isDone(hmfr)
audio = step(hmfr);
audiod = step(hfirdec, audio);
step(hmfw, audiod);
end
release(hmfr);
release(hmfw);
end
I am pretty sure it has something to do with it.
0 Comments
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!