<div dir="ltr">Tried with adding width and height limits in the decodedr sink template.<div>Now decoder is not getting set_caps event, before that itself pipeline is terminating.<br><br></div><div>These are the GSTVideoInfo that I am getting from caps using gst_video_info_from_caps function.<br> <br> interlace_mode = GST_VIDEO_INTERLACE_MODE_PROGRESSIVE, <br><br> flags = GST_VIDEO_FLAG_NONE, width = 0, height = 0, size = 0, views = 1, <br><br> chroma_site = GST_VIDEO_CHROMA_SITE_UNKNOWN, colorimetry = {<br><br> range = GST_VIDEO_COLOR_RANGE_UNKNOWN, <br><br> matrix = GST_VIDEO_COLOR_MATRIX_UNKNOWN, <br><br> transfer = GST_VIDEO_TRANSFER_UNKNOWN, <br><br> primaries = GST_VIDEO_COLOR_PRIMARIES_UNKNOWN}, par_n = 1, par_d = 1, <br><br> fps_n = 0, fps_d = 1, offset = {0, 0, 0, 0}, stride = {0, 0, 0, 0}, <br><br> _gst_reserved = {0xffffffff, 0x0, 0x0, 0x0}}<br><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thanks and Regards<div>Anju Sebastian.</div></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 12, 2018 at 6:57 PM, Nicolas Dufresne <span dir="ltr"><<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class=""><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 12 mars 2018 09:12, "Anju Sebastian" <<a href="mailto:anjusebastian08@gmail.com" target="_blank">anjusebastian08@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="m_-6618131816221246165quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>I have one h264 decoder and display elements.<br></div>I used a pipeline:<br><br></div>gst-launch-1.0 -vv filesrc location=test ! tsdemux ! queue ! h264parse ! my_decoder ! my_display<br><div><div><div><div><div><br><br>h264parse sends h264 data in byte stream format with nalu alignment.<br></div><div>When I get caps_event in my decoder from h264parse, I call gst_video_info_from_caps and I get width and height as 0 which is not accepetable by my plugins. so pipeline creation fails.<br><br></div><div>Why I am getting width and height as 0 from h264parse src caps?<br></div><div>Is there anything wrong in it?<br></div><div>What should I do here?<br></div><div>If I apply caps filter and specify alignment as au or stream format as avc, issue disppears<br></div></div></div></div></div></div></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">Is this only in the GstVideoInfo but also missing in the caps? GstVideoInfo is not best choice for encoded data. </div><div dir="auto"><br></div><div dir="auto">Another thing to check, make sure you have witdth/height in your template caps, h264parse won't do extra work unless requested.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_-6618131816221246165quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><div><div><div><div><div></div><div><br clear="all"><div><div class="m_-6618131816221246165m_4206619997099993146gmail_signature"><div dir="ltr">Thanks and Regards<font color="#888888"><div>Anju Sebastian.</div></font></div></div></div>
</div></div></div></div></div></div>
<br></span>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
<br></blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>