[FFmpeg-user] feature proposal - avoid overwriting the input file

Douglas Marsh ffmpeg at dx9s.net
Tue Oct 17 00:34:03 EEST 2017


On 2017-10-11 11:01, DopeLabs wrote:
> ffmpeg commands are all structured in a specific and standardized way
> 
> [...]
> 
> in your example
> 
>> $ ffmpeg -i input.mp4 [...] -yo output.mov
> 
> ffmpeg -i input.mp4 [..] output.mov
> 
> works just fine no need to add -y because .mov is a different filename
> 

I think you missed the point, but I see your point as well. I guess the 
question should have been worded differently. Should the "-y (global) 
Overwrite output files without asking." be enough? Or would there be a 
market for specifying single files? (-yo [explicitly state a single 
file]) ... Most people are not outputting more than one file (I am 
guessing) but for those that do output to several files, is it easier to 
just delete the files previous to encoding multiple outputs? Edge case 
would be two-pass (or more) encoding where first pass output is 
something like "-f mp4 /dev/null" where you get "do you want to 
overwrite /dev/null" (something to that effect).

Perhaps this is such a weird edge case that a global option and/or 
simply removing files previous to encoding is preferred. The 
'overwriting' /dev/null thing is a bit of an odd-duck (really 
edge-case).


--Doug (dx9s)





More information about the ffmpeg-user mailing list