Doubt Regarding h264parse

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Doubt Regarding h264parse

Treesa
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

Thanks and Regards
Anju Sebastian.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Fwd: Doubt Regarding h264parse

Treesa

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

Thanks and Regards
Anju Sebastian.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Doubt Regarding h264parse

Nicolas Dufresne-5
In reply to this post by Treesa


Le 12 mars 2018 09:12, "Anju Sebastian" <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Doubt Regarding h264parse

Treesa
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 <[hidden email]> wrote:


Le 12 mars 2018 09:12, "Anju Sebastian" <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel