Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
netmdpython [2010/10/28 21:21] – mannermoe | netmdpython [2010/11/08 10:16] – glaubitz |
---|
Download and install [[http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi|Python2.6]], [[http://www.voidspace.org.uk/downloads/pycrypto-2.1.0.win32-py2.6.zip|PyCrypto]] and [[http://sourceforge.net/projects/sox/files/sox-win/14.3.1/|sox]]. | Download and install [[http://www.python.org/ftp/python/2.6.6/python-2.6.6.msi|Python2.6]], [[http://www.voidspace.org.uk/downloads/pycrypto-2.1.0.win32-py2.6.zip|PyCrypto]] and [[http://sourceforge.net/projects/sox/files/sox-win/14.3.1/|sox]]. |
| |
Download [[http://libusb-winusb-wip.googlecode.com/files/zadig.exe|zadig.exe]] (WinUSB device driver installer), connect your NetMD device and run zadig.exe. | Download [[http://libusb-winusb-wip.googlecode.com/files/zadig.exe|zadig.exe]] (WinUSB device driver installer), connect your NetMD device and run //zadig.exe//. |
| |
Klick //Options->List all devices//, choose your Net MD device an klick //Install Driver//. | Click //Options->List all devices//, choose your NetMD device an choose //Install Driver//. |
//**SonicStage will not be able to communicate with your netmd device anymore. | //**NOTE: SonicStage will not be able to communicate with your NetMD device anymore. |
If you want to use SonicStage you have to uninstall WinUSB device driver first**//. | If you want to use SonicStage again, you will have to uninstall WinUSB device driver first.**// |
(Enter device manager, choose your device and uninstall it, you can find it at "libusb (WinUSB) devices". | (To uninstall the driver, run Windows "Device Manager", choose your device and uninstall it, you can find it at "libusb (WinUSB) devices". |
Then unplug and reconnect your device) | Then unplug and reconnect your device). |
| |
Download latest version of [[http://github.com/vpelletier/python-libusb1/tree/|python-libusb1]] and replace usb1.py and libusb1.py in netmd subdirectory of your linux-minidisc folder with the python-libusb1 versions. These versions can find and open libusb windows dll which is not implemented in usb1.py and libusb1.py of current main source repository, yet. | Download latest version of [[http://github.com/vpelletier/python-libusb1/tree/|python-libusb1]] and replace usb1.py and libusb1.py in the //netmd// subdirectory of your //linux-minidisc// folder with the python-libusb1 versions. These versions can find and open libusb Windows DLL which has not been implemented in usb1.py and libusb1.py of current main source repository yet. |
| |
Download and extract [[http://libusb-winusb-wip.googlecode.com/files/libusb_2010.10.14.7z|libusb windows backend]] and copy libusb1.0.dll to your | Download and extract [[http://libusb-winusb-wip.googlecode.com/files/libusb_2010.10.14.7z|libusb windows backend]] and copy libusb1.0.dll to your |
windows/system32 folder (usually C:\WINDOWS\system32). Use the version according to your os, mingw32 version should work on Windows XP 32-bit. | windows/system32 folder (usually C:\WINDOWS\system32). Use the version according to your version of Windows, mthe ingw32 version should work on Windows XP 32-bit. |
| |
Open a console window(//Start->Run//, type //cmd// and press enter) and type | Open a command prompt (Click //Start->Run//, type //cmd// and press enter) and type |
<code> | <code> |
set PATH=<sox install dir>;%PATH% | set PATH=<sox install dir>;%PATH% |
</code> | </code> |
to add the path of sox directory temporarely.(<sox install dir> means the path to your sox installation directory, usually C:\sox-14-3-1). | to add the path of sox directory temporarily. (<sox install dir> means the path to your sox installation directory, usually C:\sox-14-3-1). To use it permanently you can add the path to your system variables. |
To use it permanently you can add the path to your system variables. | |
| |
If you want to use ffmpeg to convert uploaded files, you can download Windows binaries of [[http://ffmpeg.arrozcru.org/autobuilds/|ffmpeg]]. | If you want to use ffmpeg to convert uploaded files, you can download Windows binaries of [[http://ffmpeg.arrozcru.org/autobuilds/|ffmpeg]]. |
</code> | </code> |
| |
To use the tools, open a console window, change into netmd subdirectory of your linux-minidisc folder and start the scripts by their name (just type | To use the tools, change into netmd subdirectory of your linux-minidisc folder and run the scripts by their name (just type |
"dump_md.py", "upload.py", ...) with parameters if needed. See **How to use the tools** below. | "dump_md.py", "upload.py", ...) with parameters if required. See [[netmdpython#how_to_use_the_toolsbelow]]. |
| |
| |
| |
**Important notes regarding all tools:** | **Important notes regarding all tools:** |
| |
* The tools use a python binding for libusb 1.0. There is no libusb 1.0 for Windows yet, so no chance of using them on Windows. | |
| |
* Write access to usb device required (even for listing, as it requires sending usb commands). One way to obtain the rights on modern Linux distributions that use PolicyKit ist to add the portable_audio_player capability to the Net MD device using the provided fdi file (look in netmd/etc of the linux-minidisc tree). Another way is to run them with root permissions (not recommended) or make sure the device raw USB device (the file /dev/bus/usb/<bus>/<device>) gets read/write access by the user you want to use the tools with. | * Write access to usb device required (even for listing, as it requires sending usb commands). One way to obtain the rights on modern Linux distributions that use PolicyKit ist to add the portable_audio_player capability to the Net MD device using the provided fdi file (look in netmd/etc of the linux-minidisc tree). Another way is to run them with root permissions (not recommended) or make sure the device raw USB device (the file /dev/bus/usb/<bus>/<device>) gets read/write access by the user you want to use the tools with. |