Possible buffering issue

dayunbao dayunbao at gmail.com
Tue Jun 6 17:28:48 UTC 2017


Hi everyone,

Here's the pipeline I'm using:

v4l2src -> videorate -> queue -> identity -> jpegenc -> queue -> jifmux ->
multifilesink

The pipeline is taking a picture once a second, and then does the following
two things:

1) when the identity's handoff signal fires, it sends the data to another
process (via a socket) for some processing of the image, and 

2) also writes the images to disk as jpegs. 

The images that are written to disk are fine, but there seems to be an issue
with the data being sent over the socket.  I get images like the one below
quite often.  It seems that I'm not always getting all the data from the
buffer (even though I'm verifying that the proper amount of data is being
sent and received on both ends of the socket), although I'm not totally sure
that's the issue.  I'm using OpenCV to display the data sent over the socket
as an image, by the way.  In case you're wondering, what you're seeing in
the top of the picture are two comics tacked to a wall.  The colors are all
out of wack, but I'm not too worried about that right now.

I realize there are a lot of places where things could go wrong in my
program, but I'm trying to narrow them down.  Is there something I can do
with my pipeline to make sure I'm getting all the data, and that it  isn't
being overwritten as I'm trying to read it?  I recently added the first
queue in the pipeline, thinking that maybe that would help, but it didn't.

Thanks!

<http://gstreamer-devel.966125.n4.nabble.com/file/n4683213/problemImage.png> 



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Possible-buffering-issue-tp4683213.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list