summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/PostProcessor.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-07-31 21:22:08 +0200
committerJaime Marquínez Ferrándiz <[email protected]>2013-07-31 21:22:08 +0200
commit4aa16a50f57a566f4ead63db261c194af2034a96 (patch)
tree9a51f4edee0b99854bdc8e80473f8c9ac737fc49 /youtube_dl/PostProcessor.py
parentbbcbf4d459fa4cbd489193bc9921d455438be047 (diff)
downloadyoutube-dl-4aa16a50f57a566f4ead63db261c194af2034a96.tar.gz
youtube-dl-4aa16a50f57a566f4ead63db261c194af2034a96.zip
Log a better error message if ffprobe or avconv are not found (related #1134)
Diffstat (limited to 'youtube_dl/PostProcessor.py')
-rw-r--r--youtube_dl/PostProcessor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/PostProcessor.py b/youtube_dl/PostProcessor.py
index 4f0a165ba..fddf58606 100644
--- a/youtube_dl/PostProcessor.py
+++ b/youtube_dl/PostProcessor.py
@@ -100,7 +100,8 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
self._nopostoverwrites = nopostoverwrites
def get_audio_codec(self, path):
- if not self._exes['ffprobe'] and not self._exes['avprobe']: return None
+ if not self._exes['ffprobe'] and not self._exes['avprobe']:
+ raise PostProcessingError(u'ffprobe or avprobe not found. Please install one.')
try:
cmd = [self._exes['avprobe'] or self._exes['ffprobe'], '-show_streams', encodeFilename(self._ffmpeg_filename_argument(path))]
handle = subprocess.Popen(cmd, stderr=compat_subprocess_get_DEVNULL(), stdout=subprocess.PIPE)