PDA

View Full Version : split avi file


Dark-Cracker
16th February 2003, 21:39
hi,

how could i split a .avi file ? how to detect if it an keyframe and how to get the size of each frame ?

if someone could help me :)
an exemple of code will be great :) of course better in visual basic :) :).

thank u bye.

jonny
17th February 2003, 11:22
how to detect if it an keyframe and how to get the size of each frame ?

If you encode with VDubMod (latest cvs release) you can specify "/logfile" as command line option.
A log file will be generated in the current dir (vdenc.log) containing the info you need.

I dunno if this fits your needs.
If not, you should probably go to read the avi, frame by frame (in this case avs2avi or VDub/VDubMod source can help you).

Cheers
jonny

Dark-Cracker
17th February 2003, 18:13
hi,

thank u perhaps use this way but in fact i want to try to improve the split i *wanted* to create a gui who calculate the splitkeyframe , exemple select the input .avi file, select .mp3 file (vbr or abr) and enter the desired splitsize, and it will make a loop for add the video frame + audio frame and prompt u once he have found the keyframe, a bit slow but the best accurate.

unhappyly my knowledge in c are to limited to do this :)

N1trosp1ll
21st February 2003, 19:08
sorry wrong post:D

alexnoe
25th February 2003, 11:01
The index of the AVI file contains all you need

jonny
25th February 2003, 11:19
Is there any easy docs about the avi binary format (to bypass vfw)?

alexnoe
25th February 2003, 11:38
www.wotsit.org,

or have a look into the source code of AVI-Mux GUI. It doesn't use vfw either

jonny
25th February 2003, 18:25
Thank you very much!

Funny, doing some research i've found the same document (AVI Graphics Format Overview FAQ [John F. McGowan]) and finally the most interesting docs: "OpenDML AVI File Format Extensions"

I'll look for sure in the AVI-Mux GUI source (it's always better to cut off ms-vfw stuffs where is possible)

alexnoe
25th February 2003, 18:26
Note that the currently uploaded source code is not exactly the most current one.

Use this one: http://www-user.tu-chemnitz.de/~noe/Video-Zeug/AVIMux%20GUI/Pre-release/AVIMux_GUI-src.zip

jonny
26th February 2003, 11:47
many thanks :)