GithubHelp home page GithubHelp logo

bulldogger21 / mp4-to-mobile-video Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 84 KB

Uses ffmpeg to convert files from MP4 to mobile video format.

Home Page: http://www.urbanpuddle.com/articles/2008/06/30/a-mp4-to-psp-ruby-script

mp4-to-mobile-video's Introduction

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..

mp4-to-mobile-video's People

Contributors

vince avatar

Stargazers

Angus H. avatar  avatar

Watchers

 avatar  avatar

Forkers

mikes123store

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.