Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

other/msu/encode_opus.py error #253

Open
foldfree opened this issue May 21, 2023 · 0 comments
Open

other/msu/encode_opus.py error #253

foldfree opened this issue May 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@foldfree
Copy link

foldfree commented May 21, 2023

Describe your bug here. And how to reproduce it.

using homebrew and macOS 13.4

In the ./zelda3/other/msu/ directory, I run: python3 encode_opus.py and I get this error:

(...)
Converting ../../msu/ALttP-msu-Deluxe-113.pcm
Converting ../../msu/ALttP-msu-Deluxe-114.pcm
Traceback (most recent call last):
  File "/Users/cesar/zelda3/other/msu/encode_opus.py", line 127, in <module>
    result = future.result()
             ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/opt/homebrew/Cellar/[email protected]/3.11.3/Frameworks/Python.framework/Versions/3.11/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/cesar/zelda3/other/msu/encode_opus.py", line 121, in task
    convert_to_opuz(r"../../msu/ALttP-msu-Deluxe-%d.pcm" % i, i >= 48 or kMsuTracksWithRepeat[i])
  File "/Users/cesar/zelda3/other/msu/encode_opus.py", line 75, in convert_to_opuz
    result, framelist, preskip, msu_repeat_pos, songlength = encode_to_msu_opus(filename, 128000)
                                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/cesar/zelda3/other/msu/encode_opus.py", line 54, in encode_to_msu_opus
    enc = create_encoder(bitrate)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/cesar/zelda3/other/msu/encode_opus.py", line 44, in create_encoder
    enc.bitrate = bitrate
    ^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/opuslib/classes.py", line 232, in <lambda>
    _set_bitrate = lambda self, x: opuslib.api.encoder.encoder_ctl(
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/opuslib/api/encoder.py", line 83, in encoder_ctl
    return request(libopus_ctl, encoder_state, value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/lib/python3.11/site-packages/opuslib/api/ctl.py", line 66, in inner
    raise opuslib.exceptions.OpusError(result_code)
opuslib.exceptions.OpusError: b'invalid argument'

note: On ubuntu LTS 22.04, it just worked..

What is your build target?

macOS 13.4

@foldfree foldfree added the bug Something isn't working label May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant