SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    The Jellophonic Autobrain CHeeSeBLiND's Avatar
    Join Date
    Jul 2001
    Location
    Bolton, England
    Posts
    584
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Rails ands Video Conversion

    Does anyone have any tips regarding converting movie files into flv files using rails?

    I've achieved this before using PHP and ffmpeg but I was wondering if there were any plugins that might be handy or any tutorials?
    hmm...

  2. #2
    SitePoint Evangelist
    Join Date
    Apr 2006
    Location
    Halifax, Canada
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ffmpeg is a command-line application, and the PHP extension is just a wrapper for the command-line application. Since ruby can execute external programs (I forget the exact code at the moment, but it may be exec?) You can find ffmpeg's command line options.. ffmpeg --help should list these options.
    Paul Butler.org
    JSSpamBlock - Reduce WordPress spam.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    # executes the command, prints to stdxxx
    system "command here"

    # executes the command and returns the output in a string
    result = `command here`

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    ffmpeg and flvtool2 are what you want to look up.

    I'd seriously consider doing this as an "offline" process though, separate from your Rails app, since a big video could take a very long time to convert.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •