# Copyright (C) 2013-2016 all contributors # License: GPL-3.0+ # frozen_string_literal: true require_relative '../../dtas' require_relative 'av_ff_common' # this is usually one input file class DTAS::Source::Av # :nodoc: include DTAS::Source::AvFfCommon AV_DEFAULTS = COMMAND_DEFAULTS.merge( "command" => 'avconv -v error $SSPOS $PROBE -i "$INFILE" $AMAP -f sox - |' \ 'sox -p $SOXFMT - $TRIMFX $RGFX', # this is above ffmpeg because this av is the Debian default and # it's easier for me to test av than ff "tryorder" => 1, ) def initialize command_init(AV_DEFAULTS) @av_ff_probe = "avprobe" end def source_defaults AV_DEFAULTS end end