itspoma / audio-fingerprint-identifying-python

The Shazam-similar app, that identify the song using audio fingerprints & spectrum analysis and Fast Fourier transform
MIT License
351 stars 164 forks source link

collect-fingerprints-of-songs.py doesn't start... Killed #22

Closed chrowe closed 3 years ago

chrowe commented 3 years ago

I am following https://ourcodeworld.com/articles/read/973/creating-your-own-shazam-identify-songs-with-python-through-audio-fingerprinting-in-ubuntu-18-04

When I run python collect-fingerprints-of-songs.py

I get

sqlite - connection opened
 * id=1 channels=2: 03 Award Tour.mp3
   new song, going to analyze..
   fingerprinting channel 1/2
Killed

Any thoughts on what I might be doing wrong?

chrowe commented 3 years ago

Ok, not sure what I did to cause this, but I went through the steps again using Docker and it is working now

# Get dependencies
FROM ubuntu:18.04

ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update

RUN apt-get install -y \
    git \
    python2.7 \
    python-pip \
    python-tk \
    ffmpeg \
    portaudio19-dev \
    python-pyaudio

RUN pip install matplotlib termcolor scipy pydub PyAudio

RUN git clone https://github.com/itspoma/audio-fingerprint-identifying-python.git

# Install
WORKDIR "./audio-fingerprint-identifying-python"

RUN make clean reset

RUN mkdir mp3

# Get file to test with
RUN apt-get install -y wget

RUN cd mp3 && wget https://files.freemusicarchive.org/storage-freemusicarchive-org/music/WFMU/Broke_For_Free/Directionless_EP/Broke_For_Free_-_01_-_Night_Owl.mp3

# Test things are working
RUN python collect-fingerprints-of-songs.py

RUN python get-database-stat.py