netmdpython
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
netmdpython [2010/06/19 10:14] – glaubitz | netmdpython [2011/04/17 23:24] – glaubitz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== NetMDPython ====== | ====== NetMDPython ====== | ||
- | NetMD Python | + | NetMDPython |
===== Requirements ===== | ===== Requirements ===== | ||
Line 21: | Line 21: | ||
< | < | ||
- | sudo port install libusb git-core | + | sudo port install libusb git-core |
</ | </ | ||
Line 27: | Line 27: | ||
< | < | ||
- | sudo apt-get install python2.6 libusb-dev git-core subversion | + | sudo apt-get install python2.6 libusb-dev git-core subversion |
</ | </ | ||
==== Windows ==== | ==== Windows ==== | ||
- | //Windows is not yet supported in the latest | + | Download and install [[http://www.python.org/ |
+ | |||
+ | Download [[http:// | ||
+ | |||
+ | Click // | ||
+ | //**NOTE: SonicStage will not be able to communicate with your NetMD device anymore. | ||
+ | If you want to use SonicStage again, you will have to uninstall WinUSB device driver first.**// | ||
+ | (To uninstall | ||
+ | Then unplug and reconnect your device). | ||
+ | |||
+ | Download | ||
+ | |||
+ | Download and extract [[http:// | ||
+ | windows/ | ||
+ | |||
+ | Open a command prompt (Click // | ||
+ | < | ||
+ | set PATH=< | ||
+ | </ | ||
+ | to add the path of sox directory temporarily. (<sox install dir> means the path to your sox installation directory, usually C: | ||
+ | |||
+ | If you want to use ffmpeg to convert uploaded files, you can download | ||
+ | Extract it to a place of your choice and add the path of //bin// subdirectory to your PATH environment variable as described above. | ||
+ | < | ||
+ | set PATH=< | ||
+ | </ | ||
+ | |||
+ | To use the tools, change into netmd subdirectory of your linux-minidisc folder and run the scripts by their name (just type | ||
+ | " | ||
===== Download ===== | ===== Download ===== | ||
Line 39: | Line 68: | ||
< | < | ||
- | git clone git://z6.physik.fu-berlin.de/ | + | git clone git://minidisc.dyndns.org/ |
</ | </ | ||
Line 117: | Line 146: | ||
</ | </ | ||
==== upload.py - upload tracks from standard MDs using Sony's MZ-RH1/M200 ==== | ==== upload.py - upload tracks from standard MDs using Sony's MZ-RH1/M200 ==== | ||
- | This tool is used for digital upload of non-protected tracks (lsmd lists them as " | + | This tool is used for digital upload of non-protected tracks (lsmd lists them as " |
- | This tool will silently skip protected tracks, so if you don't get the files you expect check their protection status. There is no known way to unprotect a track using NetMD or HiMD players. All tracks uploaded by Sonic Stage are protected. Surprisingly, | + | This tool will silently skip protected tracks, so if you don't get the files you expect, check their protection status. There is no known way to unprotect a track using NetMD or HiMD players. All tracks uploaded by Sonic Stage are protected. Surprisingly, |
=== Using upload.py and ffmpeg to upload tracks on MacOS X === | === Using upload.py and ffmpeg to upload tracks on MacOS X === | ||
Line 158: | Line 187: | ||
* install the dependencies as shown [[netmdpython# | * install the dependencies as shown [[netmdpython# | ||
* install //ffmpeg// from the official repositories (**you will need //ffmpeg// version 0.6 or later for ATRAC SP**) to check, whether ffmpeg 0.6 or later is available, type: | * install //ffmpeg// from the official repositories (**you will need //ffmpeg// version 0.6 or later for ATRAC SP**) to check, whether ffmpeg 0.6 or later is available, type: | ||
- | |||
< | < | ||
apt-cache show ffmpeg |grep Version | apt-cache show ffmpeg |grep Version | ||
Line 164: | Line 192: | ||
Version: 4:0.5.2-1 | Version: 4:0.5.2-1 | ||
</ | </ | ||
+ | * if the version listed corresponds to 0.6 or later, install //ffmpeg// directly: | ||
< | < | ||
sudo apt-get install ffmpeg | sudo apt-get install ffmpeg | ||
</ | </ | ||
- | * **OR** | + | * if you cannot |
< | < | ||
sudo apt-get build-dep ffmpeg | sudo apt-get build-dep ffmpeg | ||
Line 198: | Line 225: | ||
==== 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. |
- | ==== mdctl.py ==== | + | ==== mdctl.py |
- | This is in a more-then-primitive state. It is supposed to export all functions of libnetmd.py for easy command-line use. Currently, it's a brain-dead wrapper around a pdb shell. Use only if you know python. | + | This is in a more-than-primitive state. It is supposed to export all functions of libnetmd.py for easy command-line use. Currently, it's a brain-dead wrapper around a pdb shell. Use only if you know Python. |
==== lsusb.py - list USB devices connected to the PC ==== | ==== lsusb.py - list USB devices connected to the PC ==== | ||
Line 210: | Line 237: | ||
**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 / | * 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 / |
netmdpython.txt · Last modified: 2013/05/16 11:39 by glaubitz