No description or website provided.
Ruby
Pull request Compare This branch is 23 commits ahead of mendicant-original:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
test
.rvmrc.example
README.md
Rakefile
SUBMISSION_GUIDELINES.md

README.md

FFMPEG WRAPPER

Ruby wrapper around ffmpeg CLI for video conversion

RUBY API

For simple format conversions, simply specify the input and output filenames:

FFMpeg.convert("input.flv", "output.mov")

To control the output, pass an options hash:

FFMpeg.convert("input.flv", "output.mp4", :offset => 5)

Currently, the only option supported is offset. :)

DEPENDENCIES

  • ffmpeg binary in your PATH

CUSTOM FFMPEG

If you do not have an ffmpeg binary in your path, you can set the FFMPEG environment variable to the full path to ffmpeg:

export FFMPEG=/opt/custom/bin/ffmpeg

INCLUDED UTILITIES

  • ffmpeg-resync : shift the audio track of a movie file forward or backward

usage:

ffmpeg-resync 5 nsync.mov

This will push the audio track five seconds forward and write the result to nsync-fixed.mov