Much base work started
This commit is contained in:
12
app/services/video_metadata_extractor.rb
Normal file
12
app/services/video_metadata_extractor.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class VideoMetadataExtractor
|
||||
def initialize(file_path)
|
||||
@file_path = file_path
|
||||
@transcoder = VideoTranscoder.new
|
||||
end
|
||||
|
||||
def extract
|
||||
return {} unless File.exist?(@file_path)
|
||||
|
||||
@transcoder.extract_metadata(@file_path)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user