Closed JiaxiangBU closed 4 years ago
Hello, @JiaxiangBU!
I think it is OOM (Out of memory). How much RAM does your machine have? 4 GB recommended.
It is 2G. I will change another machine to try.
I added information about this requirement in the readme. thanks for this
Here is the error information.
```python import matchering as mg # Sending all log messages to the default print function # Just delete the following line to work silently mg.log(print) ``` ```python mg.process( # The track you want to master target='../music_file/torch.wav', # Some "wet" reference track reference='../music_file/juanzhulian.wav', # Where and how to save your results results=[ mg.pcm16('my_song_master_16bit.wav'), mg.pcm24('my_song_master_24bit.wav'), ] ) ``` Please give us a star to help the project: https://github.com/sergree/matchering ---------------------------------------- Loading and analysis Loading the TARGET file: '../music_file/torch.wav'... The TARGET file is loaded TARGET audio length: 12900720 samples (0:04:52) Audio clipping is detected in the TARGET file. It is highly recommended to use the non-clipping version Loading the REFERENCE file: '../music_file/juanzhulian.wav'... The REFERENCE file is loaded REFERENCE audio length: 14971904 samples (0:05:11) Resampling REFERENCE audio from 48000 Hz to 44100 Hz... The REFERENCE audio was resampled ---------------------------------------- Matching levels The maximum size of the analyzed piece: 661500 samples or 15.00 seconds Normalizing the REFERENCE... The REFERENCE was normalized. Final amplitude coefficient for the TARGET audio is: -0.0495 dB Calculating mid and side channels of the TARGET... The TARGET will be didived into 20 pieces One piece of the TARGET has a length of 645036 samples or 14.63 seconds Calculating RMSes of the TARGET pieces... Extracting the loudest pieces of the TARGET audio with the RMS value more than average -11.3945 dB... The current average RMS value in the loudest pieces is -9.3542 dB Calculating mid and side channels of the REFERENCE... --------------------------------------------------------------------------- MemoryError Traceback (most recent call last)Is my wav file is too long? I am new for this package.
I run it on an Ubuntu system.