diff options
| author | Rogério Brito <rbrito@ime.usp.br> | 2011-02-26 10:09:18 -0300 |
|---|---|---|
| committer | Rogério Brito <rbrito@ime.usp.br> | 2011-02-26 10:09:18 -0300 |
| commit | a62db07f58675699c17aa1b00beca55ff1f42489 (patch) | |
| tree | e99e83cef16fce7e878157598c90588aeec16004 /youtube-dl | |
| parent | 854cad639eb15241fac85799277d49a94a83a099 (diff) | |
| parent | b58faab5e7e10c1b3f52342277098d97365825de (diff) | |
| download | hypervideo-pre-a62db07f58675699c17aa1b00beca55ff1f42489.tar.lz hypervideo-pre-a62db07f58675699c17aa1b00beca55ff1f42489.tar.xz hypervideo-pre-a62db07f58675699c17aa1b00beca55ff1f42489.zip | |
Merge branch 'master' into prefer-webm
Diffstat (limited to 'youtube-dl')
| -rwxr-xr-x | youtube-dl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube-dl b/youtube-dl index af6522bac..0c1209a04 100755 --- a/youtube-dl +++ b/youtube-dl @@ -2620,7 +2620,7 @@ class FFmpegExtractAudioPP(PostProcessor): @staticmethod def get_audio_codec(path): try: - handle = subprocess.Popen(['ffprobe', '-show_streams', path], + handle = subprocess.Popen(['ffprobe', '-show_streams', '--', path], stderr=file(os.path.devnull, 'w'), stdout=subprocess.PIPE) output = handle.communicate()[0] if handle.wait() != 0: @@ -2638,7 +2638,7 @@ class FFmpegExtractAudioPP(PostProcessor): @staticmethod def run_ffmpeg(path, out_path, codec, more_opts): try: - ret = subprocess.call(['ffmpeg', '-y', '-i', path, '-vn', '-acodec', codec] + more_opts + [out_path], + ret = subprocess.call(['ffmpeg', '-y', '-i', path, '-vn', '-acodec', codec] + more_opts + ['--', out_path], stdout=file(os.path.devnull, 'w'), stderr=subprocess.STDOUT) return (ret == 0) except (IOError, OSError): @@ -2723,7 +2723,7 @@ if __name__ == '__main__': # Parse command line parser = optparse.OptionParser( usage='Usage: %prog [options] url...', - version='2011.02.25b', + version='2011.02.25c', conflict_handler='resolve', ) |
