Error in EFAP.py module when encoding ISMs with pre-renderer from pyaudio3dtools
Basic info
- Commit SHA: 47d5fc30
- Platform: Windows/Linux
Bug description
The pre-renderer ends up with error when encoding ISMs to STEREO output. It looks like a problem inside EFAP.py
.
Audio3DTools
===Convert spatial audio file===
process prerenderer_config.txt
Input spatial audio format: META
META -> STEREO
Traceback (most recent call last):
File "/home/malenov/anaconda3/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/malenov/anaconda3/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/mnt/c/Work/IVAS/Ericsson_ITD_for_CNG/pyaudio3dtools/audio3dtools.py", line 296, in <module>
main()
File "/mnt/c/Work/IVAS/Ericsson_ITD_for_CNG/pyaudio3dtools/audio3dtools.py", line 245, in main
spatialaudioconvert.spatial_audio_convert(
File "/mnt/c/Work/IVAS/Ericsson_ITD_for_CNG/pyaudio3dtools/spatialaudioconvert.py", line 222, in spatial_audio_convert
in_sig = render_meta(
File "/mnt/c/Work/IVAS/Ericsson_ITD_for_CNG/pyaudio3dtools/spatialaudioconvert.py", line 528, in render_meta
out_sig += convert_ism(
File "/mnt/c/Work/IVAS/Ericsson_ITD_for_CNG/pyaudio3dtools/spatialaudioconvert.py", line 447, in convert_ism
out_frame[:] = (in_frame @ gains.T) * fade_in + ( in_frame @ gains_old.T ) * fade_out
ValueError: operands could not be broadcast together with shapes (942,2) (960,1)
Ways to reproduce
Here's the command-line to use
python pyaudio3dtools.audio3dtools -b -i prerenderer_config.txt -s 48000 -f META -o output.wav -F STEREO
Here's the input_file and prerenderer_config.txt.
Edited by Ghost User