You could calculate the duration of the MPEG file. There should be routines out there to read the header or first frame of the file and calculate the duration. I did this myself a couple of years ago.
Assuming it has a fixed bitrate, you could calculate the positions in the file based on the desired start time and end time and copy this portion into a new file. You will likely need to find the next frame boundary at the start and end times before copying. I believe all frames in MPEG videos start with #0#0#1#$B8 Ross. ----- Original Message ----- From: "Riaan Stander" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, July 19, 2005 9:55 PM Subject: Delphi & mpeg Hi all I have a project where I've got a very big (6GB) mpeg video file where I need to export sections out of. The user inputs the start & end of the sections (seconds or frames). My software then have to export these sections into new mpeg files leaving the original as it is. I've downloaded a few trials, but none of them looks like it does what I need. Some don't allow me to debug the demo, thus I can't try it out. Googling always seem to come up with the same ones that I've tried already. Does any of you know of a way, components, or some links I can look at. Thanks, Riaan Stander _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

