You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often use ab-av1 auto-encode to process sets of short video files using a for loop. However, sometimes I'd like to stop the loop before it finishes and resume it later. If ab-av1 is in sampling mode when quitting the loop, this could easily be done with --enc n, which tells FFmpeg to not overwrite the output file. And even when stopping a final encoding process, I could continue by restarting the loop, as long as I remember to delete the incomplete output file prior.
However, ab-av1 currently disallows the use of the ffmpeg -n switch and it seems that -y is used at all times, with the result that output files are always overwritten.
The text was updated successfully, but these errors were encountered:
I think it would be best to control this with ab-av1 args rather than inner ffmpeg.
For explicitly named output i think overwriting is a reasonable behaviour. For auto-named outputs not as much. Perhaps they should be auto named to avoid overwrites e.g. appending a number of necessary. Ideally I'd like to avoid interactive prompts, like ffmpeg defaults to.
We could add an option --no-overwrite-output (or similar) that would check if the output file already exists and exit early with a distinct code if so.
I wonder how useful this is though. In your loop you'll perhaps need to check this exit code to distinguish from other errors. It may end up easier just checking if the output already exists in your script before calling ab-av1.
So maybe we should return success 0 code? That could make sense of the option was named something like --skip-if-output-exists.
Mine isn't a very elaborate use case. It's just a basic Bash loop written directly in the terminal, not even a script. So I don't really have preferences for return codes or such.
If the default behavior is going to be overwriting, then --no-overwrite-output would be a reasonable name.
I often use ab-av1 auto-encode to process sets of short video files using a for loop. However, sometimes I'd like to stop the loop before it finishes and resume it later. If ab-av1 is in sampling mode when quitting the loop, this could easily be done with
--enc n
, which tells FFmpeg to not overwrite the output file. And even when stopping a final encoding process, I could continue by restarting the loop, as long as I remember to delete the incomplete output file prior.However, ab-av1 currently disallows the use of the ffmpeg
-n
switch and it seems that-y
is used at all times, with the result that output files are always overwritten.The text was updated successfully, but these errors were encountered: