udp and rtp multicast streaming behavoir

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

udp and rtp multicast streaming behavoir

yileku
We use udp to stream an h.265 encoded stream.  When we use a live video camera the streaming is flawless.  When we send a udp stream with a file as the src to 127.0.0.1 it is flawless.  When we take a file, encode it and send it to another board (either multicast or unicast) we see the video get pixelated and fuzzy.  We also see the frame rate jump around from 90 to 150+, down to 1, etc. even though the source file is 60 FPS.  We tried putting 'videorate' in the pipeline, but that did not fix anything.  It looks like the UDP packets are not being 'metered' out from the source or at the destination.  The encoder source reads the source video file (raw video), encodes it, then sends it out at a much faster rate than the video framerate.  We did put in 'rtpjitterbuffer' and it made the video better, but we are still getting framerates that are 90 to 150+ etc.

When encoding and sending a file using UDP, what is the mechanism that should control the framerate?

Thanks,
Y-

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

Re: udp and rtp multicast streaming behavoir

Arjen Veenhuizen
Do you use a hardware or software based H265 encoder? Make sure it runs in zero-latency mode.
Reply | Threaded
Open this post in threaded view
|

Re: udp and rtp multicast streaming behavoir

Tim Müller
In reply to this post by yileku
On Sun, 2017-08-27 at 11:10 -0600, Yile Ku wrote:

Hi,

> We use udp to stream an h.265 encoded stream.  When we use a live
> video camera the streaming is flawless.  When we send a udp stream
> with a file as the src to 127.0.0.1 it is flawless.  When we take a
> file, encode it and send it to another board (either multicast or
> unicast) we see the video get pixelated and fuzzy.  We also see the
> frame rate jump around from 90 to 150+, down to 1, etc. even though
> the source file is 60 FPS.  We tried putting 'videorate' in the
> pipeline, but that did not fix anything.  It looks like the UDP
> packets are not being 'metered' out from the source or at the
> destination.  The encoder source reads the source video file (raw
> video), encodes it, then sends it out at a much faster rate than the
> video framerate.  We did put in 'rtpjitterbuffer' and it made the
> video better, but we are still getting framerates that are 90 to 150+
> etc. 
>
> When encoding and sending a file using UDP, what is the mechanism
> that should control the framerate?

Please share with us the exact pipeline you used to stream out video
from file, thanks!

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference!
21-22 October 2017 in Prague, Czech Republic
http://gstreamer.freedesktop.org/conference/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel