"File is corrupt or is not a standard MP3 file" error

1 visualización (últimos 30 días)
Niranjan Satam
Niranjan Satam el 22 de Mzo. de 2013
??? 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.

Respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by