On Thu, May 13, 2004 at 09:22:38AM +0930, Jonathan Woithe wrote:
> > 
> >     And as another chap mentioned - there's the "mpgjoin" program 
> >     from mpgtx.sourceforge.net that might do what  you want.
> 
> I checked this out at the time but there were comments on the website that
> made me believe that perhaps this program wouldn't fix the problem for me
> completely.  Since I needed something which definitely did the right thing
> and because time was short, I ended up writing my own little program to do
> the splicing of the m2v streams.  It's not the fastest thing in the world
> (slowed mainly by the quick and dirty (some would say nieve) bitstream IO
> routines) but it works and got the job done.  As it goes it spits out the
> timecodes at the joins for use later as chapter marks.
> 
> If there's interest I could make the source available via my website.
> 
> Anyway, having done the joining of the m2v streams, the bitrate spikes
> disappeared and the intermittant freezes of the hardware player at the
> splice points no longer occurs.  Fast forward and rewind across the joins
> now also works which is nice.

Jonathan,

I have written a simple Python library for editing and joining of Mpeg-2
Elementary Streams.

It is frame-accurate, but only re-encodes the GOPs that are edited.  
Therefore it is fairly fast.  It uses mpeg2dec and mpeg2enc distributed 
by the mjpeg project.  It also allows the extraction of single frames as 
Python Imaging Library (PIL) objects.

Get the tarball here: 
http://mlug.missouri.edu/~markrages/software/python_mpeg

You may also be interested in my gop_fixup program to adjust timestamps. 
The new version works with "large files" (> 2GB) and reads the framerate
from the file.  Same website.

Regards,
Mark
[EMAIL PROTECTED]
-- 
To invent, you need a good imagination and a pile of junk. -Thomas Edison


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to