av_ff_common: use mcache
[dtas.git] / lib / dtas / source / av.rb
blobdcebcfd4d5970fe5482d151b4a3fa3b5e081964b
1 # Copyright (C) all contributors <dtas-all@nongnu.org>
2 # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
3 # frozen_string_literal: true
4 require_relative '../../dtas'
5 require_relative 'av_ff_common'
7 # this is usually one input file
8 class DTAS::Source::Av # :nodoc:
9   include DTAS::Source::AvFfCommon
11   AV_DEFAULTS = COMMAND_DEFAULTS.merge(
12     "command" =>
13       'avconv -v error $SSPOS $PROBE -i "$INFILE" $AMAP -f sox - |' \
14       'sox -p $SOXFMT - $TRIMFX $RGFX',
16     "tryorder" => 2,
17   )
19   def initialize
20     command_init(AV_DEFAULTS)
21     @mcache = nil
22     @av_ff_probe = "avprobe"
23   end
25   def source_defaults
26     AV_DEFAULTS
27   end
28 end