SPS/PPS from h264parse?

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

SPS/PPS from h264parse?

Patrick Fischer
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.

written in C++


regards

Patrick

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

Re: SPS/PPS from h264parse?

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

signature.asc (201 bytes) Download Attachment