<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:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
/* 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-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;}
/* List Definitions */
@list l0
{mso-list-id:1155687800;
mso-list-type:hybrid;
mso-list-template-ids:2012799810 -1661053294 68485123 68485125 68485121 68485123 68485125 68485121 68485123 68485125;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l1
{mso-list-id:2128353028;
mso-list-type:hybrid;
mso-list-template-ids:-444152842 1201448628 68485123 68485125 68485121 68485123 68485125 68485121 68485123 68485125;}
@list l1:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</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>
<div>
<p class=MsoNormal><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:35.4pt'><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:35.4pt'><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:35.4pt'><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:35.4pt'><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:35.4pt'><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:35.4pt'><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:35.4pt'><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:35.4pt'><span style='font-size:12.0pt;
font-family:"Times New Roman","serif"'>after decklinksrc (?).<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal><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><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><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><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><span lang=EN-US style='color:#1F497D'>0:00:02.721746566
2552 0x815dbb0 DEBUG decklinksrc
gstdecklinksrc.cpp:746:gst_decklink_src_task:<decklinksrc0> task<br>
<br>
<o:p></o:p></span></p>
<p class=MsoNormal><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><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
</div>
<div>
<div>
<p class=MsoNormal style='margin-left:35.4pt'><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:35.4pt'><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:35.4pt'><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><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><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><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
</div>
<div>
<p class=MsoNormal style='margin-left:35.4pt'><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:35.4pt'><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><span style='font-size:12.0pt;font-family:"Times New Roman","serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><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><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><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><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>WARNING: erroneous pipeline: could not link
queue0 to videoconvert0<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Any idea why it would do so?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>-- <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Best regards,<br>
Krzysztof Borowczyk<o:p></o:p></span></p>
</div>
</div>
</body>
</html>