Stream video via libnice and gstreamer

I want to transfer video from an IP camera to a remote PC that is behind NAT. For this purpose I use libnice and gstreamer.

On the one hand, I implemented a subordinate message.

rtspsrc ↔ nicesink

Remote Client Console

nicesrc ↔ rtph264depay ↔ h264parse ↔ ffdec_h264 ↔ autovideosink

But I can not get the video stream on the remote client. I get a video package on the nicesrc element on the remote client, but I don’t see the video on the above pipeline.

How do I know that packets are sent to the nicesrc element on the remote client:

I get a print of the length of the buffer in the libnice callback. from there, I can also record h264 video and play it. but streaming streaming does not occur by the aforementioned pipeline on the remote client.

I also tried including capfilters in the gstreamer pipeline without any success. Any help is provided. Thanks

+4
source share

All Articles