Ask Your Question
0

gscam core dumped with ximagesrc

asked 2013-07-26 00:51:48 -0600

Enric gravatar image

updated 2013-07-26 23:14:47 -0600

Hi,

I want to use gscam for capturing a window image. First, I have perfomed a simple test with:

$ export GSCAM_CONFIG="videotestsrc ! video/x-raw-rgb,framerate=5/1 ! ffmpegcolorspace"

And it works nicely. So I have set:

$ export GSCAM_CONFIG="ximagesrc xname=TurtleSim ! video/x-raw-rgb,framerate=5/1 ! ffmpegcolorspace"

But it fails :

Segmentation fault (core dumped)

It seems to be the std::copy from the buffer to the image.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-07-26 23:12:33 -0600

Enric gravatar image

updated 2013-07-26 23:24:26 -0600

I have figured it out a little bit.

It turns out that gray images do work, with this config:

GSCAM_CONFIG="ximagesrc xname=TurtleSim ! autoconvert ! video/x-raw-gray,framerate=1/1 "

and running gscam in MONO8 mode.

My guess is that the output format from ximagesrc is 32bpp whereas gscam expects 24bpp, so the buffer is overrun.

I haven't been able to make a conversion in the pipeline, but anyway gray images are fine :-)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-07-26 00:51:48 -0600

Seen: 194 times

Last updated: Jul 26 '13