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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to open output "-" (Invalid argument). #3784

Open
liuliujiang opened this issue May 6, 2024 · 0 comments
Open

Failed to open output "-" (Invalid argument). #3784

liuliujiang opened this issue May 6, 2024 · 0 comments

Comments

@liuliujiang
Copy link

馃悰 Describe the bug

s = StreamWriter(dst="-", format="audiotoolbox")
s.add_audio_stream(sample_rate, num_channels, format="s16")


RuntimeError Traceback (most recent call last)
Cell In[5], line 2
1 # Configure StreamWriter to write to speaker device
----> 2 s = StreamWriter(dst="-", format="audiotoolbox")
3 s.add_audio_stream(sample_rate, num_channels, format="s16")

File E:\ProgramData\anaconda3\Lib\site-packages\torio\io_streaming_media_encoder.py:199, in StreamingMediaEncoder.init(self, dst, format, buffer_size)
197 self._s = ffmpeg_ext.StreamingMediaEncoderFileObj(dst, format, buffer_size)
198 else:
--> 199 self._s = ffmpeg_ext.StreamingMediaEncoder(str(dst), format)
200 self._is_open = False

RuntimeError: Failed to open output "-" (Invalid argument).

Versions

2.3.0+cu121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant