Sha256: 0434cfcff19963e2dab41c2997bf13dde19cba11c4f2ecfdc135ff171dad817d

Contents?: true

Size: 418 Bytes

Versions: 10

Compression:

Stored size: 418 Bytes

Contents

module Ffprober
  class Stream
    attr_reader :codec_name, :codec_long_name, :codec_type,
                :codec_time_base, :codec_tag_string, :codec_tag,
                :r_frame_rate, :avg_frame_rate,
                :time_base, :start_time, :duration,
                :nb_frames

    def initialize(object_attribute_hash)
      object_attribute_hash.each {|k,v| instance_variable_set("@#{k}",v)}
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ffprober-0.3.7 lib/ffprober/stream.rb
ffprober-0.3.6 lib/ffprober/stream.rb
ffprober-0.3.5 lib/ffprober/stream.rb
ffprober-0.3.4 lib/ffprober/stream.rb
ffprober-0.3.3 lib/ffprober/stream.rb
ffprober-0.3.2 lib/ffprober/stream.rb
ffprober-0.3.1 lib/ffprober/stream.rb
ffprober-0.3.0 lib/ffprober/stream.rb
ffprober-0.2.3 lib/ffprober/stream.rb
ffprober-0.2.2 lib/ffprober/stream.rb