<div dir="ltr">We're working with gstreamer 1.2 as our target, so that's what we did the tests on. I'll see if I can't produce a debug log and file a bug report.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Mar 3, 2014 at 1:57 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Mo, 2014-03-03 at 11:41 -0500, Stirling Westrup wrote:<br>
> On Sat, Mar 1, 2014 at 10:19 AM, Sebastian Dröge<br>
> <<a href="mailto:sebastian@centricular.com">sebastian@centricular.com</a>>wrote:<br>
><br>
> > On Fr, 2014-02-28 at 17:29 -0500, Stirling Westrup wrote:<br>
> > > We have a gstreamer application for dealing with UHD video content.<br>
> > Lately<br>
> > > we've been working with gstreamer-vaapi and updating vaapidecode to work<br>
> > > with version 1.2 of gstreamer. We've given vaapidecode a very high rank,<br>
> > so<br>
> > > it will be chosen first, and it does a test for vaapi compatible hardware<br>
> > > in its init function and returns true or false accordingly. This is all<br>
> > > working fine.<br>
> > ><br>
> > > However, we now have run into an issue farther along in the video<br>
> > pipeline.<br>
> > > We're using decodebin to decode incoming videos so we won't have to<br>
> > > implement our own type-finding system. It will successfully start using<br>
> > > vaapidecode if the hardware is available. So far so good. However, the<br>
> > > earliest vaapi hardware cannot support videos higher than 1920x1080, so<br>
> > we<br>
> > > can find the hardware overloaded in a UHD environment and be unable to<br>
> > work.<br>
> > ><br>
> > > Ideally, in this situation we'd like to somehow bow out of the pipeline<br>
> > and<br>
> > > have decodebin replace us with a lower-ranked software implementation<br>
> > that<br>
> > > CAN work with the content (albeit much slower). Of course, we currently<br>
> > > only learn how big the frames are we'll be expected to decode during caps<br>
> > > negotiation, and if we fail negotiation at that point, decodebin just<br>
> > gives<br>
> > > up, rather than replacing our element.<br>
> > ><br>
> > > Are we missing a trick here, or is our only option to modify decodebin<br>
> > (or<br>
> > > write our own) to have some smarter fallback system in place?<br>
> ><br>
> > You could put the resolution restrictions into the sinkpad template caps<br>
> > of the decoder. Having width=[1,1920],height=[1,1080] in there should<br>
> > cause decodebin to skip it for higher resolutions.<br>
> ><br>
><br>
> This was the first thing we tried. We hard coded the sinkpad template caps<br>
> to width=320,height=240, and we still ended up being used by decodebin.<br>
<br>
</div></div>Are you using GStreamer 0.10 or 1.x? If the latter, could you get a<br>
debug log with that? That would basically mean you found a case where<br>
unsupported caps are configured on your decoder... which must not<br>
happen.<br>
<br>
If it's 0.10... well, it's a known limitation of 0.10.<br>
<div class=""><br>
> > And the resolution information is fortunately available to decodebin<br>
> > before plugging the decoder because of the demuxer (most of the time) or<br>
> > in the worst case the parser.<br>
> ><br>
><br>
> In our experiments, we've never had resolution caps available from the<br>
> demuxer. I wonder if its just the set of videos we are using for testing...<br>
<br>
</div>Well, then the parser should extract that information before the<br>
decoder :) Not all container formats always provide this information.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div>