about summary refs log tree commit homepage
path: root/lib/dtas/source/ff.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/ff.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/ff.rb')
-rw-r--r--lib/dtas/source/ff.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/source/ff.rb b/lib/dtas/source/ff.rb
index fa4bbf7..9f1cffc 100644
--- a/lib/dtas/source/ff.rb
+++ b/lib/dtas/source/ff.rb
@@ -11,7 +11,7 @@ class DTAS::Source::Ff  # :nodoc:
 
   FF_DEFAULTS = COMMAND_DEFAULTS.merge(
     "command" =>
-      'ffmpeg -v error $SSPOS -i "$INFILE" $AMAP -f sox - |' \
+      'ffmpeg -v error $SSPOS $PROBE -i "$INFILE" $AMAP -f sox - |' \
       'sox -p $SOXFMT - $RGFX',
 
     # I haven't tested this much since av is in Debian stable and ff is not