Sha256: 8a938597ad00070fb37f72b8e2ee26e2395c2e79aba0f75011165189bdb18938

Contents?: true

Size: 419 Bytes

Versions: 30

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'
require 'ehbrs_ruby_utils/videos/stream'

module Ehbrs
  module Videos
    class Track < ::SimpleDelegator
      def extra
        ffprobe_data.fetch(:codec_tag_string).to_s
      end

      def to_s
        "[#{codec_type}(#{index}): #{codec_name}/#{language || '-'}" +
          extra.if_present('') { |v| " | #{v}" } + ']'
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ehbrs-tools-0.38.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.37.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.36.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.35.1 lib/ehbrs/videos/track.rb
ehbrs-tools-0.35.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.34.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.33.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.32.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.31.1 lib/ehbrs/videos/track.rb
ehbrs-tools-0.31.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.30.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.29.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.28.3 lib/ehbrs/videos/track.rb
ehbrs-tools-0.28.2 lib/ehbrs/videos/track.rb
ehbrs-tools-0.28.1 lib/ehbrs/videos/track.rb
ehbrs-tools-0.28.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.27.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.26.0 lib/ehbrs/videos/track.rb
ehbrs-tools-0.25.1 lib/ehbrs/videos/track.rb
ehbrs-tools-0.25.0 lib/ehbrs/videos/track.rb