Hej Luc ! Consider having a look at the mjpeg-tools on mjpeg.sf.net - they provide the thing you need; you can make mpeg2dec decode the stream and output it to YUV4MPEG format, and then pipe it to mpeg2enc to encode it into a new MPEG2 with the required parameters.
I don't know how the whole thing works under Windows; but it should be easy to compile & run it under the Cygwin environment in Windows - (... öh ... am I right ? ;) ) Servus, Gernot ---------- Forwarded message ---------- Date: Wed, 15 Jan 2003 14:13:11 -0500 From: Luc Raymond <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [mpeg2-dev] Please help!! New user Hi everybody.. Downloaded the great libmpeg2, but I would need some direction to get me started. I want to make a re-encoding mpg2 util, which will take a mpg2 movie and reencode it with a new bitrate. I know libmpeg2 doesnt do any mpeg2 encoding, but I downloaded the codec from www.mpeg.org Right now, I managed to get the encoder working. But the encoder doesnt take any movie as input, you must supply your images in .ppm format. What I want to do, is to copy the buffer of the libmpeg2 decoder to the mpeg2 encoder . The mpeg2 encoder is working with 4:2:2,4:2:0, or 4:4:4 YUV format. I'm not an YUV expert, but is there any buffer containing YUV data (in libmpeg2) that I could use? Any help or info would be appreciated.. thanks Details: - Platform Win32 - C++ (borland or msvc) ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en _______________________________________________ Libmpeg2-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users