GNOME Bugzilla – Bug 789752
msdk: h265dec: failed to play with h265parse if framerate is not provided.
Last modified: 2018-03-29 23:24:40 UTC
Currently h265parse doesn't provide framerate by itself while msdkh265dec needs it via sink caps. So negotiation fails when we try to play raw h265 stream just like below. Step to reproduce. # gst-launch-1.0 filesrc location=test_stream.265 ! h265parse ! msdkh265dec ! videoconvert ! xvimagesink The tested stream is from samples in mediaSDK.
Is the framerate really required by the decoder API?
Created attachment 362727 [details] [review] msdk: h265dec: remove framerate field from sink caps template Removes unessential field framerate for decoder so that negotiation works even if framerate is not provided from upstream.
(In reply to Tim-Philipp Müller from comment #1) > Is the framerate really required by the decoder API? I don't think so :)
Created attachment 362728 [details] [review] msdk: dec: set framerate to the driver only if provided For example, if framerate 0/1 is provided from upstream, the driver fails to configure and complain about it. We can let it go and make the driver assuming framerate itself.
(In reply to Hyunjun Ko from comment #3) > (In reply to Tim-Philipp Müller from comment #1) > > Is the framerate really required by the decoder API? > > I don't think so :) Probably it's because the driver requires framerate at configuration. But IMHO it could be skipped. See the second patch I proposed.
I think framerate could be needed if one of the decoders is deadline based, and the deadline is not explicitly provided but deduces from the frame duration. Could that be the case ?
It fails if we set 0/1 but no issue with 0/0 :) :) Better fix it with the second patch.
(In reply to sreerenj from comment #7) > It fails if we set 0/1 but no issue with 0/0 :) :) > Better fix it with the second patch. The first patch is to succeed in negotiation with h265parser.
Better remove the framerate from all decoders template caps too.
Review of attachment 362727 [details] [review]: pushed
Review of attachment 362728 [details] [review]: pushed
Pushed to both master and 1.14
*** Bug 793786 has been marked as a duplicate of this bug. ***
*** Bug 793781 has been marked as a duplicate of this bug. ***