[FFmpeg-trac] #2127(FFmpeg:new): -- does not separate options and arguments before

FFmpeg trac at avcodec.org
Wed Jan 9 14:37:59 CET 2013


#2127: -- does not separate options and arguments before
--------------------------------+--------------------------------------
             Reporter:  phihag  |                     Type:  defect
               Status:  new     |                 Priority:  normal
            Component:  FFmpeg  |                  Version:  git-master
             Keywords:          |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+--------------------------------------
 To convert the file -dash.mp4 to -dash.mp3, ffmpeg 0.11 allowed

 {{{
 % ffmpeg -i -dash.mp3 -- -dash.mp4
 }}}

 In ffmpeg 1.1 (and git 4765f635387cef3efb01e52e59d4f3add126a0e2 ), this
 fails:

 {{{
 % ffmpeg -i -dash.mp3 -- -dash.mp4
 ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
   built on Jan  8 2013 10:32:41 with gcc 4.7 (Debian 4.7.2-5)
   configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-
 ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-
 libmp3lame --enable-gpl --enable-nonfree --disable-decoder=libdirac
 --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid
 --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora
 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264
 --enable-libspeex --enable-nonfree --disable-stripping --enable-
 libschroedinger --disable-encoder=libschroedinger --enable-version3
 --enable-libopenjpeg --enable-libvpx --enable-librtmp --enable-avfilter
 --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb
 --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64
 -linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-
 gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus
 --enable-fontconfig --enable-libdc1394 --disable-altive  libavutil
 52. 13.100 / 52. 13.100
   libavcodec     54. 86.100 / 54. 86.100
   libavformat    54. 59.106 / 54. 59.106
   libavdevice    54.  3.102 / 54.  3.102
   libavfilter     3. 32.100 /  3. 32.100
   libswscale      2.  1.103 /  2.  1.103
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  2.100 / 52.  2.100
 Unrecognized option '-'.
 Error splitting the argument list: Option not found
 }}}

 While it is possible to escape file names by prepending ./, doing is
 nontrivial in a script, since one has to consider absolute filenames as
 well. The -- convention is widely supported, not only by ffmpeg-0.11, but
 also GNU coreutils, bash, gcc, etc.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2127>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list