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
| | # Copyright (C) all contributors <dtas-all@nongnu.org>
# License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
# frozen_string_literal: true
require_relative '../../dtas'
require_relative 'av_ff_common'
# ffmpeg support
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 - $TRIMFX $RGFX',
"tryorder" => 1,
)
def initialize
command_init(FF_DEFAULTS)
@mcache = nil
@av_ff_probe = "ffprobe"
end
def source_defaults
FF_DEFAULTS
end
end
|