| Printable Version of Topic
Click here to view this topic in its original format |
| Unofficial VirtualDub Support Forums > Newbie Questions > Cannot Change Key Frames |
| Posted by: cloudy3841 Sep 1 2014, 07:40 PM |
| When trying to compress to xvid, it shows a place to change key frames. video has a current key frame size of 300. Would like to change to 20 or 30 or even 50. to be able to edit out unwanted frames but 300 is too many But if I change key frame size to 20 or 50, when I save video it, the resulting video has key frame size of 300. I must be doing something wrong, since there is a place to change the size of the key frames. |
| Posted by: Abrazo Sep 1 2014, 08:37 PM |
| I did a test with the latest version of the Xvid codec (1.3.3). (downloaded from http://downloads.xvid.org/downloads/Xvid-1.3.3-20140407.exe) In VirtualDub, via the Video-menu > Compression > Xvid MPEG4 Codec > Configure > at Quality preset = General purpose, click the "more..." button > confirm by clicking "Yes" > in the "Motion"-tab, you can set the "Maximum I-frame interval". Set this to for exemple "25" and confirm by clicking OK, OK, OK. Now execute a test by creating a new resulting Xvid-video (File > Save as AVI...). Myself, I can confirm that in that resulting video the maximum key frame interval is 25 (or less). REMARK: In VirtualDub, via the Video-menu > Compression..., you have got the "Select video compression"-dialogbox with an option (checkbox) to set "Force key frames every xx frames", but I doubt that this works. You should rather set this in the encoder settings itself (like explaned here above). |
| Posted by: dloneranger Sep 1 2014, 08:45 PM |
| It sounds like you want to chop parts out of a video using direct stream copy mode and know you are restricted to starting on keyframes You might not know that you can also use full compression mode with the 'smart rendering' option This only recompresses parts it needs to around the cut/s, and copies the rest in direct stream mode Effectively giving you the best of both worlds (you must set your compression codec to closely resemble the original files settings though) |
| Posted by: Abrazo Sep 1 2014, 09:00 PM |
| So, two different approaches to answer the question. Let us hope it helps. |
| Posted by: cloudy3841 Sep 1 2014, 10:17 PM |
| Wow, you guys are great. thanks alot. I've been having to deal with this for years. and didn't have enough sense to ask. |