After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319851 - mpeg2enc codec compile error
mpeg2enc codec compile error
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.8.11
Other All
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-26 13:35 UTC by YunSong Hwang
Modified: 2006-01-13 11:27 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description YunSong Hwang 2005-10-26 13:35:46 UTC
Please describe the problem:
root@localhost mpeg2enc]# make
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -
I../..    -I/usr/include/mjpegtools -I/usr/include/mjpegtools/mpeg2enc -I/usr/
include/mjpegtools/mplex   -I../../gst-libs -I../../gst-libs -D_LARGEFILE_SOURCE
 -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.8 -I/usr/include/
glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DGST_DISABLE_
DEPRECATED  -Wall -O2 -g -march=i386  -MT libgstmpeg2enc_la-gstmpeg2encoder.lo -
MD -MP -MF ".deps/libgstmpeg2enc_la-gstmpeg2encoder.Tpo" -c -o libgstmpeg2enc_la
-gstmpeg2encoder.lo `test -f 'gstmpeg2encoder.cc' || echo './'`gstmpeg2encoder.
cc; \
then mv -f ".deps/libgstmpeg2enc_la-gstmpeg2encoder.Tpo" ".deps/libgstmpeg2enc_
la-gstmpeg2encoder.Plo"; else rm -f ".deps/libgstmpeg2enc_la-gstmpeg2encoder.Tpo
"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/mjpegtools -I/usr/include/
mjpegtools/mpeg2enc -I/usr/include/mjpegtools/mplex -I../../gst-libs -I../../gst
-libs -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/
gstreamer-0.8 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include
/libxml2 -DGST_DISABLE_DEPRECATED -Wall -O2 -g -march=i386 -MT libgstmpeg2enc_la
-gstmpeg2encoder.lo -MD -MP -MF .deps/libgstmpeg2enc_la-gstmpeg2encoder.Tpo -c 
gstmpeg2encoder.cc  -fPIC -DPIC -o.libs/libgstmpeg2enc_la-gstmpeg2encoder.o
gstmpeg2encoder.cc: In constructor `GstMpeg2Encoder::GstMpeg2Encoder(GstMpeg2
EncOptions*, GstPad*, const GstCaps*, GstPad*)':
gstmpeg2encoder.cc:50: error: cannot allocate an object of type `GstMpeg2
EncStreamWriter'
gstmpeg2encoder.cc:50: error:   because the following virtual functions are 
abstract:
/usr/include/mjpegtools/mpeg2enc/elemstrmwriter.hh:33: error:  virtual void 
ElemStrmWriter::WriteOutBufferUpto(const uint8_t*, uint32_t)
/usr/include/mjpegtools/mpeg2enc/elemstrmwriter.hh:36: error:  virtual uint64_t 
ElemStrmWriter::BitCount()
gstmpeg2encoder.cc:54: error: `MPEG2Coder' has not been declared
gstmpeg2encoder.cc:59: error: no matching function for call to `SeqEncoder::
SeqEncoder(EncoderParams&, PictureReader&, Quantizer&, ElemStrmWriter&, MPEG2
CodingBuf&, RateCtl&)'
/usr/include/mjpegtools/mpeg2enc/seqencoder.hh:38: note: candidates are: 
SeqEncoder::SeqEncoder(const SeqEncoder&)
/usr/include/mjpegtools/mpeg2enc/seqencoder.hh:45: note:                 
SeqEncoder::SeqEncoder(EncoderParams&, PictureReader&, Quantizer&, 
ElemStrmWriter&, RateCtl&)
gstmpeg2encoder.cc: In member function `void GstMpeg2Encoder::encodePicture()':
gstmpeg2encoder.cc:74: error: 'class SeqEncoder' has no member named 'Encode'
make: *** [libgstmpeg2enc_la-gstmpeg2encoder.lo] 오류 1

I use mjpegtools-1.8.0


Steps to reproduce:
1. 
2. 
3. 



Actual results:



Expected results:



Does this happen every time?



Other information:
Comment 1 Andy Wingo 2006-01-13 11:27:19 UTC
Hi,

This bug is in unmaintained code. To skip building of mpeg2enc, you can build with --disable-mpeg2enc. Otherwise to encode mpeg2, you can use ffmpeg. Otherwise if you want to fix this problem the proper place to do it is in gst-plugins-bad.