tags:

views:

197

answers:

1

Hi,

I am trying to split a large AVI 2.0 (OpenDML format) file in smaller parts (under 1GB in my case) in order to be able to open the parts with VFW (avifil32.dll).

What is the best way to achieve this splitting (preferably in C#)?

I could of course copy it frame by frame like in some examples I found on the net but most examples use VFW which can't read files above 2GB (and AVI 2.0 files above 1GB because of the max RIFF part size of 1GB). I would need DirectShow instead of VFW. I am pretty sure that I would also mess up the audio sync if I try to manually copy frames.

I am looking for something similar to what VirtualDub does with "direct stream copy" that doesn't affect the current compression, just splits the file and creates proper AVI indexes.

Thanks, Vlad

A: 

mencoder can split files for you. Another option is ffmpeg

John Paulett
Thanks, but I meant doing it in code, not an external application.
Vlad