SPS/PPS from h264parse?

Nicolas Dufresne nicolas at ndufresne.ca
Fri Jan 18 17:02:42 UTC 2019


Le vendredi 18 janvier 2019 à 13:19 +0000, Patrick Fischer a écrit :
> Hello
> 
> my first message here on the mailing list.
> I have a question about mpeg-ts files with h264.
> What is the easiest way to get the SPS and PPS?
> My current pipe consists of
> udpsrc -> tsdemux -> h264parse
> 
> I don't really want to decode the h264 data. I only need SPS/PPS
> 
> Is the h264parse element even suitable for this? I don't see any
> possibility to get the SPS/PPS.

If you force h264parse to produce AVC byte-stream, the SPS/PPS will be
placed into caps as one buffer, you can try this:

gst-launch-1.0 filesrc location=some.ts ! tsdemux ! h264parse ! video/x-h264,stream-format=avc ! fakesink -v

> 
> written in C++
> 
> 
> regards
> 
> Patrick
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190118/30593d86/attachment.sig>


More information about the gstreamer-devel mailing list