


route ( "/music_recognition", methods = ) def music_recognition (): file = request. route ( "/" ) def index (): return render_template ( "receiveaudio.html" ). I have included the part about SIP because I think it is important to understand what restrictions there are regarding placement of commands and why there isn't just a single path for all commands.From flask import Flask, session, render_template, redirect, request, flash from werkzeug.utils import secure_filename import os import comparison import time import json app = Flask ( _name_ ) app. Homebrew also makes installing dependencies easier.Įdit: I previously had a part of this answer with inaccurate information I have since changed it. Its much easier to use and quicker to install a large amount of tools. But I would suggest homebrew for multiple reasons. This can be done manually with manual commands (basically manually doing what homebrew does. Homebrew will install ffmpeg in a path not protected by SIP, but within the $PATH, more specifically it will install it under the /usr/local/bin directory. Then install ffmpeg with this command: brew install ffmpeg Alternatively, you can install it using Homebrew.įirst install HomeBrew with this command: /usr/bin/ruby -e "$(curl -fsSL )" Some of these directories are protected by SIP and therefore you would need to disable SIP to put the file in these directories.

The problem is bash is looking for ffmpeg in directories list in the $PATH. I must be close, is there a place where I now need to define a path for ffmpeg? I don't know how to do that, or what path to use.

However when I open a terminal and try ffmpeg or man ffmpeg or even ffmpeg -i filename.mp4 -vn filename.wav(from here) all I get is Use -h to get full help or, even better, run 'man ffmpeg' Which gave me this: Last login: Wed Jun 6 09:41:56 on ttys000ĭavid-selfs-Air:~ david$ /Volumes/FFmpeg\ 91200-g1616b1be5a/ffmpeg exit įfmpeg version N-91200-g1616b1be5a-tessus Copyright (c) 2000-2018 the FFmpeg developersīuilt with Apple LLVM version 9.1.0 (clang-902.0.39.1)Ĭonfiguration: -cc=/usr/bin/clang -prefix=/opt/ffmpeg -extra-version=tessus -enable-avisynth -enable-fontconfig -enable-gpl -enable-libaom -enable-libass -enable-libbluray -enable-libfreetype -enable-libgsm -enable-libmodplug -enable-libmp3lame -enable-libmysofa -enable-libopencore-amrnb -enable-libopencore-amrwb -enable-libopus -enable-librubberband -enable-libshine -enable-libsnappy -enable-libsoxr -enable-libspeex -enable-libtheora -enable-libtwolame -enable-libvidstab -enable-libvo-amrwbenc -enable-libvorbis -enable-libvpx -enable-libwavpack -enable-libx264 -enable-libx265 -enable-libxavs -enable-libxvid -enable-libzimg -enable-libzmq -enable-libzvbi -enable-version3 -pkg-config-flags=-static -disable-ffplay From here: I chose static builds 64-bit which too me to
