<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </span></font>We
need to simultaneously capture/preview video on a TI DM365 while asynchronously
taking JPEG stills from the same video stream. Playing around with
gst-launch, it only seems to work correctly when v4l2src num-buffers=1. Sample
working pipeline:<o:p></o:p></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>gst-launch
-v v4l2src num-buffers=1 always-copy=FALSE input-src=composite \<br>
! TIVidResize contiguousInputFrame=TRUE \<br>
! 'video/x-raw-yuv,width=(int)736,height=(int)480' \<br>
! queue \<br>
! TIImgenc1 iColorSpace=UYVY oColorSpace=YUV420P qValue=75
engineName=codecServer \<br>
! queue \<br>
! filesink location=output.jpg<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>If I
modify the above to remove num-buffers=1, or even just set num-buffers=2, it
hangs and never produces a valid JPEG. I would have expected it to just
overwrite output.jpg<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>If, I
change this to something that is, for instance, previewing the video at the
same time, things break as well. Sample Pipeline:<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>gst-launch
-v v4l2src always-copy=FALSE input-src=composite \<br>
! queue \<br>
! tee name= t \<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<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Is it
possible to create a gstreamer pipeline using “standard” parts to
accomplish what I need, or will I need to modify my JPEG encoder element to
make this work? <o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Thanks!<o:p></o:p></span></font></p>
<p><font size=3 face="Times New Roman"><span style='font-size:12.0pt'>Paul<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
</body>
</html>