Files
velour/app/services/video_metadata_extractor.rb
Dan Milne 88a906064f
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled
Much base work started
2025-10-31 14:36:14 +11:00

12 lines
243 B
Ruby

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