<div dir="ltr">I've had problems using xvideosink with decklinksrc, which might be what autovideosink is loading. For me, this command works fine:<div><br></div><div><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">gst-launch-1.0 decklinksrc </span><span class="" style="color:teal;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">connection</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">=</span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">HDMI </span><span class="" style="color:teal;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">mode</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">=</span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">11 </span><span class="" style="color:teal;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">name</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">=</span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">demux demux. ! alsasink </span><span class="" style="color:teal;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">sync</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">=</span><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">false </span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">demux. ! queue </span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">! xvimagesink </span><span class="" style="color:teal;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">sync</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">=</span><span class="" style="color:rgb(0,134,179);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;line-height:16.799999237060547px;white-space:pre">false</span><br>

</div><div><br></div><div>-Mitch</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 6:24 AM, Krzysztof Borowczyk <span dir="ltr"><<a href="mailto:k.borowczyk@samsung.com" target="_blank">k.borowczyk@samsung.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div lang="PL" link="blue" vlink="purple" style="word-wrap:break-word">

<div>

<p class="MsoNormal"><span style="color:#1f497d">Update:<u></u><u></u></span></p>

<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></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>
<u></u><u></u></span></p>

<p class="MsoNormal"><span lang="EN-US" style="color:#1f497d"><u></u> <u></u></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:<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<u></u><u></u></span></p>

</div>

</div><div><div class="h5">

<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></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""><u></u><u></u></span></p>

</div>

<div>

<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u> <u></u></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:<u></u><u></u></span></p>

</div>

<div>

<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u> <u></u></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 ...<u></u><u></u></span></p>

</div>

<div>

<p class="MsoNormal" style="margin-left:70.8pt"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><u></u> <u></u></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<u></u><u></u></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<u></u><u></u></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 (?).<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:#1f497d"><u></u> <u></u></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):<u></u><u></u></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<u></u><u></u></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<u></u><u></u></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<u></u><u></u></span></p>

<p class="MsoNormal" style="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<u></u><u></u></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?<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:#1f497d"><u></u> <u></u></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<u></u><u></u></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<u></u><u></u></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).<u></u><u></u></span></p>

</div>

</div>

<div>

<p class="MsoNormal" style="margin-left:35.4pt"><span style="color:#1f497d"><u></u> <u></u></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.<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US" style="color:#1f497d"><u></u> <u></u></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<u></u><u></u></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<u></u><u></u></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"><u></u> <u></u></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.<u></u><u></u></span></p>

<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"><u></u> <u></u></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):<u></u><u></u></span></p>

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

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

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

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

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

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

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

</div>

</div></div></div>

</div>


<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><br>
<br></blockquote></div><br></div>