Class: DTAS::Source::Av

Inherits:
Object
  • Object
show all
Includes:
AvFfCommon
Defined in:
lib/dtas/source/av.rb

Overview

this is usually one input file

Constant Summary collapse

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,
)

Constants included from AvFfCommon

DTAS::Source::AvFfCommon::AV_FF_TRYORDER

Constants included from File

File::FILE_SIVS, File::SRC_SIVS

Constants included from Process

Process::PIDS

Constants included from Command

Command::COMMAND_DEFAULTS

Instance Attribute Summary

Attributes included from AvFfCommon

#duration, #format, #precision

Attributes included from File

#infile, #offset, #tryorder

Attributes included from Common

#dst, #dst_zero_byte, #requeued

Attributes included from Command

#command, #env, #pid, #spawn_at, #to_io

Instance Method Summary collapse

Methods included from AvFfCommon

#__parse_astream, #amap_fallback, #av_ff_ok?, #av_ff_trimfx, #probe_ok?, #samples, #select_astream, #src_spawn, #sspos, #to_hsh, #try

Methods included from XS

#xs

Methods included from File

#__file_init, #__offset_samples, #comments, #cuebreakpoints, #load!, #offset_samples, #offset_us, #replaygain, #samples!, #source_file_dup, #to_hash, #to_source_cat, #to_state_hash, #trimfx

Methods included from Mp3gain

#__mp3gain_peak, #mp3gain_comments

Methods included from Process

#dtas_spawn, #env_expand, #env_expand_ary, #env_expand_i, #qx, reaper

Methods included from DTAS::SpawnFix

#spawn

Methods included from Common

#dst_assoc

Methods included from Command

#command_init, #command_string, #on_death

Methods included from DTAS::Serialize

#ivars_to_hash

Constructor Details

#initializeAv

Returns a new instance of Av.


21
22
23
24
# File 'lib/dtas/source/av.rb', line 21

def initialize
  command_init(AV_DEFAULTS)
  @av_ff_probe = "avprobe"
end

Instance Method Details

#source_defaultsObject


26
27
28
# File 'lib/dtas/source/av.rb', line 26

def source_defaults
  AV_DEFAULTS
end