Class: MediaInformationGatherer::FFMPEG
- Inherits:
-
Object
- Object
- MediaInformationGatherer::FFMPEG
- Defined in:
- lib/mig/modules/ffmpeg.rb
Defined Under Namespace
Classes: Movie
Constant Summary collapse
- DEFAULT_EXECUTABLE_PATH =
'ffmpeg'
Instance Method Summary collapse
-
#initialize(options = { }) ⇒ FFMPEG
constructor
A new instance of FFMPEG.
- #run(file_path, options = { }) ⇒ Object
Constructor Details
#initialize(options = { }) ⇒ FFMPEG
Returns a new instance of FFMPEG.
211 212 213 |
# File 'lib/mig/modules/ffmpeg.rb', line 211 def initialize( = { }) @ffmpeg_cmd_path = .fetch(:ffmpeg_cmd_path, 'ffmpeg') end |
Instance Method Details
#run(file_path, options = { }) ⇒ Object
218 219 220 221 |
# File 'lib/mig/modules/ffmpeg.rb', line 218 def run(file_path, = { }) = { :ffmpeg_cmd_path => @ffmpeg_cmd_path }.merge() Movie.new(file_path, ).to_hash end |