Sha256: 1a214d5a066c13eb339fa0aa9e113088e0bde91b8c78b663b4f2292a668866d8

Contents?: true

Size: 800 Bytes

Versions: 5

Compression:

Stored size: 800 Bytes

Contents

# Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
# License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt)
require_relative '../../dtas'
require_relative 'av_ff_common'

# ffmpeg support
# note: only tested with the compatibility wrapper in the Debian 7.0 package
# (so still using avconv/avprobe)
class DTAS::Source::Ff  # :nodoc:
  include DTAS::Source::AvFfCommon

  FF_DEFAULTS = COMMAND_DEFAULTS.merge(
    "command" =>
      'ffmpeg -v error $SSPOS $PROBE -i "$INFILE" $AMAP -f sox - |' \
      'sox -p $SOXFMT - $RGFX',

    # I haven't tested this much since av is in Debian stable and ff is not
    "tryorder" => 2,
  )

  def initialize
    command_init(FF_DEFAULTS)
    @av_ff_probe = "ffprobe"
  end

  def source_defaults
    FF_DEFAULTS
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dtas-0.7.0 lib/dtas/source/ff.rb
dtas-0.6.0 lib/dtas/source/ff.rb
dtas-0.5.0 lib/dtas/source/ff.rb
dtas-0.4.0 lib/dtas/source/ff.rb
dtas-0.3.0 lib/dtas/source/ff.rb