<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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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:520322857;
        mso-list-type:hybrid;
        mso-list-template-ids:1184416188 -35341076 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:1450778676;
        mso-list-type:hybrid;
        mso-list-template-ids:-2130772750 -787342324 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>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This solution works for me also. I tested it also with audio and
it seems to be synchronized – which means the problem is solved.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank you both, Mitchell and David.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-- <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Best regards,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Krzysztof Borowczyk<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<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>Mitchell Foley<br>
<b>Sent:</b> Wednesday, March 26, 2014 4:21 PM<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>

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

<div>

<p class=MsoNormal style='margin-left:35.4pt'>I've had problems using
xvideosink with decklinksrc, which might be what autovideosink is loading. For
me, this command works fine:<o:p></o:p></p>

<div>

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

</div>

<div>

<p class=MsoNormal style='margin-left:35.4pt'><span style='font-size:9.0pt;
font-family:Consolas;color:black'>gst-launch-1.0 decklinksrc </span><span
style='font-size:9.0pt;font-family:Consolas;color:teal'>connection</span><b><span
style='font-size:9.0pt;font-family:Consolas;color:black'>=</span></b><span
style='font-size:9.0pt;font-family:Consolas;color:black'>HDMI </span><span
style='font-size:9.0pt;font-family:Consolas;color:teal'>mode</span><b><span
style='font-size:9.0pt;font-family:Consolas;color:black'>=</span></b><span
style='font-size:9.0pt;font-family:Consolas;color:black'>11 </span><span
style='font-size:9.0pt;font-family:Consolas;color:teal'>name</span><b><span
style='font-size:9.0pt;font-family:Consolas;color:black'>=</span></b><span
style='font-size:9.0pt;font-family:Consolas;color:black'>demux demux. !
alsasink </span><span style='font-size:9.0pt;font-family:Consolas;color:teal'>sync</span><b><span
style='font-size:9.0pt;font-family:Consolas;color:black'>=</span></b><span
style='font-size:9.0pt;font-family:Consolas;color:#0086B3'>false </span><span
style='font-size:9.0pt;font-family:Consolas;color:black'>demux. ! queue !
xvimagesink </span><span style='font-size:9.0pt;font-family:Consolas;
color:teal'>sync</span><b><span style='font-size:9.0pt;font-family:Consolas;
color:black'>=</span></b><span style='font-size:9.0pt;font-family:Consolas;
color:#0086B3'>false</span><o:p></o:p></p>

</div>

<div>

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

</div>

<div>

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

</div>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:35.4pt'><o:p> </o:p></p>

<div>

<p class=MsoNormal style='margin-left:35.4pt'>On Wed, Mar 26, 2014 at 6:24 AM,
Krzysztof Borowczyk <<a href="mailto:k.borowczyk@samsung.com" target="_blank">k.borowczyk@samsung.com</a>>
wrote:<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:35.4pt'><span style='color:#1F497D'>Update:</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:35.4pt'><span style='color:#1F497D'> </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt;
margin-left:35.4pt'><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.</span><o:p></o:p></p>

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

<div>

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

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><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:<a
href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>]
<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</span><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'> <o:p></o:p></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span style='color:#1F497D'>[...]</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'> <o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>Try turning on debug for the decklinksrc:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>    GST_DEBUG=decklinksrc:6 gst-launch-1.0 ...<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>That will tell you if it is having to drop frames because
the pipeline<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>isn't receiving them fast enough. If that's the case try
adding a queue<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>after decklinksrc (?).<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span style='color:#1F497D'> </span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><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):</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><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</span><o:p></o:p></p>

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

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><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</span><o:p></o:p></p>

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

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

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></p>

</div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'><span lang=EN-US>You could also try "autovideosink
sync=false" and see what happens (you</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>probably don't want to do that in practice, but trying it
might give some<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>insight as to what's causing your low framerate).<o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span style='color:#1F497D'> </span><o:p></o:p></p>

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

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US style='color:#1F497D'> </span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'><span lang=EN-US>Maybe also try with fakesink, to
eliminate videoconvert and your video</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:106.2pt'>sink from the equation: gst-launch-1.0 decklinksrc
mode=... ! fakesink<o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span style='color:#1F497D'> </span><o:p></o:p></p>

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

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US> </span><o:p></o:p></p>

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

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US> </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US>WARNING: erroneous pipeline: could not
link queue0 to videoconvert0</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US> </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US>Any idea why it would do so?</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US> </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US>-- </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:70.8pt'><span lang=EN-US>Best regards,<br>
Krzysztof Borowczyk</span><o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:35.4pt'><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><o:p></o:p></p>

</div>

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

</div>

</div>

</body>

</html>