Module: FFMPEG
- Defined in:
- lib/ffmpeg/movie.rb,
lib/ffmpeg/errors.rb,
lib/ffmpeg/version.rb,
lib/streamio-ffmpeg.rb,
lib/ffmpeg/transcoder.rb,
lib/ffmpeg/encoding_options.rb
Defined Under Namespace
Classes: EncodingOptions, Error, Movie, Transcoder
Constant Summary collapse
- VERSION =
"2.0.4"
Class Method Summary collapse
-
.ffmpeg_binary ⇒ String
Get the path to the ffmpeg binary, defaulting to ‘ffmpeg’.
-
.ffmpeg_binary=(bin) ⇒ String
Set the path of the ffmpeg binary.
-
.logger ⇒ Logger
Get FFMPEG logger.
-
.logger=(log) ⇒ Logger
FFMPEG logs information about its progress when it’s transcoding.
Class Method Details
.ffmpeg_binary ⇒ String
Get the path to the ffmpeg binary, defaulting to ‘ffmpeg’
45 46 47 |
# File 'lib/streamio-ffmpeg.rb', line 45 def self.ffmpeg_binary @ffmpeg_binary || 'ffmpeg' end |
.ffmpeg_binary=(bin) ⇒ String
Set the path of the ffmpeg binary. Can be useful if you need to specify a path such as /usr/local/bin/ffmpeg
38 39 40 |
# File 'lib/streamio-ffmpeg.rb', line 38 def self.ffmpeg_binary=(bin) @ffmpeg_binary = bin end |
.logger ⇒ Logger
Get FFMPEG logger.
26 27 28 29 30 31 |
# File 'lib/streamio-ffmpeg.rb', line 26 def self.logger return @logger if @logger logger = Logger.new(STDOUT) logger.level = Logger::INFO @logger = logger end |
.logger=(log) ⇒ Logger
FFMPEG logs information about its progress when it’s transcoding. Jack in your own logger through this method if you wish to.
19 20 21 |
# File 'lib/streamio-ffmpeg.rb', line 19 def self.logger=(log) @logger = log end |