Sha256: bba3c992b830e42a8b23145041e3a72fea0cafcae95a5ec6d12db5d9acd60f22

Contents?: true

Size: 647 Bytes

Versions: 3

Compression:

Stored size: 647 Bytes

Contents

# frozen_string_literal: true

require 'ehbrs_ruby_utils/videos/container'
require 'eac_ruby_base0/core_ext'
require 'eac_ruby_utils/yaml'

module Ehbrs
  class Runner
    class Videos
      class Probe
        runner_with :help, :output do
          desc 'FFProbe em um arquivo de vĂ­deo.'
          pos_arg :file_path
        end

        def run
          run_output
        end

        def output_content
          ::EacRubyUtils::Yaml.dump(container_file.probe_data)
        end

        private

        def container_file_uncached
          ::EhbrsRubyUtils::Videos::Container.new(parsed.file_path)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ehbrs-tools-0.23.0 lib/ehbrs/runner/videos/probe.rb
ehbrs-tools-0.22.0 lib/ehbrs/runner/videos/probe.rb
ehbrs-tools-0.21.0 lib/ehbrs/runner/videos/probe.rb