View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Feb 25, 2009 9:54 pm 
Offline
Joined: Tue Nov 14, 2006 2:55 pm
Posts: 245
Location: South Jersey
We recently got palm centro pda's. The kids wanted to watch their favorite movies on them. I downloaded TCMP (core media player) free version and converted the mpg's from myth to run on it.

The free version can be found at: http://www.arizonaed.com/PALM/tcpmp-palmos/

or elsewhere on the web.

The latest version of Core Media Player does not crash the phone but costs $30.

To convert the files use this quickie script:

Code:
#!/bin/bash

mkdir /myth/avi 2>/dev/null
cd /myth/pretty

for pretty in $@
do

  mpg=`ll "*${pretty}*" |
       head -1 |
       perl -lane 'print $F[-1]'`

  avi=`ls *${pretty}* |
       head -1 |
       perl -F- -lane '
                    $F[0] =~ s/[^\w\d]/-/g;
                    $F[0] =~ s/--/-/g;
                    $F[0] =~ s/-$//g;
                    $F[-1] =~ s/[^\w\d]/-/g;
                    $F[-1] =~ s/--/-/g;
                    $F[-1] =~ s/^-/__/;
                    $F[-1] =~ s/__Untitled//;
                    $F[-1] =~ s/-mpg$/.avi/;
                    printf "%s%s\n",$F[0],$F[-1]; '`

  avi_err=`echo ${avi} |
           sed 's/avi$/err/'`

mencoder -vf scale=320:240 -oac mp3lame -lameopts mode=0:cbr:br=96 -af volnorm -
srate 32000 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=250 ${mpg} -o /myth/avi/${
avi} 2>/myth/avi/${avi_err} &

echo ${mpg}:${avi}

done


The script dumps the new avi file under newly created directory /myth/avi. Usage syntax is harder to explain. If you have a symlink under /myth/pretty named "Thomas & Friends - 2008-05-11, 9-30 AM - Loyalty.mpg", execute the script thusly:

$ make-palm-avi Loyalty

or

$ make-palm-avi 9-30

or

$ make-palm-avi Friends


In other words just take a unique part of the symlink filename and voila, off it goes.

Good luck,

abs.
[/code]

_________________
R6.04, dual core 3ghz, 3 gig memory, Zotac 8400 passive heat sink dvi/hdmi out video, 500 gig sata, dual tuner hdhomerun, streamzap remote

Abby


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2009 4:08 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1995
Location: /dev/null
Nice post dude, although I don't have a palm, I think some folks out there will appreciate it now or in the future. I think it really belongs in the HOWTO section though. If you want to "move" it there, ie. just repost, I'll delete my reply (this post), then you can delete your original post.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2009 5:31 pm 
Offline
Joined: Sun Aug 28, 2005 7:07 pm
Posts: 821
Location: Melbourne, Australia
graysky wrote:
Nice post dude, although I don't have a palm, I think some folks out there will appreciate it now or in the future. I think it really belongs in the HOWTO section though. If you want to "move" it there, ie. just repost, I'll delete my reply (this post), then you can delete your original post.


No need. I moved it just now.

Mike

_________________
*********************
LinHES 7.4
Australian Dragon
*********************


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 28, 2009 11:19 am 
Offline
Joined: Tue Nov 14, 2006 2:55 pm
Posts: 245
Location: South Jersey
thanks

just realized that the script uses "ll". I always create three scripts under /usr/bin on all my boxes as shown below. "ll" is pretty much the hpux ll command. thanks, abs

# cd /usr/bin

# cat ll
ls -pal $@

# cat u
uname -n

# cat psg
ps -ef | grep -i $@

or (dpending on OS)

# cat psg
ps waxu | grep -i $@

_________________
R6.04, dual core 3ghz, 3 gig memory, Zotac 8400 passive heat sink dvi/hdmi out video, 500 gig sata, dual tuner hdhomerun, streamzap remote

Abby


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu