I've tried cutting my AVI file accurately in Virtual Dub, but it seems this can only be done at a keyframe (i get a second or two of video that I don't want). Is there a different program I could use to cut my AVI file at the desired frame? Note that I'm cutting a 3 minute segment that starts near the end of the movie, and the last frame of my cut will be the end of the entire movie. I've heard AVISynth can do this, but I thought it was only a frameserver? Also, like virtual dub, this program shouldn't re-encode or change the video stream (should be a direct stream), I just want a cut in the place where I tell it.
Thanks
+ Reply to Thread
Results 1 to 11 of 11
-
-
If you can run your AviSynth in Virtual Dub, use the Trim function for editing. Since AviSynth deeals in frames and not key frames, it does what I like to call "surgical editing". That is, right where you need it.
Hello. -
Great, sounds like what I need. Correct me if I'm wrong, but I should create a script file. Then I should load that script file as my movie, and save.
Where can I get a script for this operation (I'm new to the program).
WOW I tried my own script, and my 3 minute clip ballooned to 2 gigs! What the?! I made my avs file, then loaded it as the video in Virtual Dub, the preview played exactly what I wanted it to play. I changed the video to "direct stream copy", changed the framerate (yes in VDub because the rest of my clips were done in VDub, so I did this for compatibility). Then I saved it as a new file.
Here's what I put in my avs file:
AVISource("d:\AVP2\movie\clip1.avi")
Trim(79170,0)
Thanks -
Whoi says you did something wrong? Remember we use codecs to compress our video, so when we save it, our three minute video does not ballon to two gigs.
Seriously, though, you only need to decide how you are going to compress your video now. DivX is good for AVI.Hello. -
Whoi says you did something wrong? Remember we use codecs to compress our video, so when we save it, our three minute video does not ballon to two gigs.
Seriously, though, you only need to decide how you are going to compress your video now. DivX is good for AVI.
Oh yeah, and I forgot to mention... there was no video when I tried playing it back too, just a black/grey screen... -
If you dont want to re-encode you need to stick to keyframes in vdub. I asume this is what you want to do, use the direct stream copy for the video, right? You can only cut at keyframes when doing this, its logical if you consider it; you cannot start a video without a keyframe, and to make a non-keyframe into a keyframe you need to re-encode. If you want to use "surgical editing" then re-encoding is the only way. Re-encoding wil cause a small quality loss even at higher bitrates, so choose between quality loss or a few seconds of unwanted video in beginning and end of file.
-
Ok, that clears some things up. I was unaware that this process actually re-encodes. Now... how can I "re-encode" this, so I lose as little quality as possible. Also, I plan to merge this file with some other video streams that were edited in virtual dub (changed framerate, separated the audio). Will this end up causing any problems (the AVISynth process)?
Also... I still don't have picture in my video.?!?!
Thanks -
Should the keyframe time ("Keyframe Every XX seconds") match my source movie (for compatibility for when I rejoin my AVI files)? If so, is there a place where I can find the keyframe rate of my source movie? I'm looking in Virtual Dub, but I can't seem to find it.
-
To check for keyframe rate in Virtualdub, click on the Key next button, the one with symbol of a key and a forward arrow. See how many frames it moves each time, and you have the rate. Im not sure if it need to match, its no disadvantage if it do. The framerate need to match for sure, and maybe also codec and so on, havent tried this so i cant say for sure. Hope someone else can tell you what parameters need to be the same for joining and still use "direct stream copy", and i like to know also without having to try it myself =). I hope you will post your experiences when you finished this project of yours.
-
Boy do I have a bunch of experiences with this, especially since I'm new to the
DivX->VCD thing.
Thor300, your tips about the re-encode really helped.
TommyKnocker, your tips about AVISynth made this easy for me.
It appears the keyframes made no difference, I've successfully joined all 3 AVI files. I used Gspot to check the codec, and used that codec to compress in Virtual Dub, I cranked up the bitrate, and adjusted some of the smoothness. I now have the file, perfectly cut where I want it. There is some quality loss, but it is only brief blockiness on a closeup shot, and its barely noticeable.
Thanks to all who have helped. Lookout for me in the audio section for posts... as I try to take my 3 AVI files, and merge it with 2 WAV audio tracks... in synch, lol!
Similar Threads
-
How can I ACCURATELY split/cut a video file?
By KushSmoka420 in forum EditingReplies: 5Last Post: 2nd Mar 2012, 14:16 -
Splitting/cutting/joining MP4 accurately...
By The.King in forum EditingReplies: 2Last Post: 2nd Nov 2011, 12:35 -
How to accurately synchronize a subtitle file with another
By scept in forum SubtitleReplies: 5Last Post: 24th Oct 2010, 07:08 -
How to cut ASF file accurately ?
By mahogany in forum Newbie / General discussionsReplies: 2Last Post: 3rd Jan 2010, 11:31 -
What video player to view videos accurately?
By ayim in forum Newbie / General discussionsReplies: 3Last Post: 20th Dec 2009, 10:06