deletion after completion

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
prom
Posts: 2
Joined: Fri Nov 19, 2021 9:44 am

deletion after completion

Post by prom »

Hi,

First of all, please excuse my english, it's not my native language...

I'd like to know if this is possible to delete a file once encoding is done/finished.

I'll explain : I have some folders with multiple videos I'd like to resize/normalize. I've set Handbrake to add a "-1" after the filename. But if I want toqueue all videos of these folders, I will have to erase all the source files one by one.

example in one folder with one video I want to edit :

folder > video.mp4
after editing: folder > video.mp4 + video-1.mp4

I know handbrake can do several tasks after encoding is done, but is it possible to tell him to delete the source file if everything went fine ???

thanks in advance ... :)
Woodstock
Veteran User
Posts: 4619
Joined: Tue Aug 27, 2013 6:39 am

Re: deletion after completion

Post by Woodstock »

Handbrake does not have this capability built in, and the developers have said it will NOT be getting it, due to how dangerous it is.

You can write scripts for the Command Line Interface to automate this.
Deleted User 11865

Re: deletion after completion

Post by Deleted User 11865 »

If you use the command-line interface, this can be easily automated though (using the shell's built-in functionality).
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: deletion after completion

Post by s55 »

I would be careful.

A 0 (Successful) error code does not always mean the encodes good. It just means no problems were detected. Folks have been caught out by this before.

The reverse is also true. It's possible to get error codes back for good files.

While it may be fine for you, something to be cautious about.
prom
Posts: 2
Joined: Fri Nov 19, 2021 9:44 am

Re: deletion after completion

Post by prom »

ok I understand this point of view ... thanks for answering !
Post Reply