[FFmpeg-trac] #671(FFmpeg:new): Skip without prompting.

FFmpeg trac at avcodec.org
Sat Nov 19 09:55:34 CET 2011


#671: Skip without prompting.
-------------------------------------+-------------------------------------
               Reporter:  dE_logics  |                  Owner:  michael
                   Type:             |                 Status:  new
  enhancement                        |              Component:  FFmpeg
               Priority:  wish       |               Keywords:  skip
                Version:  git-       |  without asking
  master                             |               Blocking:
             Blocked By:             |  Analyzed by developer:  0
Reproduced by developer:  0          |
-------------------------------------+-------------------------------------
 Like the y options, there should be another option to skip the file
 without prompting,

 e.g. if we already have a file named test.mp4, then the current behavior
 of ffmpeg is to ask if one should overwrite the file or not, I suggest,
 there should be an options -N which will skip the file instead of
 overwriting without prompting for it.

 sample command line -

 ffmpeg -i '/home/de/media_writeit!/temp(others)/commercials/Banned
 Commercials - Funny - Bowling.mpeg' -vf scale='trunc((240*a)/2)*2:240'
 -threads 16 -b:v 400k -r 25 -vcodec libxvid -aq 6 -acodec libmp3lame
 ~/test.avi
 ffmpeg version N-34962-gfd1cea6, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Nov 18 2011 21:52:45 with gcc 4.5.3
   configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc
 --disable-optimizations --disable-static --enable-gpl --enable-version3
 --enable-postproc --enable-avfilter --disable-stripping --disable-debug
 --disable-doc --disable-network --disable-vaapi --disable-vdpau --enable-
 libmp3lame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
 libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-
 libaacplus --enable-nonfree --enable-openal --disable-indev=v4l --disable-
 indev=v4l2 --disable-indev=oss --disable-indev=jack --enable-x11grab
 --disable-outdev=oss --enable-libfreetype --enable-pthreads --enable-
 libopencore-amrwb --enable-libopencore-amrnb --enable-libgsm --enable-
 libdirac --enable-libschroedinger --enable-libspeex --enable-libvpx
 --enable-libopenjpeg --disable-altivec --disable-avx --disable-ssse3
 --disable-vis --disable-neon --disable-iwmmxt --cpu=host --enable-
 hardcoded-tables
   libavutil    51. 26. 0 / 51. 26. 0
   libavcodec   53. 35. 0 / 53. 35. 0
   libavformat  53. 20. 0 / 53. 20. 0
   libavdevice  53.  4. 0 / 53.  4. 0
   libavfilter   2. 48. 1 /  2. 48. 1
   libswscale    2.  1. 0 /  2.  1. 0
   libpostproc  51.  2. 0 / 51.  2. 0
 [mpeg @ 0x1dbc400] max_analyze_duration 5000000 reached at 5000000
 Input #0, mpeg, from
 '/home/de/media_writeit!/temp(others)/commercials/Banned Commercials -
 Funny - Bowling.mpeg':
   Duration: 00:00:19.98, start: 0.135822, bitrate: 554 kb/s
     Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p, 320x240 [SAR 49:33 DAR
 196:99], 409 kb/s, 24 fps, 24 tbr, 90k tbn, 24 tbc
     Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16, 128 kb/s
 File '/home/de/test.avi' already exists. Overwrite ? [y/N]

 I know the existing bash workarounds, but GUI frontends like ffmpeg can't
 do that.

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


More information about the FFmpeg-trac mailing list