Sha256: 4085aef63e55dd8c197e7b02ed6964420c28455fbc782ef884fc3fa1c95e8a8a

Contents?: true

Size: 486 Bytes

Versions: 12

Compression:

Stored size: 486 Bytes

Contents

module Ffprober
  class Stream
    attr_accessor :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.map do |(k, v)|
        writer_m = "#{k}="
        send(writer_m, v) if respond_to?(writer_m)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ffprober-0.2.1 lib/ffprober/stream.rb
ffprober-0.2.0 lib/ffprober/stream.rb
ffprober-0.1.7 lib/ffprober/stream.rb
ffprober-0.1.6 lib/ffprober/stream.rb
ffprober-0.1.5 lib/ffprober/stream.rb
ffprober-0.1.4 lib/ffprober/stream.rb
ffprober-0.1.3 lib/ffprober/stream.rb
ffprober-0.1.2 lib/ffprober/stream.rb
ffprober-0.1.1 lib/ffprober/stream.rb
ffprober-0.1.0 lib/ffprober/stream.rb
ffprober-0.0.2 lib/ffprober/stream.rb
ffprober-0.0.1 lib/ffprober/stream.rb