New submission from hlamer <dontharemailemailwithyourbugtracker>: ffmpeg should check input arguments at first, and only than do changes in the file system. I deleted my file when ocasionally executed ffmpeg instead of ffplay.
a...@a-desktop:~/code/extractpes$ ffmpeg thefile.avi FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 4 2010 12:35:30, gcc: 4.4.3 File 'thefile.avi' already exists. Overwrite ? [y/N] y <I habitually say 'YES'> At least one input file must be specified a...@a-desktop:~/code/extractpes$ ls -l h264-sd-1.h264 -rw-r--r-- 1 a a 0 2010-11-23 11:28 h264-sd-1.h264 <zero length, ffmpeg deleted the file> Of course, it is my error, but, I think, I'm not only one user who can make it, so, it's better to overwrite file after arguments checking. ---------- messages: 12635 priority: normal status: open substatus: new title: Do not delete file, if arguments is invalid ________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/issue2375> ________________________________________________
