On Wed, Jul 06, 2011 at 11:20:57PM -0300, Rogério Brito wrote: > Hi, Matt. > > 2011/7/6 Matt Kraai <kr...@ftbfs.org>: > > I believe that this occurs because the file downloaded by youtube-dl > > is -8PwoNXXE3M.flv so ffprobe interprets the file name as an option. > > Yes, the fix is probably simple, depending on how ffprobe/ffmpeg > parses the command line (with -- or prefixing the filename with ./). > > I will see if upstream has something on the way or I will fix that myself. > > Thanks for reporting it.
I'm currently testing the attached fix. -- Matt Kraai https://ftbfs.org/kraai
Index: youtube-dl-2011.02.25b/youtube-dl =================================================================== --- youtube-dl-2011.02.25b.orig/youtube-dl 2011-07-06 19:11:39.000000000 -0700 +++ youtube-dl-2011.02.25b/youtube-dl 2011-07-06 19:14:31.000000000 -0700 @@ -2620,6 +2620,8 @@ @staticmethod def get_audio_codec(path): try: + if path.startswith('-'): + path = os.path.join('.', path) handle = subprocess.Popen(['ffprobe', '-show_streams', path], stderr=file(os.path.devnull, 'w'), stdout=subprocess.PIPE) output = handle.communicate()[0]