Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need a application to cut video files. I have tried some applications and they require me to save the cut video into a new file rather than overwriting the original file.

This is quite annoying because I won't regret cutting those junk part of a video and I wish to save it and overwrite it.

Any suggestion please?

share|improve this question
What platform is this for? – Clare Macrae Oct 21 '11 at 8:17
Windows xp....words limit... – lamwaiman1988 Oct 21 '11 at 8:43
I doubt that you are going to get a positive answer for this. – paradroid Oct 31 '11 at 3:25
Which programs did you try? If it is a free, open-source app, you can post a request to provide an option to do that. If it is a commercial app that you paid for, then you can post a request to provide an option to do that. – Synetech May 25 '12 at 17:40

When you are cutting a video, you are really just pointing how where you would like the new clip to start and stop - it doesn't actually create the new cut video file until you save it.

At this point, it reads the original video file, and writes a new one based on the cuts you have decided upon.

This is why you cannot overwrite the original, it is required during the saving process.

share|improve this answer
They should write a temp file for that, then overwrite the original one with the temp file, and delete the temp file. – lamwaiman1988 Oct 21 '11 at 6:02
@gunbuster363, yes they could do that, but since unlike text files, videos are large and re-acquiring them if you decide you did want it would be a big hassle, they leave the original file alone. Can you not simply move the new file and overwrite the original? – Synetech May 25 '12 at 17:38

If all you want is automating the process of replacing the file after its done, you could use any software you want that provides a line command (such as HandBrake) and use any shell script to do it for you. Being in windows, use a batch such as this:

handbrakecli ref=1:weightp=1:subq=2:rc-lookahead=10:trellis=0:8x8dct=0 -i %1.mp4 -o %1.tmp
del %1.mp4
ren %1.tmp %1.mp4
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .