[gst-devel] segmentation fault with ffenc_mpeg2video under gstreamer

Mark Nauwelaerts manauw at skynet.be
Sat Feb 3 11:25:59 CET 2007


Wim Taymans wrote:
> On Thu, 2007-02-01 at 19:43 +0530, Gajel Kumar wrote:
>> hi
>> When i try to to set up a pipeline to encode raw video to mpeg2 using
>> ffenc_mpeg2video i am getting segmentation fault.
>> Are these following pipelines correct?
>>
>>  I first covert a mpeg video to raw video data using pipeline 
>> "gst-launch filesrc location=/test.mpg ! decodbin ! filesink
>> location=/test.raw"
> 
> This will discard all of the frame information such as the colorspace
> and dimensions.
> 
>> And then i use the raw data to convert it to the mpeg2 video using
>> pipeline
>> "gst-launch filesrc location=/test.raw ! ffmpegcolorspace !
>> ffenc_mpeg2video ! filesink location=/test1.mpv" 
> 
> Feeding random data into the encoder (colorspace converter) should make
> it fail with a negotiation error.
> 
>> The first one works fine,
>> but second one gives segmentation fault.
> 
> That would be a bug that needs fixing.

This has been put into http://bugzilla.gnome.org/show_bug.cgi?id=403739,
along with a patch.

>> And when i try to install the bad plugins from source after
>> doing ./configure it displays 
>> a list of plugins  containing  mpeg2enc, faac,faad etc , that those
>> plugins can't be build. Can anyone please tell me on what
>> external libraries it depends. Or is there any alternative way to
>> install those bad plugins. 
>> Looking forward for your help.
> 
> you'll need:
> 
>  - libmpeg2-dev
>  - libfaac-dev
>  - libfaad-dev
> 
> Also the REQUIREMENTS file lists the libs and versions you need along
> with where you can get them.

mjpegtools http://mjpeg.sourceforge.net/ (e.g. for mpeg2enc) is not listed in
there.  Also, the stock mjpegtools 1.8 tarball has a bug; it does not install
the header file mpeg2syntaxcodes.h into <mjpeg_include>/mpeg2enc.
The plugin mpeg2enc will only be built if this file has been put in there,
either manually or by some distro correction.

Mark.

> Wim
> 
>> Warm Regards
>> Gajel Kumar 
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier.
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 




More information about the gstreamer-devel mailing list