Doubt Regarding h264parse

Nicolas Dufresne nicolas at ndufresne.ca
Mon Mar 12 13:27:59 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180312/ca7f20c6/attachment.html>


More information about the gstreamer-devel mailing list