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.
Go Back   MisticRiver :: For iriver Enthusiasts > iriver (Reigncom) > iRiver Flash Players > iriver T10, T30 Series Flash Players
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
  #1 (permalink)  
Old September 19th, 2006, 07:34 AM
Newbie Floating Down The Mistic River
 
Join Date: Sep 2006
Location: Ukraine, Kharkov
Posts: 10
Send a message via ICQ to Demimurych
Linux Bash script to convert m3u to pla

So sorry about my engl.

I made script to convert .M3U play list format to iriver .PLA playlist format.

http://demi.wdisk.net/arh/iriver-convert.zip

Examples:
iriver-convert --if=Le.m3u # convert Le.m3u to Le.m3u.pla
iriver-convert --if=Le.m3u --of=Le.pla # convert Le.m3u to Le.pla
iriver-convert # help screen
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old September 21st, 2006, 02:52 AM
Newbie Floating Down The Mistic River
 
Join Date: Sep 2006
Location: Tokyo
Posts: 19
Thanks! I would love this script, if I can make it work.

Could you give an example, also explaining the location of your music files?

For me, I want to do this:
  1. Move music files to player
  2. From XMMS or Rhythmbox, locate the music on my player and make a temp playlist. Maybe the playlist can be on the player, or /home/user , I don't care
  3. convert the m3u to pla, writing output directly to the player.

On my T20, using Fedora Core 5, I tried the line below, but it didn't work:

$ ./iriver-convert --if=/home/user/trial1-edit5.m3u --of=/media/T20/Playlists/trial1.pla --mp=/media/T20/

I think my playlist is bad. But it gives many errors such as
./iriver-convert: line 120: recode: command not found
./iriver-convert: line 122: .//media/T20/Playlists/trial1.pla: No such file or directory


If you show me an example, especially describing the path in your m3u, and the working directory where you run iriver-convert, I think I can make it work.


Also, have you considered PLS format for playlists? .. Fedora Core 5 ships with Rhythmbox, which only exports PLS playlists. (Yes, I know the solution is to install XMMS, and I will do it soon) Here is the PLS standard: http://forums.winamp.com/showthread.php?threadid=65772

thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old September 21st, 2006, 07:29 AM
Newbie Floating Down The Mistic River
 
Join Date: Sep 2006
Location: Ukraine, Kharkov
Posts: 10
Send a message via ICQ to Demimurych
sry about my engl.

1. Mount u iriver.
2. Make play list from the songs on u iriver. ITS IMPORTENT.
3. Save play list on hard drive
4. Runs script


For example:
mount /dev/sda1 /mnt/iriver
ls /mnt/iriver/
music
ls /mnt/iriver/music/
Ramstain
Enigma
xmms /mnt/iriver/music/Enigma/*

make playlist
save

runs script
iriver-conver --if=/tmp/tmp.m3u --of=/tmp/new.pla --pl=/mnt/iriver



Understend ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old September 21st, 2006, 07:30 AM
Newbie Floating Down The Mistic River
 
Join Date: Sep 2006
Location: Ukraine, Kharkov
Posts: 10
Send a message via ICQ to Demimurych
Oh,
AND u need recode utility

For FC5
ftp://ftp.univie.ac.at/systems/linux...1.fc5.i386.rpm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old September 21st, 2006, 08:30 AM
Newbie Floating Down The Mistic River
 
Join Date: Sep 2006
Location: Ukraine, Kharkov
Posts: 10
Send a message via ICQ to Demimurych
Lilte cahnge script.

Now script try to find recode utility.
If not find then exiting
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old September 22nd, 2006, 03:39 AM
Newbie Floating Down The Mistic River
 
Join Date: Sep 2006
Location: Tokyo
Posts: 19
Hi.. thanks for your help. I got it to work. For other people with FC5, with a UMS T20 player, here's what I did:

open a terminal
When you first install the code:
# yum install recode (It's in extras, the # means do this as root)

When you want to use it:
--> Use your preferred software to write a m3u file. (See NOTE below)
--> Make sure the m3u file is in the same directory as the iriver-convert script (key point). cd to that directory in your terminal
% ./iriver-convert --if=my-playlist.m3u --of=new.pla --mp=/media/T20
% mv new.pla /media/T20/Playlists
--> It should work!

NOTE--Program to write m3u file
Demimurych of course recommends XMMS
% yum install xmms xmms-mp3 (xmms-mp3 needs livna repos; search fedorafaq if you don't know what that is)



Any other m3u program should work, but I could not get the script to work with a m3u file from easyTAG. *) the m3u uses full path names, like XMMS **) the m3u had only 1 entry, the XMMS m3u had 144, otherwise they seem the same. ***) the script finished, but my T20 said "Link Error The File Does Not Exist!" when I tried to open it

Here is the m3u file:
#EXTM3U
#EXTINF:247,01-The Chieftains-Film Cuts-O'Sullivan's March.MP3
/media/T20/music/chieftains film cuts - irish/01-The Chieftains-Film Cuts-O'Sullivan's March.MP3

Here is the pla file:
iriver UMS PLAuick List

%\music\chieftains film cuts - irish\01-The Chieftains-Film Cuts-O'Sullivan's March.MP3


Anyway, thanks Demimurych for the script. I am curious if this script will also work for the HDD players.. if 'maybe', I'll look for a linux thread over there to link here..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old September 25th, 2006, 06:49 AM
Newbie Floating Down The Mistic River
 
Join Date: Sep 2006
Location: Ukraine, Kharkov
Posts: 10
Send a message via ICQ to Demimurych
Quote:
Originally Posted by Tokyo_Yank View Post

NOTE--Program to write m3u file
Demimurych of course recommends XMMS
% yum install xmms xmms-mp3 (xmms-mp3 needs livna repos; search fedorafaq if you don't know what that is)



Any other m3u program should work, but I could not get the script to work with a m3u file from easyTAG. *) the m3u uses full path names, like XMMS **) the m3u had only 1 entry, the XMMS m3u had 144, otherwise they seem the same. ***) the script finished, but my T20 said "Link Error The File Does Not Exist!" when I tried to open it

Here is the m3u file:
#EXTM3U
#EXTINF:247,01-The Chieftains-Film Cuts-O'Sullivan's March.MP3
/media/T20/music/chieftains film cuts - irish/01-The Chieftains-Film Cuts-O'Sullivan's March.MP3

Here is the pla file:
iriver UMS PLAuick List

%\music\chieftains film cuts - irish\01-The Chieftains-Film Cuts-O'Sullivan's March.MP3


Anyway, thanks Demimurych for the script. I am curious if this script will also work for the HDD players.. if 'maybe', I'll look for a linux thread over there to link here..
pls mail me m3u play list file from easyTAG.
I try to find my eerors and correct script
demimurych@mail.ru
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 02:03 AM.


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.