This image is the top of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.
Home Forums Register FAQ Search Today's Posts Mark Forums Read


Welcome to the misticriver forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Reply
 
LinkBack Thread Tools Display Modes
  #81 (permalink)  
Old April 5th, 2006, 11:17 PM
Mistic Surveyor
 
Join Date: Jan 2006
Posts: 116
Send a message via AIM to SonuvBob
Hm.. that quick fix (setting PTP_USB_BULK_HS_MAX_ PACKET_LEN back to 512) brings back other problems. Hard to keep track of all the issues. Uploads are fixed, but downloads are still buggy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #82 (permalink)  
Old April 13th, 2006, 05:59 PM
Newbie Floating Down The Mistic River
 
Join Date: Apr 2006
Posts: 2
hey i'm new here and i got the t30 to work without installing any new software. I was using Fedora Core 5. So far i have to log into root to get this to connect to the t30 so can anyone tell me how i can make it so i dont have to log into rot every time i want to upload?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #83 (permalink)  
Old April 13th, 2006, 10:06 PM
Mistic Surveyor
 
Join Date: Jan 2006
Posts: 116
Send a message via AIM to SonuvBob
Quote:
Originally Posted by ricky715
hey i'm new here and i got the t30 to work without installing any new software. I was using Fedora Core 5. So far i have to log into root to get this to connect to the t30 so can anyone tell me how i can make it so i dont have to log into rot every time i want to upload?
http://www.gphoto.org/doc/manual/permissions-usb.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #84 (permalink)  
Old May 16th, 2006, 12:58 AM
Newbie Floating Down The Mistic River
 
Join Date: May 2006
Posts: 2
Playlists for anyone with the UMS version of the T10

OrthoB posted a python file on the first page of this thread to convert a *.m3u file to a *.pla file for the MTP version of the T10. If you have the UMS version then the script still works great but you have to change the line:

fo.write (struct.pack('>i508s ',n,"iriver MTP PLA" ))
to
fo.write (struct.pack('>i508s ',n,"iriver UMS PLA" ))

... just in case someone was curious but hadn't figured it out yet.

I spent ages last night compiling & installing gphoto2 & trying to get it working with my T10 before it occurred to me that I might not have to... Once I established that I had the UMS version & could simply mount it like a usb disk, then all I had to do is figure out the previous bit about the play lists and everything was very happy. If only I hadn't try to mount it incorrectly in the first place I could have saved many hours of frustration when I assumed it was an MTP version.

How do you know if you have a UMS or MTP version? ... goto:

http://www.iriver.com/html/support/f...pSearchString=

On the page:

http://www.iriver.com/html/support/d...ew.asp?idx=732

there is the latest firmware for the UMS version of the T10 ... not sure if this is required to use playlists but I installed it anyway & everyhing seemed to go ok.

dg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #85 (permalink)  
Old May 16th, 2006, 07:08 AM
Newbie Floating Down The Mistic River
 
Join Date: Dec 2005
Location: Arizona
Posts: 47
Quote:
Originally Posted by darrengood
OrthoB posted a python file on the first page of this thread to convert a *.m3u file to a *.pla file for the MTP version of the T10. If you have the UMS version then the script still works great but you have to change the line:

fo.write (struct.pack('>i508s ',n,"iriver MTP PLA" ))
to
fo.write (struct.pack('>i508s ',n,"iriver UMS PLA" ))

... just in case someone was curious but hadn't figured it out yet.
dg
Thanks! I wrote the script and didn't realize that! I was wondering why my playlist wasn't working after I converted my T10 to UMS last week; It had been a while since I wrote that and I didn't recall the signature line. I was on the verge of posting to ask for a sample UMS playlist.

Thanks again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #86 (permalink)  
Old May 16th, 2006, 07:56 PM
Newbie Floating Down The Mistic River
 
Join Date: May 2006
Posts: 2
No worries ... only reason I knew was because I made a "quicklist" on the player & then looked at it in a Hex editor & saw the UMS in place of the MTP.

Thanks for making the script in the first place.

Last edited by darrengood : May 17th, 2006 at 01:33 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #87 (permalink)  
Old July 5th, 2006, 01:44 PM
Newbie Floating Down The Mistic River
 
Join Date: Jun 2006
Posts: 1
I've tried using the script on my T30 (UMS firmware 1.71), and it didn't like the playlists created.

I made a "quick-play" list directly on the T30, which DID work...comparing the lists it looks like the T30 requires a "playlist name" in plain ascii (zero terminated, not unicode) starting at offset 0x30. Once I added this field to the playlist generated by the python script, above, I was successfully able to use the playlist on my T30.

I have not yet updated the python script (I used hexedit to make the change), but when I do, I'll post the mods here (unless someone beats me to it!).

Thanks for the initial script, and all the helpful info in this thread!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #88 (permalink)  
Old July 8th, 2006, 04:52 AM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2006
Posts: 33
orthoB's scripts and "alien" characters

hy,

running a t10 with firmware 1.70p under linux (ums not mtp). orthoB's python scripts (here: txt2pla.py) work like a charm, except ... when having non-ascii characters in the playlist. then i get an error similar to this:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 1: ordinal not in range(12

tried to write the playlist.txt either with utf-8 or utf-16, both with no luck.
any hints other than not using non-ascii characters?

Last edited by blablub : July 8th, 2006 at 05:49 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #89 (permalink)  
Old July 11th, 2006, 05:42 AM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2006
Posts: 33
Question

has nobody an idea?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #90 (permalink)  
Old July 11th, 2006, 01:06 PM
Hoping For A Cool Title
 
Join Date: Jan 2005
Posts: 77
Try this (line 14):

Code:
name = "\\"+t[i].rstrip().replace("/", "\\").decode('iso-8859-15')
Adjust the charset as needed, iso-8859-15 is western european with the € sign.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #91 (permalink)  
Old July 11th, 2006, 10:28 PM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2006
Posts: 33
nope, does not work. no it complains about line 16 (before, it was line 17):
Code:
  File "./txt2pla.py", line 16, in ?
    print i,": ",name
UnicodeEncodeError: 'ascii' codec can't encode characters in position 34-35: ordinal not in range(128)
tried it both with 'iso-8859-15' and 'utf-8' - with no success.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #92 (permalink)  
Old July 12th, 2006, 01:41 AM
Hoping For A Cool Title
 
Join Date: Jan 2005
Posts: 77
just uncomment that line or add ".encode('iso-8859-15')" (use your terminal's charset). The background is, with encode() you are transforming text from a given charset into Python's own internal representation. When you're trying to output it, you have to transform it to a real charset again, using decode().
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #93 (permalink)  
Old July 13th, 2006, 09:22 AM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2006
Posts: 33
ahh, fabulous works! thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #94 (permalink)  
Old August 20th, 2006, 05:17 PM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2006
Location: Santiago, Chile
Posts: 40
Quote:
Originally Posted by cdsteinkuehler View Post
I've tried using the script on my T30 (UMS firmware 1.71), and it didn't like the playlists created.

I made a "quick-play" list directly on the T30, which DID work...comparing the lists it looks like the T30 requires a "playlist name" in plain ascii (zero terminated, not unicode) starting at offset 0x30. Once I added this field to the playlist generated by the python script, above, I was successfully able to use the playlist on my T30.

I have not yet updated the python script (I used hexedit to make the change), but when I do, I'll post the mods here (unless someone beats me to it!).

Thanks for the initial script, and all the helpful info in this thread!!!
any news on this? please?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #95 (permalink)  
Old August 23rd, 2006, 11:02 PM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2006
Posts: 2
orthoB, thank you for saving me who knows how many hours trying to make playlists in Linux. Your python script worked with just the minor edit of switching MTP to UMS. I and my new T30 thank you. If we're ever in the same drinking establishment, you're drinking for free that night. Darren, I owe you at least one also.

kuroyume, I don't know what the issue is that you may be having, but the txt2pla.py script worked fine for my T30. I took a couple .m3u files, fixed the path to point to the right folders in the T30 (i.e. annie_lennox/medusa/train_in_vain.ogg to Rock/train_in_vain.ogg), ran './txt2pla.py medusa.txt Medusa.pla', and then copied Medusa.pla to T30/Playlists. I then browsed to the file, selected it, and hit the play button. It was a bit of a pleasant surprise to see the little PL next to the file name.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #96 (permalink)  
Old August 24th, 2006, 01:39 PM
Newbie Floating Down The Mistic River
 
Join Date: Jul 2006
Location: Santiago, Chile
Posts: 40
mmm.;.. i haven't really tried it, since cdsteinkuehler said that it didn't work for him, and that there were some modifications needed... however, if you say it works, i'll give it a spin... thanks for the report...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #97 (permalink)  
Old May 2nd, 2007, 09:20 AM
Newbie Floating Down The Mistic River
 
Join Date: May 2007
Posts: 3
Could somewith repost txt2pla.py? There don't appear to be links in OrthoB's original post and I lost my copy with a machine crash.

I found that for my UMS T20 I had to patch txt2pla.py to calculate strings lengths or terminate strings properly. There were some cases where the original script wasn't working for me. Sorry I forgotten the fine detail.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #98 (permalink)  
Old May 3rd, 2007, 09:38 AM
Newbie Floating Down The Mistic River
 
Join Date: Dec 2005
Location: Arizona
Posts: 47
I'll try to do this from home tonight.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #99 (permalink)  
Old May 3rd, 2007, 07:53 PM
Newbie Floating Down The Mistic River
 
Join Date: Dec 2005
Location: Arizona
Posts: 47
Here you go. This time it's an actual .zip file. Note that if you have a UMS player, change MTP to UMS in the txt2pla.py script.

Another trick - files are played in inode order. If you have a UMS device you can check the playback order using:
ls -i1 | sort
If the order isn't what you want, mv the files to another folder on the device so the folder is empty, and mv (or drag using some filebrowser bui) them back one by one in the desired playback order.
Attached Files
File Type: zip txt2pla.zip (2.0 KB, 29 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #100 (permalink)  
Old May 8th, 2007, 09:55 AM
Newbie Floating Down The Mistic River
 
Join Date: May 2007
Posts: 3
[quote=orthoB;560984]Here you go. This time it's an actual .zip file. Note that if you have a UMS player, change MTP to UMS in the txt2pla.py script.
QUOTE]

Thank you. If I need to do the string length trick again I'll post the details.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #101 (permalink)  
Old May 8th, 2007, 10:18 PM
Newbie Floating Down The Mistic River
 
Join Date: May 2007
Posts: 3
Functionally txt2play.py works fine and my T20 reads the playlist
without problem - thanks!

The problem I see with pla2txt.py is incorrectly terminated strings displayed.
With a .pla file created on Windows using the iRiver software
pla2txt.py shows extra garbage on screen (using RH EL 4.5, python
2.3.4):

id = iriver UMS PLA^@^@^@ [repeated 494 times in total - really messy]
1 : Corrina, Corrina.mp3 \DylanMisc\
2 : Hurricane.mp3^@na.mp 3 \DylanMisc\
3 : I Want You.mp3^@a.mp3 \DylanMisc\
4 : Just Like a Woman.mp3 \DylanMisc\
5 : Mr. Tambourine Man.mp3 \DylanMisc\
6 : Desolation Row.mp3^@mp3 \DylanMisc\
7 : Oh, sister.mp3^@mp3^@mp3 \DylanMisc\
8 : Sad Eyed Lady of the Lowlands.mp3 \DylanMisc\
9 : Sara.mp3^@Lady of the Lowlands.mp3 \DylanMisc\
10 : Stuck Inside of Mobile with the Memphis Blues Again.mp3 \DylanMisc\
11 : Visions of Johanna.mp3^@with the Memphis Blues Again.mp3 \DylanMisc\
12 : Talking World War III Blues.mp3^@Memphis Blues Again.mp3 \DylanMisc\
13 : A Hard Rain's A-Gonna Fall.mp3^@^@Memphis Blues Again.mp3 \DylanMisc\
. . .

Where ^@ is a nul byte in the .pla file according to my hex dump.

Even if I create the .pla file with txt2pla.py I still get the
"corrupt" id line even though nulls don't appear in the song titles.

I haven't patched this yet - need to remind myself how to do it in
Python.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 05:50 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
This image is the bottom of the content box. Unfortunately, there is no information-based reason for this div to be here. It's just here for design reasons. Sorry.