Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
netmdpython [2010/10/28 21:23] – mannermoe | netmdpython [2011/04/18 20:10] – added 'sox' for Debian and Ubuntu glaubitz |
---|
| |
<code> | <code> |
sudo port install libusb git-core | sudo port install libusb git-core py26-crypto sox |
</code> | </code> |
| |
| |
<code> | <code> |
sudo apt-get install python2.6 libusb-dev git-core subversion | sudo apt-get install python2.6 libusb-dev git-core subversion python-crypto sox |
</code> | </code> |
| |
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, the mingw32 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_tools]] below. |
| |
| |
| |
<code> | <code> |
git clone git://sulphur.uio.no/linux-minidisc | git clone git://minidisc.dyndns.org/linux-minidisc |
</code> | </code> |
| |
==== downloadhack.py - download tracks to NetMD (buggy) ==== | ==== downloadhack.py - download tracks to NetMD (buggy) ==== |
| |
Use this script download tracks to your NetMD Walkman. **Note: This requires the NetMD root key from Sony which is not (yet) part of the official repository due to legal reasons.** | Use this script download tracks to your NetMD Walkman. <del>**Note: This requires the NetMD root key from Sony which is not (yet) part of the official repository due to legal reasons.**</del> |
==== mdctl.py - test libnetmd functionality (DEBUG use only) ==== | ==== mdctl.py - test libnetmd functionality (DEBUG use only) ==== |
| |