Class: FFmpegCore::Configuration
- Inherits:
-
Object
- Object
- FFmpegCore::Configuration
- Defined in:
- lib/ffmpeg_core/configuration.rb
Overview
Configuration for FFmpegCore library
Instance Attribute Summary collapse
-
#ffmpeg_binary ⇒ Object
Returns the value of attribute ffmpeg_binary.
-
#ffprobe_binary ⇒ Object
Returns the value of attribute ffprobe_binary.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
- #encoders ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 |
# File 'lib/ffmpeg_core/configuration.rb', line 12 def initialize @ffmpeg_binary = detect_binary("ffmpeg") @ffprobe_binary = detect_binary("ffprobe") @timeout = 30 # seconds end |
Instance Attribute Details
#ffmpeg_binary ⇒ Object
Returns the value of attribute ffmpeg_binary.
10 11 12 |
# File 'lib/ffmpeg_core/configuration.rb', line 10 def ffmpeg_binary @ffmpeg_binary end |
#ffprobe_binary ⇒ Object
Returns the value of attribute ffprobe_binary.
10 11 12 |
# File 'lib/ffmpeg_core/configuration.rb', line 10 def ffprobe_binary @ffprobe_binary end |
#timeout ⇒ Object
Returns the value of attribute timeout.
10 11 12 |
# File 'lib/ffmpeg_core/configuration.rb', line 10 def timeout @timeout end |
Instance Method Details
#encoders ⇒ Object
18 19 20 |
# File 'lib/ffmpeg_core/configuration.rb', line 18 def encoders @encoders ||= detect_encoders end |