Class: ActiveStorage::HotCell::Client::Analyzers::Video
- Inherits:
-
Analyzer
- Object
- Analyzer
- ActiveStorage::HotCell::Client::Analyzers::Video
- Includes:
- Analyzing
- Defined in:
- lib/active_storage/hot_cell/client/analyzers/video.rb,
lib/active_storage/hot_cell/client/analyzers/video/ffprobe.rb
Overview
Rails' VideoAnalyzer shells out to ffprobe inside the application process. Moving ffprobe into a cell means this has to move with it, or an application that adopts hotcell still analyzes media in its own process and cannot take ffprobe out of its image — the incomplete move for exactly the media type a cell exists to isolate.
Rails' exact video keys, sliced from the cell's superset. The cell already applied the rotation swap and the anamorphic correction.
Defined Under Namespace
Classes: Ffprobe
Constant Summary collapse
- KEYS =
%i[ width height duration angle display_aspect_ratio audio video ].freeze
- FFprobe =
Ffprobe
Class Method Summary collapse
Methods included from Analyzing
Class Method Details
.accept?(blob) ⇒ Boolean
24 25 26 |
# File 'lib/active_storage/hot_cell/client/analyzers/video.rb', line 24 def self.accept?(blob) blob.video? end |