Skip to content

meanphil/ffruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFruby is a Ruby interface to FFmpeg’s libavformat and libavcodec. It allows you to query metadata from a wide variety of media files through some simple classes. FFmpeg’s libraries are required and also the development headers if building.

We are hosted by RubyForge at rubyforge.org/projects/ffruby.

It should be available through RubyGems as ffruby. Failing that, try RubyForge.

I still start FFmpeg through a subshell when I need to transcode something. There is little to be gained from doing this within Ruby itself. Other than requiring a fair amount of work, one major disadvantage is that if FFmpeg segfaults (which it has been known to do), it will bring the entire Ruby process down with it, which is probably something you want to avoid.

Being able to reliably read the source file’s metadata is very important in deciding how it should be transcoded, or whether it even needs to be transcoded at all. This is not something you want to rely on a subshell for as that would involve awkward parsing of FFmpeg’s output, which does change between versions.

  • Reworked class structure under common FFruby module.

  • Compatibility with old and new FFmpeg versions.

  • Methods to query supported formats and codecs.

  • Safer memory handling.

  • RDoc documentation.

  • Repackaged using Jeweler.

  • More or less the same original version. Latter was the initial gem release.

  • James Le Cuirot <chewi@aura-online.co.uk>

Copyright © 2007-2010 James Le Cuirot. See LICENSE for details.

About

Fork of original ffruby gem from http://ffruby.rubyforge.org

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors