<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Fixed it - Turns out it was a couple issues in the implementation of
TI's <font face="Times New Roman" size="3"><span
style="font-size: 12pt;">TIImgenc1 element.<br>
<br>
<br>
They spin up a separate JPEG encoding thread that takes frames from a
circular buffer populated by the chain routine, and then pushes encoded
frames onto the source pad. The encoded frames are stored in buffers
pulled from a buffTab. At the end of the loop, the encoded buffer's
"useMask" was not being set to zero (unused), rather it was being
&= with ~0x2. So, maybe something got out of sync with the flags,
not sure, but setting the useMask to zero made everything peachy.<br>
<br>
<br>
Also had issues with their setting of source caps each time a new frame
was encoded. Not sure why that didn't work, but removing the code
proved to move things along from a deadlock. Will revisit this one.<br>
<br>
Thanks for everyone's help!<br>
<br>
paul <br>
<br>
<br>
</span></font>Kapil Agrawal wrote:
<blockquote
cite="mid:CADK2-S4kFnpiE=17ZwpOOee7nuy10_GGX_MdLrXNi4yfWRwi0Q@mail.gmail.com"
type="cite">ah I guess I know the issue,<br>
most probably v4l2src is not copying the captured video in dm365 dmai
buffer, and that could be an issue. I dont recall it immediately, but
just a clue ?<br>
<br>
Best Luck<br>
Kapil<br>
<br>
<div class="gmail_quote">On Wed, Sep 14, 2011 at 11:00 PM, Paul
Stuart <span><<a moz-do-not-send="true"
href="mailto:paul_stuart@seektech.com">paul_stuart@seektech.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
Hello Kapil,<br>
Right you are!<br>
<br>
But...still doesn't work. I'm strongly suspecting TI's <font
face="Times New Roman" size="3"><span style="font-size: 12pt;">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:<br>
<br>
GST_ERROR_SYSTEM
gstelement.c:1761:gst_element_message_full:<tiimgenc10> posting
message: Failed to queue input buffer into circular buffer<br>
<br>
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 <br>
</span></font><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">circular buffer</span></font><br>
<font face="Times New Roman" size="3"><span style="font-size: 12pt;"><br>
<br>
So...digging deeper into </span></font><font face="Times New Roman"
size="3"><span style="font-size: 12pt;">TIImgenc1<br>
<br>
Thanks!<br>
<font color="#888888">Paul<br>
</font></span></font>
<div>
<div class="h5"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><br>
</span></font>Kapil Agrawal wrote:
<blockquote>Hello Paul,<br>
<br>
I think your pipeline should look like, added a queue after tee<br>
<br>
<font face="Times New Roman" size="3"><span
style="font-size: 12pt;">gst-launch
-v v4l2src always-copy=FALSE input-src=composite \<br>
! tee name= t \<br>
! queue<br>
! 'video/x-raw-yuv,width=(int)736,height=(int)480' \<br>
! tidisplaysink2 video-standard=vga display-output=lcd
mmap-buffer=FALSE
dma-copy=TRUE \<br>
t. \<br>
! queue \<br>
! 'video/x-raw-yuv,width=(int)736,height=(int)480' \<br>
! videorate \<br>
! TIImgenc1 iColorSpace=UYVY oColorSpace=YUV420P qValue=75
engineName=codecServer \<br>
! filesink location=output.jpg</span></font><br>
<br>
Regards<br>
Kapil<br>
<br>
-- <br>
<a moz-do-not-send="true"
href="http://www.mediamagictechnologies.com">www.mediamagictechnologies.com</a>
(Gstreamer, ffmpeg, Red5, Streaming)<br>
twitter handle: @gst_kaps<br>
<a moz-do-not-send="true"
href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>
</blockquote>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a moz-do-not-send="true"
href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</blockquote>
</div>
<br>
<br>
<br>
-- <br>
<a moz-do-not-send="true"
href="http://www.linkedin.com/in/kapilagrawal">http://www.linkedin.com/in/kapilagrawal</a><br>
<a moz-do-not-send="true" href="http://www.mediamagictechnologies.com">www.mediamagictechnologies.com</a>
<br>
(Consultancy - Multimedia, Gstreamer, ffmpeg, Streaming for platforms-
linux, windows, TI, android)<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>