-
Notifications
You must be signed in to change notification settings - Fork 299
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
Add packages moviepy and sounddevice #428
Comments
moviepy is big in size, when you include "highly recommanded" dependancies to get something usefull. Maintenance work is proportional to total size of all binaries uploaded, and a too-big-binary can be a repulsive factor for users. sounddevice is written "3 - Alpha" software and not in listed cgohlke papers. |
Please note that PyAudio (included in WinPython) also has a development status of "3 - Alpha" at https://pypi.python.org/pypi/PyAudio/ My experience with my USB external DAC is that sounddevice works using the WDM-KS and WASAPI shared mode host APIs, while PyAudio in WinPython does not. I find sounddevice easier to use and better documented. sounddevice is super simple to play an entire NumPy array. PyAudio was available long before the sounddevice project even started, so consider that sounddevice was created because its developer was dissatisfied with PyAudio. The sounddevice developer creates his own DLLs for Windows, which I have been using. If a sounddevice user has a problem using ASIO, WDM-KS or WASAPI host APIs, the user can ask for help or submit a PR to the sounddevice project and get a quick response (in my experience). On the contrary, we can't expect any help from cgohlke on issues with these host APIs on Windows with PyAudio. To save WinPython maintenance work and yet serve the needs of users, I suggest replacing PyAudio with sounddevice. |
sounddevice: moviepy: Moviepy installs the ffmpeg dependency automatically only in the first use, so for people who actually do not use moviepy, there is no disk space penalty. After all ffmpeg is a pretty standard and very functional tool. I have never needed and installed other optional dependencies, ImageMagick, opencv, pygame. Moviepy is really very simple to use, neatly wraps ffmpeg, and even the functionality of the basic installation is more than enough for me. I found it after frustration and troubles with other video editing libraries. I think including these two libraries can save people who need audio and video processing capabilities from a lot of effort. |
basic problem is the sound_device wheel name decoding |
apparently, sounddevice is now supported by Christoph Gohlke, and the wheel name is back to "normal". |
Replacing libportaudio64bit.dll with the one from the portaudio-19.6.0-win branch at https://github.com/spatialaudio/portaudio-binaries I got WASAPI working with both exclusive mode and shared mode! @cgohlke - Thanks for building and posting Sounddevice package wheels. I tested your wheel with CPython 3.5, and no WASAPI devices are available from |
|
I patched portaudio's CMakeLists.txt and rebuilt. Windows WASAPI devices are showing up now. |
@cgohlke - Thanks for the updated wheels. I tested them with 64-bit CPython 3.4 and 3.5 (install with WinPython Control Panel). WASAPI devices are available, and WASAPI exclusive mode works well! A note to others: if you installed a sounddevice wheel from PyPI, after you uninstall it with the WinPython Control Panel, you will need to manually delete the _sounddevice_data folder. cgohlke's wheels are now the simplest way to get the PortAudio fixes and installation with the WinPython Control Panel. |
@cgohlke has http://www.lfd.uci.edu/~gohlke/pythonlibs/#simpleaudio Now that sounddevice is working so well, I changed my beep() function to use it instead of simpleaudio. I plan to install sounddevice into each new WinPython distribution anyway. WinPython already contains all of the dependencies of sounddevice. For simple 16-bit WAV playing, I use scipy.io.wavfile.read() and sounddevice.play(). Thus, playing a 16-bit WAV file to the default sound device is as simple with sounddevice as it is with simpleaudio. For use in my WinPython distribution, I don't need simpleaudio anymore. If WinPython includes sounddevice in future builds, it is even more convenient for me. |
sounddevice added to the list. it's not a heavy package |
I understand that for imageio, there is the true need to understand in wppm this nice "-cp26.cp27.cp33.cp34.cp35-none-win_amd64" specification |
checking more closely:
|
Thank you for sounddevice and looking at compliance of moviepy. |
the 4 Mo size of |
Almar Klien is going to remove "freeimage" dll / use in next week release, but that leaves many other dlls coming down live on your pc, or not coming down at all. |
I didn't know there will be a missing dll problem in the next weeks, not sure what to do to make moviepy work then, I don't have expertise about proper installation of these libraries. |
I would not like WinPython connecting to the internet at installation as this opens up a security vulnerability. Teachers and other security-concerned users install WinPython on the admin account with admin privileges. When users with standard privileges (students) run code that attempts runtime installation in the admin account, it will fail. I would rather see either everything included with the WinPython installer or let users manually download from PyPI. No drive-by downloads! |
Almar seems to say that only freeimage was downloaded, and this week it will disappear. In that case, I'll include it |
I tested the latest 64-bit Python 3.5 sounddevice wheel from @cgohlke with my external USB DAC using the following host APIs: WDM-KS, ASIO, WASAPI exclusive mode, and WASAPI shared mode. It worked perfectly. If WinPython is built using the wheel from https://pypi.python.org/pypi/sounddevice/ , you would need to manually replace the bundled DLL with the one from https://github.com/spatialaudio/portaudio-binaries/tree/19.6.0-windows Golke's PyAudio package uses I recommend removing PyAudio from the next WinPython release because:
|
I installed WinPython-64bit-3.5.2.4Qt5b3.exe, and I see it includes Golke's wheel for sounddevice. Thank you! Any comment on my last post in this thread about removing PyAudio? |
pyaudio is tiny and I have Python-3.6 wheels for it, so there is no physical pressure to remove it |
imageio will be in next release. moviepy is not moving since march 17th 2016, so won't be include in Winpython for now. |
How about including moviepy and sounddevice packages? They are the most practical ones I have seen so far, especially very useful for people working in video and audio signal processing fields.
http://zulko.github.io/moviepy/
https://pypi.python.org/pypi/sounddevice/
The text was updated successfully, but these errors were encountered: