<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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=PL link=blue vlink=purple style='word-wrap: break-word;-webkit-nbsp-mode: space;
-webkit-line-break: after-white-space'>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Update:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>The queue problem was
that it connected to the audio output, I fixed it  by running:<br>
<br>
gst-launch-1.0 decklinksrc name=d mode=9 connection=1  d. ! queue  !  fakesink
d. ! queue ! videoconvert ! autovideosink<br>
<br>
unfortunately the problem still persists – I get the playback at 1-2 frames per
second.<br>
<br>
<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:35.4pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> gstreamer-devel
[mailto:gstreamer-devel-bounces@lists.freedesktop.org] <b>On Behalf Of </b>Krzysztof
Borowczyk<br>
<b>Sent:</b> Wednesday, March 26, 2014 10:44 AM<br>
<b>To:</b> 'Discussion of the development of and with GStreamer'<br>
<b>Subject:</b> RE: decklink plugin<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal style='margin-left:35.4pt'><o:p> </o:p></p>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'>[...]</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>

</div>

<div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>Try turning on debug for the
decklinksrc:<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>    GST_DEBUG=decklinksrc:6
gst-launch-1.0 ...<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'><o:p> </o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>That will tell you if it is having to drop
frames because the pipeline<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>isn't receiving them fast enough. If
that's the case try adding a queue<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>after decklinksrc (?).<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'><o:p> </o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>I tried with
these logs, and decklink doesn’t say anything about dropping frames – quite the
opposite, it reports Valid Frame (log.txt):<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US
style='color:#1F497D'><br>
:00:02.684938080  2552  0x8163120
DEBUG           
decklinksrc capture.cpp:114:VideoInputFrameArrived:<decklinksrc0> Frame
received [No timecode] - Valid Frame - Size: 4147200 bytes<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US
style='color:#1F497D'>0:00:02.688372967  2552  0x815dbb0
DEBUG           
decklinksrc gstdecklinksrc.cpp:746:gst_decklink_src_task:<decklinksrc0>
task<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US
style='color:#1F497D'>0:00:02.718353360  2552  0x8163120
DEBUG           
decklinksrc capture.cpp:114:VideoInputFrameArrived:<decklinksrc0> Frame
received [No timecode] - Valid Frame - Size: 4147200 bytes<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:35.4pt'><span lang=EN-US style='color:#1F497D'>0:00:02.721746566 
2552  0x815dbb0
DEBUG           
decklinksrc gstdecklinksrc.cpp:746:gst_decklink_src_task:<decklinksrc0>
task<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>although, I’m
not sure if the “No timecode” is expected here? Maybe that’s the reason for
drops?<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US
style='color:#1F497D'><o:p> </o:p></span></p>

</div>

<div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>You could also
try "autovideosink sync=false" and see what happens (you<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>probably don't want to do that in
practice, but trying it might give some<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>insight as to what's causing your low
framerate).<o:p></o:p></span></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><span style='color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>Setting the sync
to false helps. The playback is not 100% smooth, but it’s much better.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US
style='color:#1F497D'><o:p> </o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span lang=EN-US
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>Maybe also try
with fakesink, to eliminate videoconvert and your video<o:p></o:p></span></p>

</div>

<div>

<p class=MsoNormal style='margin-left:70.8pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>sink from the equation: gst-launch-1.0
decklinksrc mode=... ! fakesink<o:p></o:p></span></p>

</div>

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>This also seems
to help, there are no messages about dropped buffers.<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>I don’t know if
the queue solution would help, because GStreamer does not want to connect it
(log2.txt):<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>WARNING:
erroneous pipeline: could not link queue0 to videoconvert0<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>Any idea why it
would do so?<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US><o:p> </o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>-- <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US>Best regards,<br>
Krzysztof Borowczyk<o:p></o:p></span></p>

</div>

</div>

</body>

</html>