Class: MediaInfoNative::BaseStreamWithFramerate

Inherits:
BaseStream
  • Object
show all
Defined in:
lib/mediainfo-native/base_stream_with_framerate.rb,
ext/mediainfo_native/basestream.cpp

Direct Known Subclasses

OtherStream, VideoStream

Constant Summary

Constants inherited from BaseStream

MediaInfoNative::BaseStream::TYPES

Instance Method Summary collapse

Methods inherited from BaseStream

#stream_type

Methods included from AttrReaders

#mediainfo_attr_reader, #mediainfo_date_reader, #mediainfo_duration_reader, #mediainfo_int_reader, #supported_attribute, #supported_attributes

Instance Method Details

#fpsObject Also known as: framerate



4
5
6
# File 'lib/mediainfo-native/base_stream_with_framerate.rb', line 4

def fps
  frame_rate[/[\d.]+/].to_f if frame_rate
end