Sha256: c3456f6c1e49c97612a2d59ee317f7293f6735d128203bf0fee0fb1264791b2d

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

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

module Ehbrs
  module Tools
    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::File.new(parsed.file_path)
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ehbrs-tools-0.43.1 lib/ehbrs/tools/runner/videos/probe.rb
ehbrs-tools-0.43.0 lib/ehbrs/tools/runner/videos/probe.rb
ehbrs-tools-0.42.0 lib/ehbrs/tools/runner/videos/probe.rb
ehbrs-tools-0.39.1 lib/ehbrs/tools/runner/videos/probe.rb