Skip to content

Using split-audio with --format "ogg" results in silent crash #35

@churipputori

Description

@churipputori

Before continuing with the bug report, does updating to the latest version fix this issue? [Yes/No]
No, tested on both newest stable and nightly

Describe the bug
When using the command split-audio with the option --format "ogg", the will silently exit back to the prompt, outputting an unplayable 5kb .ogg file. This occurred with both a .wav and .flac input file and .ogg output. This occurred regardless of input music. This does not occur with any input file and a .mp3 or .wav output.

Debugging Information
Verbose:

PS C:\Users\user\Music\work> pymusiclooper.exe -v split-audio --path '.\E199_BGM00_L_16 test.wav' --format "OGG"
INFO Loaded ".\E199_BGM00_L_16 test.wav". Analyzing...
INFO Detected 666 beats at 112 bpm
INFO Finished initial audio processing in 4.375s
INFO Found 40 possible loop points in 0.080s
INFO Filtered to 40 best candidate loop points
INFO Total analysis runtime: 4.519s
PS C:\Users\user\Music\work>

Debug:

PS C:\Users\user\Music\work> pymusiclooper.exe --debug split-audio --path '.\E199_BGM00_L_16 test.wav' --format "OGG"
C:\Users\user\pipx\venvs\pymusiclooper\Lib\site-packages\librosa\core\intervals.py:15: DeprecationWarning: path is
deprecated. Use files() instead. Refer to
https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
with resources.path("librosa.core", "intervals.msgpack") as imsgpack:
C:\Users\user\pipx\venvs\pymusiclooper\Lib\site-packages\audioread\rawread.py:16: DeprecationWarning: 'aifc' is
deprecated and slated for removal in Python 3.13
import aifc
C:\Users\user\pipx\venvs\pymusiclooper\Lib\site-packages\audioread\rawread.py:17: DeprecationWarning: 'audioop' is
deprecated and slated for removal in Python 3.13
import audioop
C:\Users\user\pipx\venvs\pymusiclooper\Lib\site-packages\audioread\rawread.py:19: DeprecationWarning: 'sunau' is
deprecated and slated for removal in Python 3.13
import sunau
C:\Users\user\pipx\venvs\pymusiclooper\Lib\site-packages\librosa\core\convert.py:1870: RuntimeWarning: divide by zero
encountered in log10

  • 2 * np.log10(f_sq)
    PS C:\Users\user\Music\work>

(It should be noted that the progress bar still continues for some time after these warnings before exiting silently)

Expected behavior
The file exports just as it does with .wav as the output, just already in the required format.

Environment Information (please complete the following information):

  • OS: Windows 10 21H2
  • PyMusicLooper version being used (execute pymusiclooper --version in the terminal if unsure): pymusiclooper 3.4.1
  • Is FFmpeg installed and working? (execute ffmpeg --version in the terminal if unsure): Yes

Additional context
In interactive mode, it is able to find loop points and interact as expected. It is only when the file writing process begins that the process terminates, leaving an almost empty (5kb) file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions