unable to execute curl -s http: on windows

I am executing music processing code on matlab2015a. but and error is still occurring and i am unable to resolve that issue kindly help me out to solve that issue
picture of error is attached as well as code files are also attached

1 个评论

that issue has been resolved by replacing r = mysystem(['curl -s ',p,... ' | grep href | sed -e ''s/.*href=\"\([^\"]*\)\".*/\1/'' | grep ''',... n,'''']);
by
r = mysystem(['"bin/curl.exe" -s ',p,... ' | grep href | sed -e ''s/.*href=\"\([^\"]*\)\".*/\1/'' | grep ''',... n,'''']);
but no new error is occurring kindly help me to resole this with proper piece of code
error image is attached here with and also guide me where i change your above mentioned code
regards

请先登录,再进行评论。

回答(2 个)

Unfortunately that code is designed for OS-X or Linux. You need to have a look at the notes about adapting it for use with Windows; see http://labrosa.ee.columbia.edu/matlab/fingerprint/windows-notes.txt
Guillaume
Guillaume 2016-2-13
With regards to your new error message, it looks very clear to me. Your mp3info program cannot find the mp3 file.
The fix to this would be to pass the full path of the mp3 file to mp3info.

8 个评论

complete path is given but no effect
What's the error message this time?
same error that occurred earlier
Well, the error clearly shows that you're just passing "MVI_1304_ref.mp3" to the external program. That is not the full path of he mp3 file.
By the way, it's easier for us if you simply copy/paste the error message rather than posting images of it. That way, we can copy/paste part of the message.
the exact error is this
Error using mp3read>mysystem (line 369) unable to execute "D:\Study\Research\PhD Work Out\Phd Thesis\Testing of Algorithms\1- Code of Gen Fingerprints\fingerprint\mp3info.exe" -r m -p "%Q %u %b %r %v * %C %e %E %L %O %o %p" "MVI_1304_ref.mp3" (Error opening MP3: MVI_1304_ref.mp3: No such file or directory )
Error in mp3read (line 193) w = mysystem(cmd);
Error in readaudio (line 10) [D,SR] = mp3read(FN);
Error in add_tracks (line 31) [D,SR] = readaudio(D);
Error in add_tracks (line 58) [n,t] = add_tracks(D{i},ID(i));
Error in robustAlgorithm (line 19) add_tracks(tks);
------------------------------ my major task is to perform music fingerprinting on window based system and i am using this http://labrosa.ee.columbia.edu/matlab/fingerprint/ downloaded from this http://www.mathworks.com/matlabcentral/fileexchange/23332-robust-landmark-based-audio-fingerprinting
kindly provide me running source code if possible as i am new to this
As I said you need to pass the full path of your mp3 files. Change your tks cell array in robustAlgorihtm so that the list of tracks contains the full path.
If all the tracks in tks are in the same folder, this can easily be done with:
track_folder = 'D:\folder\where\the\tracks\are';
tks_fullpath = cellfun(@(track) fullfile(track_folder, track), tks, 'UniformOutput', false);
But it would be better to just include the full path when you build the cell array in the first place.
the issue i have got is that now i have fixed the path of file name with file name as well and i donot know that from where it is getting file 'MVI_1304_ref.mp3' and creating error.is it temporary file or what is this as you can see from the code file..kindly guide me properly and if you have any for audio fingerprinting and also give me proper piece of code for getting audio files from website or servers
I know nothing about audio fingerprinting. I do not have any code to give you.
" i do not know that from where it is getting file 'MVI_1304_ref.mp3'": You're passing it on line 19 of robustAlgorithm to add_tracks through the cell array tks. I assume that robustAlgorithm is your own code, therefore only you know how that file ended up in tks.
If you can't figure it out. I suggest you learn to use matlab debugger. Step through your program one line at time, observing what is in each of your variables. You'll soon know where the file name is coming from.

请先登录,再进行评论。

类别

在 帮助中心 和 File Exchange 中查找有关 Simulation, Tuning, Visualization, and MIDI 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by