<div dir="ltr"><div><br></div><div>>>You're probably right that the major bottleneck is most likely copying the</div><div>>>data from the CPU to the GPU. I looked into it, and I think I can have</div><div>>>gstamcvideodec decode directly into GL memory.</div><div>>>Unfortunately when I try to do this gstamcvideodec logs:</div><div>>>"ERR amcvideodec</div><div>>>gstamcvideodec.c:1977:gst_amc_video_dec_set_format:<amcvideodec-omxexynosavcdec0></div>>Codec only supports GL output but downstream does not"><span style="font-size:12.8px">These caps don't intersect with amcvideodec's caps as they have different texture-target fields. amcvideodec only ever does texture-target=external-oes.</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I switched "fakesink" with "glimagesink". I no longer get the "GL Output disabled" error, and performance is much better.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thank you guys for taking the time to help.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 22, 2017 at 3:58 AM, Matthew Waters <span dir="ltr"><<a href="mailto:ystreet00@gmail.com" target="_blank">ystreet00@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><span class="gmail-">
<p><br>
</p>
<br>
<div class="gmail-m_-5718765092887245926moz-cite-prefix">On 22/03/17 09:56, Brendan Lockhart
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>>You're probably right that the major bottleneck is most
likely copying the</div>
<div>>data from the CPU to the GPU. I looked into it, and I
think I can have</div>
<div>>gstamcvideodec decode directly into GL memory.</div>
<div>>Unfortunately when I try to do this gstamcvideodec
logs:</div>
<div>>"ERR amcvideodec</div>
<div>>gstamcvideodec.c:1977:gst_<wbr>amc_video_dec_set_format:<<wbr>amcvideodec-omxexynosavcdec0></div>
<div>>Codec only supports GL output but downstream does not"</div>
<div>></div>
<div>>This is despite that fact that, before that error,
gstamcvideodec logs:</div>
<div>></div>
<div>>"gstamcvideodec.c:1904:gst_<wbr>amc_video_dec_set_format:<<wbr>amcvideodec-omxexynosavcdec0></div>
<div>>Available downstream caps:
video/x-raw(memory:GLMemory),</div>
<div>>format=(string)RGBA,
texture-target=(string)<wbr>external-oes"</div>
<div>></div>
<div>>Which I *believe *should intersect properly with
amcvideodec's required GL</div>
<div>>output sink caps.</div>
<div>>Could this be a bug, or am I doing something wrong
here?</div>
<div>>This is with Gstreamer 1.10.4, and I'm setting
playbin's videosink to</div>
<div>>"video/x-raw(memory:GLMemory)<wbr>,texture-target=2D,format=RGBA
! fakesink</div>
<div>>sync=1 qos=1 name=sink"</div>
</div>
</blockquote>
<br></span>
These caps don't intersect with amcvideodec's caps as they have
different texture-target fields. amcvideodec only ever does
texture-target=external-oes.<br>
<br>
Cheers<br>
-Matt<span class="gmail-"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div>Does anyone have any suggestions on how I can figure out if
this is a bug in my application code, or a bug in
gstamcvideodec?</div>
<div>Any advice or feedback would be more than appreciated.</div>
<div class="gmail_extra"><br>
</div>
</div>
</blockquote>
<br>
</span></div>
</blockquote></div><br></div></div>