View Full Version : open-source simple MPEG2 encoder
I'm looking for source code for a simple MPEG2 encoder to turn a bmp file into a single I-frame. The only part I need is the I-frame encoding (intra-frame, no prediction) so I'm looking to extract it from an open source encoder.
Can you guys point me to a "simple" (i.e. well structured so I can extract the I-frame encoding segment) open source encoder?
Jeanl
EDIT: I forgot to add, I'm looking into an MPEG2 encoder...
fccHandler
6th May 2005, 02:18
"Simple" and "MPEG-2" is a contradiction in terms. :p
The encoding process was never described by MPEG, only the decoding process. Thus MPEG encoders are free to use any methods (even proprietary), as long as the output from the encoder is a valid MPEG stream.
MSSG did release sample binaries and source code for an MPEG-2 "codec" (i.e., coder and decoder), which is fairly well-documented. You can download it here (http://www.mpeg.org/MPEG/MSSG/#source). I guess it's about as "simple" as it can be, because it's just straightforward old-fashioned C code (no classes, ASM, MMX).
I experimented with the MSSG encoder once, but I wasn't too happy with its quality. There is a lot of room for improvement! In any case it does present a working example of how to get the job done.
Thanks! I'll look into it. Note that quality isn't really an issue. I'm just looking into encoding a bitmap into a single I-frame, it's OK if there's a bit of degradation (I would expect that!), and I can afford to use a fairly large I-frame...
Jeanl
Enots_
25th May 2005, 13:46
TM5/MSSG is open source and simple in most meanings of the word. Give it the right settings and it'd produce the I-Frame you need.
http://www.mpeg.org
jeanl
25th May 2005, 17:28
Thanks!
jeanl
mrslacker
10th June 2005, 06:34
There's always the ffmpeg codec.... all 3200 lines of it.
On cvsweb. (http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/ffmpeg/libavcodec/mpeg12.c?rev=1.239&content-type=text/x-cvsweb-markup&cvsroot=FFMpeg)
The decompressors are in there too.
jeanl
10th June 2005, 07:42
yes, I was hoping for something simpler! ;)
jeanl
dragongodz
10th June 2005, 08:05
you could probably look at how dvdauthorgui does it
http://www.videohelp.com/~liquid217/dvdauthorgui.pl
it uses mpeg2enc from mjpegtools for the m2v stills creation.
themadmax
4th October 2005, 12:55
Me I'm looking for a "easy" GNU encoder MPEG2 library for Windows. I find:
- ffvfw but this codec don't work in MPEG2.
- libavcodec, but I don't found documentation to use it.
- mpeg2enc working under linux
Think, If you can help me
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.