From 51180db62b4c91e2f55ee5d553a210e8effbb17f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 1 Sep 2013 00:07:47 +0000 Subject: source/{av,ff}: probe harder for audio in weird containers 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 --- lib/dtas/source/ff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas/source/ff.rb') 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 -- cgit v1.2.3-24-ge0c7