Class: Seamus::File::Video
- Inherits:
-
File
- Object
- File
- Seamus::File::Video
- Includes:
- StandardAdditions, VideoInspector, VideoProcessor
- Defined in:
- lib/seamus/file/video.rb
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Video
constructor
A new instance of Video.
- #inspection_attributes ⇒ Object
Methods included from StandardAdditions
#[], #add_inspection_attributes, #attributes, #content_type, #md5, #md5_base64_encoded, #md5_digest, #size
Methods included from VideoProcessor
Methods included from VideoInspector
Constructor Details
#initialize(*args, &block) ⇒ Video
Returns a new instance of Video.
7 8 9 10 |
# File 'lib/seamus/file/video.rb', line 7 def initialize(*args, &block) super(*args, &block) create_methods_for inspector, :except => [:filename, :path, :full_filename, :raw_response, :raw_metadata, :ffmpeg_binary, :ffmpeg_binary=] end |
Instance Method Details
#inspection_attributes ⇒ Object
12 13 14 |
# File 'lib/seamus/file/video.rb', line 12 def inspection_attributes @inspection_attributes ||= [:valid?, :invalid?, :unknown_format?, :unreadable_file?, :audio?, :video?, :container, :raw_duration, :duration, :bitrate, :bitrate_units, :audio_bit_rate, :audio_stream, :audio_codec, :audio_sample_rate, :audio_sample_units, :audio_channels_string, :audio_channels, :audio_stream_id, :video_stream, :video_stream_id, :video_codec, :video_colorspace, :width, :height, :resolution, :fps] + standard_attributes end |