Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#671 closed enhancement (fixed)

Skip without prompting.

Reported by: dE_logics Owned by: Michael Niedermayer
Priority: wish Component: ffmpeg
Version: git-master Keywords:
Cc: de.techno@gmail.com Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

Keywords: skip without asking removed
Resolution: fixed
Status: newclosed

I added option "-n" which implements not overwriting existing output files.

comment:2 by dE_logics, 12 years ago

Thanks for the fix!

Note: See TracTickets for help on using tickets.