LinHES Forums http://forums.linhes.org/ |
|
convert myth mpg's to core media player (Centro/Treo) format http://forums.linhes.org/viewtopic.php?f=11&t=19596 |
Page 1 of 1 |
Author: | abigailsweetashoney [ Wed Feb 25, 2009 9:54 pm ] |
Post subject: | convert myth mpg's to core media player (Centro/Treo) format |
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] |
Author: | graysky [ Thu Feb 26, 2009 4:08 pm ] |
Post subject: | |
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. |
Author: | manicmike [ Thu Feb 26, 2009 5:31 pm ] |
Post subject: | |
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 |
Author: | abigailsweetashoney [ Sat Feb 28, 2009 11:19 am ] |
Post subject: | |
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 $@ |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |