Doubt Regarding h264parse

Anju Sebastian anjusebastian08 at gmail.com
Tue Mar 13 04:29:38 UTC 2018


Tried with adding width and height limits in the decodedr sink template.
Now decoder is not getting set_caps event, before that itself pipeline is
terminating.

These are the GSTVideoInfo that I am getting from caps using
gst_video_info_from_caps function.

 interlace_mode = GST_VIDEO_INTERLACE_MODE_PROGRESSIVE,

  flags = GST_VIDEO_FLAG_NONE, width = 0, height = 0, size = 0, views = 1,

  chroma_site = GST_VIDEO_CHROMA_SITE_UNKNOWN, colorimetry = {

    range = GST_VIDEO_COLOR_RANGE_UNKNOWN,

    matrix = GST_VIDEO_COLOR_MATRIX_UNKNOWN,

    transfer = GST_VIDEO_TRANSFER_UNKNOWN,

    primaries = GST_VIDEO_COLOR_PRIMARIES_UNKNOWN}, par_n = 1, par_d = 1,

  fps_n = 0, fps_d = 1, offset = {0, 0, 0, 0}, stride = {0, 0, 0, 0},

  _gst_reserved = {0xffffffff, 0x0, 0x0, 0x0}}


Thanks and Regards
Anju Sebastian.

On Mon, Mar 12, 2018 at 6:57 PM, Nicolas Dufresne <nicolas at ndufresne.ca>
wrote:

>
>
> Le 12 mars 2018 09:12, "Anju Sebastian" <anjusebastian08 at gmail.com> a
> écrit :
>
> Hi,
>
> I have one h264 decoder and display elements.
> I used a pipeline:
>
> gst-launch-1.0 -vv filesrc location=test ! tsdemux ! queue ! h264parse !
> my_decoder ! my_display
>
>
> h264parse sends h264 data in byte stream format with nalu alignment.
> 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.
>
> Why I am getting width and height as 0 from h264parse src caps?
> Is there anything wrong in it?
> What should I do here?
> If I apply caps filter and specify alignment as au or stream format as
> avc, issue disppears
>
>
> Is this only in the GstVideoInfo but also missing in the caps?
> GstVideoInfo is not best choice for encoded data.
>
> Another thing to check, make sure you have witdth/height in your template
> caps, h264parse won't do extra work unless requested.
>
>
>
> Thanks and Regards
> Anju Sebastian.
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180313/a19773f7/attachment-0001.html>


More information about the gstreamer-devel mailing list