[FFmpeg-trac] #2091(undetermined:new): ffmpeg can easily overwrite lots of video files
FFmpeg
trac at avcodec.org
Tue Jan 1 13:23:13 CET 2013
#2091: ffmpeg can easily overwrite lots of video files
-------------------------------------+-------------------------------------
Reporter: forthrin | Type: defect
Status: new | Priority: important
Component: | Version: 1.0.1
undetermined | Blocked By:
Keywords: | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
A moment thoughtlessness with filename wildcards can cause ffmpeg to zero
out every single video files in the current directory, causing the user to
jump out the window or what have you.
How to reproduce:
{{{
% ffmpeg -i *.mkv ... output.mp4
}}}
*.mkv is expanded to a long list of files, and evidently all of these
files (except the first one) are considered to be output files by ffmpeg.
They are zeroed out at least.
Possible solutions:
a) Let input files be specified simply by filename (without "-i") and the
output file explicitly by "-o".
b) Let all filenames following "-i" be considered to be input files
(except the last one, which would be the output file)
c) Simply exit ffmpeg if there are multiple output filenames (doesn't
ffmpeg only support one output file anyway?)
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2091>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list