<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div style="color: rgb(0, 0, 0); ">
<div>
<div><font class="Apple-style-span" face="Times New Roman"><span class="Apple-style-span" style="font-size: 16px; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"><br>
</span></font></div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div 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">
<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]-->
<div 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">&nbsp;&nbsp;</span></font>We need to simultaneously capture/preview video on a TI DM365 while asynchronously taking JPEG stills from the same video stream.&nbsp; 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&nbsp; num-buffers=1 always-copy=FALSE&nbsp; input-src=composite \<br>
! TIVidResize contiguousInputFrame=TRUE \<br>
! 'video/x-raw-yuv,width=(int)736,height=(int)480' \<br>
! queue \<br>
! TIImgenc1&nbsp; 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">&nbsp;</span></font></p>
</div>
</div>
</div>
</blockquote>
</span>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div><span class="Apple-style-span" style="font-size: 18px; "><font class="Apple-style-span" color="#3300fb">Have you considered multifilesink? &nbsp;Makes a single output file for each frame that arrives in the sink. The downside of this is, of course, it makes
 a file for EVERY frame. &nbsp;Also, because you are not keeping the entire stream you may loose (some?) timestamps and tags. &nbsp;I don't know for sure. &nbsp;If that information is really important to you, consider turning your stream in mjpeg and saving it into a container,
 Matroska is a good choice. &nbsp;You will still have your individual frames that you can later extract and only one frame.</font></span></div>
<div><span class="Apple-style-span" style="font-size: 18px; "><font class="Apple-style-span" color="#3300fb"><br>
</font></span></div>
<div><span class="Apple-style-span" style="font-size: 18px; "><font class="Apple-style-span" color="#3300fb">Wes</font></span></div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<span id="OLK_SRC_BODY_SECTION" style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px; ">
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div 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">
<div lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<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">&nbsp;<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 thesame 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&nbsp; 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&nbsp; 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>&nbsp;</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 tomake 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>&nbsp;</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>&nbsp;</o:p></span></font></p>
</div>
</div>
</div>
</blockquote>
</span><br>
<hr>
<font face="Arial" color="Gray" size="1">CONFIDENTIALITY NOTE:<br>
<br>
This e-mail and any attachments are confidential. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of this e-mail or any attachment is prohibited. If you have received this e-mail in error, please notify us immediately
 by returning it to the sender and delete this copy from your system. Thank you for your cooperation.<br>
</font>
</body>
</html>