How to capture a still image while previewing live video?

Paul Stuart paul_stuart at seektech.com
Wed Sep 14 10:30:29 PDT 2011


Hello Kapil,
 Right you are!

But...still doesn't work. I'm strongly suspecting TI's TIImgenc1 
implementation at this point. Looking at the source code for it, it 
looks like it *should* work, as they've implemented a circular buffer 
system to buffer incoming and outgoing buffers. When I turn logging on, 
I see the following snippet:

 GST_ERROR_SYSTEM 
gstelement.c:1761:gst_element_message_full:<tiimgenc10> posting message: 
Failed to queue input buffer into circular buffer

0:06:58.383303446  2220    0xfabc0 INFO        GST_ERROR_SYSTEM 
gstelement.c:1784:gst_element_message_full:<tiimgenc10> posted error 
message: Failed to queue input buffer into
circular buffer


So...digging deeper into TIImgenc1

Thanks!
Paul

Kapil Agrawal wrote:
> Hello Paul,
>
> I think your pipeline should look like, added a queue after tee
>
> gst-launch -v v4l2src always-copy=FALSE  input-src=composite \
> ! tee name= t \
> ! queue
> ! 'video/x-raw-yuv,width=(int)736,height=(int)480' \
> ! tidisplaysink2 video-standard=vga display-output=lcd 
> mmap-buffer=FALSE dma-copy=TRUE \
> t. \
> ! queue \
> ! 'video/x-raw-yuv,width=(int)736,height=(int)480' \
> ! videorate \
> ! TIImgenc1  iColorSpace=UYVY oColorSpace=YUV420P qValue=75 
> engineName=codecServer \
> ! filesink location=output.jpg
>
> Regards
> Kapil
>
> -- 
> www.mediamagictechnologies.com <http://www.mediamagictechnologies.com> 
> (Gstreamer, ffmpeg, Red5, Streaming)
> twitter handle: @gst_kaps
> http://www.linkedin.com/in/kapilagrawal

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110914/e1200091/attachment.htm>


More information about the gstreamer-devel mailing list