about summary refs log tree commit homepage
path: root/lib/dtas/source/av.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-01 00:07:47 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-01 00:07:47 +0000
commit51180db62b4c91e2f55ee5d553a210e8effbb17f (patch)
tree9a354201c5d04f87c7f64d479b9bf8702a94d464 /lib/dtas/source/av.rb
parent452629b6ea57664f46a21854a87e941f1a5db812 (diff)
downloaddtas-51180db62b4c91e2f55ee5d553a210e8effbb17f.tar.gz
Some containers (e.g. large VOBs) are not easily probed and require
additional options for avprobe/ffprobe to find audio streams.  We do
this by looping and increasing the duration/size of the probe to
find new audio streams.

This seems to work reasonably well for some DVD rips I have until
seeking is required.  This breaks if the seek point (including seeks
for source effects) exceeds the avprobe/ffprobe -analyzeduration.

Anyways, I recommend extracting the audio stream (without
transcoding) out of the VOB container as the best way to go.
Something like:

  avconv -analyzeduration 2G -probesize 2G \
    -i input.vob -vn -sn -c:a copy -map 0:$STREAM_NR output.ext
Diffstat (limited to 'lib/dtas/source/av.rb')
-rw-r--r--lib/dtas/source/av.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/source/av.rb b/lib/dtas/source/av.rb
index d44b1a9..e03c89d 100644
--- a/lib/dtas/source/av.rb
+++ b/lib/dtas/source/av.rb
@@ -9,7 +9,7 @@ class DTAS::Source::Av # :nodoc:
 
   AV_DEFAULTS = COMMAND_DEFAULTS.merge(
     "command" =>
-      'avconv -v error $SSPOS -i "$INFILE" $AMAP -f sox - |' \
+      'avconv -v error $SSPOS $PROBE -i "$INFILE" $AMAP -f sox - |' \
       'sox -p $SOXFMT - $RGFX',
 
     # this is above ffmpeg because this av is the Debian default and