如何从h264流中获得rgb框架,使用gstreamer sdk 1.5进行iOS?

时间:2022-06-14 21:22:25

I have gstreamer on linux which streams RTP h264 video stream

我在linux上有gstreamer,它可以流RTP h264视频流。

I have iOS app which need to receive the RGB frames and pass them to video conference sdk.

我有iOS应用,需要接收RGB框架并将其传递给视频会议sdk。

I know gstreamer 1.5 is decoding with VideoToolBox, thats why I wanna use it

我知道gstreamer 1.5正在用VideoToolBox解码,这就是我想要使用它的原因。

Has anyone done this?

有人做过吗?

1 个解决方案

#1


0  

Just use a capsfilter for the source of your h264 decoder:

只需使用一个capsfilter来获取h264解码器的源代码:

gst-launch stream ! h264parse ! h264_decoder ! video/x-raw,format=RGB ! sink_to_location(needs RGB support as well to avoid negotiation problems)

gst - launch流!h264parse !h264_decoder !视频/ x-raw,= RGB格式!sink_to_location(需要RGB支持,避免协商问题)

Hope it helps.

希望它可以帮助。

#1


0  

Just use a capsfilter for the source of your h264 decoder:

只需使用一个capsfilter来获取h264解码器的源代码:

gst-launch stream ! h264parse ! h264_decoder ! video/x-raw,format=RGB ! sink_to_location(needs RGB support as well to avoid negotiation problems)

gst - launch流!h264parse !h264_decoder !视频/ x-raw,= RGB格式!sink_to_location(需要RGB支持,避免协商问题)

Hope it helps.

希望它可以帮助。