#include "rotord.h" /* ultimately- audio analysis request will spawn a task - there will be another call that will check progress audio analysis will be saved - to a file? into a db? for now - dump analysis into the http request architecture - running rendering process main vamp library segmenter, beat detector http://127.0.0.1:9000/vamp/qm-vamp-plugins/qm-segmenter/01.wav Running plugin: "qm-segmenter"... Using block size = 26460, step size = 8820 Plugin accepts 1 -> 1 channel(s) Sound file has 2 (will mix/augment if necessary) Output is: "segmentation" Done ./rotord: symbol lookup error: /usr/local/lib/vamp/qm-vamp-plugins.so: undefined symbol: clapack_dgetrf next: load a movie and retreive frames save a movie how do we deal with frames in libavcodec - can we request a frame by number how do we deal with resolution */ RotorRequestHandler::RotorRequestHandler(const std::string& format): _format(format){ } void RotorRequestHandler::handleRequest(HTTPServerRequest& request,HTTPServerResponse& response) { Timestamp now; std::string dt(DateTimeFormatter::format(now, _format)); response.setChunkedTransferEncoding(true); response.setContentType("text/html"); std::ostream& ostr = response.send(); ostr << "
"; ostr << dt; ostr << "
"; } RotorRequestHandlerFactory::RotorRequestHandlerFactory(const std::string& format):_format(format){ } AudioAnalyserHandler::AudioAnalyserHandler(const vampHost::Settings& _settings): settings(_settings){ } void AudioAnalyserHandler::handleRequest(HTTPServerRequest& request,HTTPServerResponse& response) { response.setChunkedTransferEncoding(true); response.setContentType("text/html"); //string audioData=vampHost::runPlugin(); std::ostream& ostr = response.send(); ostr << ""; vampHost::runPlugin("",settings.soname,settings.filtername, "",0, settings.inputFile, ostr,true); ostr << "
"; } HTTPRequestHandler* RotorRequestHandlerFactory::createRequestHandler(const HTTPServerRequest& request){ Application& app = Application::instance(); Poco::URI theuri=Poco::URI(request.getURI()); std::vector