Everytime i cut a scene from a movie, it adds a few sec of the previous scene to it. i heard that it has sumthing to do with xvid n the keyframes but i converted to divx n it still doesnt work. does neone know how to fix the problem to cut "exactly" where i want the scene to be?
or mayb recommend another program that can split scene an avi or mpeg movie n have direct stream copy? thanks
+ Reply to Thread
Results 1 to 9 of 9
-
-
Using V/Nan-dub, if you want to cut at other than key frames then you must re-encode. Set the video to "full processing", select a compression type, cut your video where you like then save avi.
"Art is making something out of nothing and selling it." - Frank Zappa -
the problem with full processing is that i want it to be exact type from original, when i do full process, i usually get a very huge file or very bad quality or problems. is there a guide for settings for enconding?
-
Originally Posted by celtic_druid
My problem is simular to that of the original poster of this tread.
I have made clips out of episodes of a show that i like. And like everybody i have a problem with the keyframes. I have read the above link and a few other on how to cut in full procession mode. This seems like a good methode if you want to cut out a segment in the middle, but i only want to cut out the beginning.
Let me explain properly. The clips is 55 sec and the first 5 i want to remove. The next keyframe is in the middle of the scene i want to keep. I tried the full procession mode answer given in multiple treads, but that still leaves me with a few frames at the beginning that i don't want.
I also read in another tread that you can add keyframes using VDMod. (I use 1.5.10) If this is true, how do i do that. And will that give me the possibility to cut away the first 5 sec. And if this is not the way, do you know another way that i could cut away the first 5 sec.
Any help is much apreciated. -
Full processing mode you can cut on any frame. I'd suggest fast recompress though.
-
Thanks for the response!
How do i take out the first part in fast recompress mode?
The clips is:
K-D-D-D-D-D-K-D-D-D-D-D-K-D-D-D
and i want to cut out the first Key frame to the third Delta frame. I tried what is written in the post below, but i don't understand it well enough to get it to work.
Posted: Mar 16, 2006 20:53
--------------------------------------------------------------------------------
VirtualDub in Full Processing mode can cut on any frame. Of course, Full Processing mode will require that you reencode the video which you probably want to avoid. So use a combination of Direct Stream Copy and Full Processing mode.
Save from the start to the frame where you want to cut in Direct Stream Copy mode. Call this PART1.AVI.
>>> Does this mean 'from the start of the frame TO where you want to cut'? If so, how can i do that when i don't want any of the begin frames?
Save from the first keyframe after where you want to cut, to the end of the video in Direct Stream Copy mode. Call this PART0.AVI.
>>>Does this mean the first keyframe in the scene that i want to keep? Why do i need to do this, when i don't insert it later?
Reencode the section from where you cut to the first keyframe after (not including) it in Full Processing Mode. Be sure to use the same codec and settings. Call this PART3.AVI.
>>> Does this mean for me the very first keyframe of the scene to the next keyframe which is in the scene that i want to keep? And if so, do i understand right that i have to end with a delta frame? (the last deltaframe, before the keyframe)
Call the section you want to insert PART2.AVI.
>>>Which section is ment by this? The deltaframes before the keyframe in the scene i want to keep?
Put VirtualDub back in Direct Stream Copy mode. Open PART1.AVI. Append PART2.AVI (this will automatically append PART3.AVI and PART4.AVI). Finally, File -> Save As.
>>>I tried this and got an error saying: videostreams have different data formats. Why isn't PART0 used. Where does PART4 come from. Or is this an example for when i want to handle a larger file which might have more part i want to take out?
Full processing mode or fast recompress, how do i take the first keyframe and a few deltaframes out?
Jules -
Well i am a bit further then yesterday.
I have saved the clips in full compress mode and cut out the first part. Resaved the part that i want to keep in full compression mode.
Then i clicked the box in the 'open file' (ctrl-o) window that says: Ask for extended options after this dialog. And in the next window i clicked on the option: Force video format FOURCC code to
This is where i put in DivX 6.1.1 Codex, like it says in File Information on correct clips. I have saved this in direct copy.
Now in the new correct file the Video -Decompression is correct and the Audio Compression is correct, but VirtualDubMod still wont join the new correct file with another file (which has not been altered)
When i check the File Information everything is the same in Audio. There is only a difference in Video. FourCC in the good file is XVID Xvid MPEG-4 and in the altered one: DivX
And in the good file the data rate is 1907 kbps (0.25% overhead) and in the altered file it is: 50688 kbps (0.01% overhead)
So i figured out the keyframes, my question is, how do i convert back so i can join the two files? -
I know this is an older post however it's subject is of great impotance to some and is yet not completelly solved, so here's what i've found so far.
First of all, sorry for my poor grammar, i'm not a native speeker.
Second, bear in mind this is a loooong and very detailed guide, don't complain for i can't make it shorted.
I make use of only one program for editing and one codec, it makes things easier. Program is vdubmod and codec varies ( this guide applies to divx and maybe other mpeg4 codecs with xvid the most difficult to work with, i explain in the bottom). I also make use of Gspot for informational purposes.
Assuming you have the file episode.avi and you want to cut severall seconds, let me guess about 100-120sec from a point 20 or more secs from the start (let's call it the opening credits - intro, shall we?), and you also want to cut about 60-80secs from the end of the file (now that would be ending credits - outro, right?).
You start like this, open episode.avi with vdobmod and select the part you want from the start of the file until the point where you want to delete, the selection should be within the limits of keyframes for the starting point of the selection but doesn't matter where it ends.
(For the ones who don't know, basically without technical stuff, keyframes would be the parts of video where you can navigate with Shift + <- or -> [Left or Right Arrow]).
Ok now, when you have selected the desired area Save As part1.avi (and make sure you use direct stream copy here).
For the second half now when the intro has ended,
select the first non keyframe/navigatable frame from where you want the video to begin and using Shift + -> the first next to it keyframe [right here is POINT X]. [Read again until you undestand this, i can't make it sound simpler].
Save as, this time use full proc. mode and choose (THIS IS IMPORTAND),EXACTLY the same codec and version as the one that made the original compression/encoding. Save it as part2.avi.
Open part1.avi (automatically closes episode.avi), then APPEND the file part2.avi and last APPEND the file episode.avi. Go when the two first files (part1+2) end and the episode.avi starts and select its first frame (a keyframe for sure), then navigate with Shift + -> until you find POINT X, when you find it and selected it, DELETE the selected area.
Now the file should play in a linear state starting from Part1 - moving to part2 and then to episode without any indication that an intro has ever been there.
If there is an outro you want cutted out as well is very easy to do so from this point on. Select from the start of the selection of files until the point where the outro starts (it doesn't have to be keyframe).
"Save As" this selection of files as the actual title of the episode (for this is the last edit you'll do for that file).
NOTES:
To find out what codec to use in part2.avi open the episode.avi file with the program Gspot, it can tell you whitch codec uses and it's version. (I must note here that if you encode with a wrong codec vdubmod won't accept the part2.avi file as compatible with part1.avi or episode.avi so it won't cooperate in joining them altogether).
When the codec is divx it's easy to make the part2.avi. Just use the default settings of the codec and "Save As" it in full proc. mode. I believe versions above the version 4 of divx don't mind in using the up to date codec (divx 6) in making the part2.avi, however when the version of divx is the older fast or slow motion codecs, use the same compressor (div3 or div4).
For Xvid it's more difficult to make out what version the codec used to make the first movie (episode.avi) actually is. Gspot presents you with an serial number in User Data / Metadata tab such as XviD0009 or XviD0041 or XviD0043. Those apply into severall versions of xvid.
Taken from a doom9's Forum (http://forum.doom9.org/showthread.php?p=796113)
Quote:
Originally Posted by Sergejack
Where can I find a table where I could know what internal code (like XVID0039 for instance) refers to what version of the encoder ?
0037=XviD 1.02
0037=XviD 1.03
0038=XviD 1.1 Beta 1
0039=XviD 1.1 Beta 2
0040=XviD 1.1 CVS
0041=XviD 1.1 Final
0042=XviD 1.2.-127
0043=Xvid 1.2 SMP
Sometimes i have had compatibillity with older versions of xvid with newer ones and in some cases 0009 versions linked with files presenting 0043 metadata, but that doen't happen always and i don't really know when it does.
http://ronald.vslcatena.nl/docs/xvidfaq.html - This is an interesting link whitch i didn't have the time of exploring, but reffers to xvid and says allllot about it. Maybe there's something about compatibillity problems there.
If anyone wants to add someting here please be my guest.
I hope this guide helped you perfectionist guys. Cya arround.-Good Things Come to Those Who Wait-
Similar Threads
-
Virtualdub and cutting precisely
By silverwolf0 in forum Newbie / General discussionsReplies: 16Last Post: 2nd Jun 2023, 05:39 -
need help cutting and joining avi files in virtualdub
By granturissimus in forum EditingReplies: 3Last Post: 31st Jan 2011, 02:53 -
I have an issue with cutting a portion of an avi file.
By darksniper in forum EditingReplies: 4Last Post: 9th Oct 2009, 20:23 -
AVIDemux 2.4.1 cutting audio or maybe video sync issue
By ColdFusion2 in forum LinuxReplies: 9Last Post: 11th Sep 2008, 10:27 -
Is there not something better than virtualdub for divx cutting?
By pondleaping in forum EditingReplies: 23Last Post: 5th Jun 2007, 11:45