Bug#632922: Fails to extract audio from file whose name begins with hyphen

2011-07-06 Thread Rogério Brito
Hi, Matt. 2011/7/7 Matt Kraai : > And it doesn't work.  The path to the file generated by ffmpeg also > needs to be escaped.  I verified that the attached patch does work. Yes, escaped in more than one place. > I'm happy to license the patch under the public domain.  Is this email > sufficient?

Bug#632922: Fails to extract audio from file whose name begins with hyphen

2011-07-06 Thread Matt Kraai
tag 632922 patch thanks On Wed, Jul 06, 2011 at 11:28:50PM -0300, Rogério Brito wrote: > Hi, Matt. > > 2011/7/6 Matt Kraai : > > On Wed, Jul 06, 2011 at 11:20:57PM -0300, Rogério Brito wrote: > >> Yes, the fix is probably simple, depending on how ffprobe/ffmpeg > >> parses the command line (with

Bug#632922: Fails to extract audio from file whose name begins with hyphen

2011-07-06 Thread Rogério Brito
Hi, Matt. 2011/7/6 Matt Kraai : > On Wed, Jul 06, 2011 at 11:20:57PM -0300, Rogério Brito wrote: >> Yes, the fix is probably simple, depending on how ffprobe/ffmpeg >> parses the command line (with -- or prefixing the filename with ./). > > I'm currently testing the attached fix. Oh, great. I thi

Bug#632922: Fails to extract audio from file whose name begins with hyphen

2011-07-06 Thread Matt Kraai
On Wed, Jul 06, 2011 at 11:20:57PM -0300, Rogério Brito wrote: > Hi, Matt. > > 2011/7/6 Matt Kraai : > > 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

Bug#632922: Fails to extract audio from file whose name begins with hyphen

2011-07-06 Thread Rogério Brito
Hi, Matt. 2011/7/6 Matt Kraai : > 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

Bug#632922: Fails to extract audio from file whose name begins with hyphen

2011-07-06 Thread Matt Kraai
Package: youtube-dl Version: 2011.02.25b-1 Hi, When I ran youtube-dl --extract-audio http://www.youtube.com/watch?v=-8PwoNXXE3M youtube-dl failed with the following error: WARNING: unable to obtain file audio codec with ffprobe I believe that this occurs because the file downloaded by youtu