public
Description: Uses ffmpeg to convert files from MP4 to mobile video format.
Homepage: http://www.urbanpuddle.com/articles/2008/06/30/a-mp4-to-psp-ruby-script
Clone URL: git://github.com/vince/mp4-to-mobile-video.git
commit  5c2a4971c77e6dd7bac06d559d8586905affdb6e
tree    d7d3bee7684b7504788b9efc9d6788ce2747a4b7
parent  1e48a4b04cc63a969d5c96ff477aadb36ca7d1f1
name age message
file README Loading commit data...
file vid2go.rb
README
This is a simple ruby script to convert MP4 files into a format that's usable for the PSP and other mobile devices.  
Once converted, the files are copied to a directory in the user's home (~/Movies/Mobile/Video).  After checking out the 
code you should run chmod +x on the file and invoke it simply with vid2go.rb file_name1 file_name2.  

Authors: Lou Scoras, Vince Wadhwani

October 24, 2008:  Extended the script to accept 2 arguments:

-psp will format the video for use on the PSP. This also creates the Thumbnail
-htcg1 will format the video for us on many mobile phones. Only tested on the G1 though

Example usage: vid2go.rb -htcg1 video_name.m4v

The code is also pretty expandable at this point so if anyone has any devices they want to add feel free to do that on 
your own.

WARNING: If you're running this on Ubuntu you may need to change the codecs used.  Try h264 instead of libx264 and aac 
instead of libfaac. At some point I may try automating detection..