UDP Video Streaming Over RTP Gets Faulty Over Wifi

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

UDP Video Streaming Over RTP Gets Faulty Over Wifi

Osman Berk
Hello I stream video over udpsink with rtph264, while it works over ethernet
pretty fine with low latency, I have many problems over wifi, where I can
not even get 1 frame per second, all frames are gray.
I suppose this happens because of packet drops and rtp protocol, is there a
way for me to fix this by keeping rtph264( because of the low latency it
has)?



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

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Michael Gruner
Hi, please show your sender and receiver pipelines.

> On Dec 27, 2019, at 06:25, Osman Berk <[hidden email]> wrote:
>
> Hello I stream video over udpsink with rtph264, while it works over ethernet
> pretty fine with low latency, I have many problems over wifi, where I can
> not even get 1 frame per second, all frames are gray.
> I suppose this happens because of packet drops and rtp protocol, is there a
> way for me to fix this by keeping rtph264( because of the low latency it
> has)?
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Nicolas Dufresne-5
In reply to this post by Osman Berk
Le jeudi 26 décembre 2019 à 02:36 -0600, Osman Berk a écrit :
> Hello I stream video over udpsink with rtph264, while it works over ethernet
> pretty fine with low latency, I have many problems over wifi, where I can
> not even get 1 frame per second, all frames are gray.
> I suppose this happens because of packet drops and rtp protocol, is there a
> way for me to fix this by keeping rtph264( because of the low latency it
> has)?

Over wifi, you have to configure your jitterbuffer latency to match the
the wifi latency, which is always higher.

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Marc Leeman
In reply to this post by Osman Berk
If you are simply payloading your data with rtph264pay, you are not using RTP, you are using little more than UDP. This will indeed break down when your latency and or jitter is unpredictable.

See rtpsink/rtpsrc in git (gst-bad-plugins).

for older releases, see


On Fri, 27 Dec 2019 at 14:30, Osman Berk <[hidden email]> wrote:
Hello I stream video over udpsink with rtph264, while it works over ethernet
pretty fine with low latency, I have many problems over wifi, where I can
not even get 1 frame per second, all frames are gray.
I suppose this happens because of packet drops and rtp protocol, is there a
way for me to fix this by keeping rtph264( because of the low latency it
has)?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
g. Marc

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

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Osman Berk
With using rtpjitterbuffer latency=2000 and/or rtpbin I increased the success
ratio of frame to %30~, after trying different pipelines over hours..

I looked into rtpsink/rtpsrc, and I suppose they are only in Ubuntu19.

Now that I am giving up on this mission over wifi, is this feasible or
possible, sending video over wifi via udp, with help of rtp. It seems packet
losses hit great deal to rendering.



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

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Nicolas Dufresne-5


Le mar. 31 déc. 2019 07 h 00, Osman Berk <[hidden email]> a écrit :
With using rtpjitterbuffer latency=2000 and/or rtpbin I increased the success
ratio of frame to %30~, after trying different pipelines over hours..

I looked into rtpsink/rtpsrc, and I suppose they are only in Ubuntu19.

Now that I am giving up on this mission over wifi, is this feasible or
possible, sending video over wifi via udp, with help of rtp. It seems packet
losses hit great deal to rendering.

As the other says, you need full RTP to get something like wifi running. RTP sink/src and ristsink/src are recent addition to make this easy, as using RTP in is non-trivial and requires programming. Unfortunately, recent also imply that to get this into distro, we will need 1.18 to be out.

Meanwhile, have you considered using rtsp server + rtspsrc and enabling retransmission ?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Nicolas Dufresne-5


Le mar. 31 déc. 2019 11 h 48, Nicolas Dufresne <[hidden email]> a écrit :


Le mar. 31 déc. 2019 07 h 00, Osman Berk <[hidden email]> a écrit :
With using rtpjitterbuffer latency=2000 and/or rtpbin I increased the success
ratio of frame to %30~, after trying different pipelines over hours..

I looked into rtpsink/rtpsrc, and I suppose they are only in Ubuntu19.

Now that I am giving up on this mission over wifi, is this feasible or
possible, sending video over wifi via udp, with help of rtp. It seems packet
losses hit great deal to rendering.

As the other says, you need full RTP to get something like wifi running. RTP sink/src and ristsink/src are recent addition to make this easy, as using RTP in is non-trivial and requires

Phones hates technical writing. I meant to write "using rtpbin".

programming. Unfortunately, recent also imply that to get this into distro, we will need 1.18 to be out.

Meanwhile, have you considered using rtsp server + rtspsrc and enabling retransmission ?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Osman Berk
Yeah I tried rtpbin with jitter as well, but to no avail.



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

Re: UDP Video Streaming Over RTP Gets Faulty Over Wifi

Nicolas Dufresne-5
Le jeudi 09 janvier 2020 à 13:47 -0600, Osman Berk a écrit :
> Yeah I tried rtpbin with jitter as well, but to no avail.

Did you enabled retransmission and made sure it worked ?

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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