dtas.git  about / heads / tags
duct tape audio suite for *nix
blob b8e6f6bc500ec4ae13e6df3205adfd55c918c39f 820 bytes (raw)
$ git show v0.2.0:lib/dtas/source/ff.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
# -*- encoding: binary -*-
# 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 -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

git clone git://80x24.org/dtas.git
git clone https://80x24.org/dtas.git