GstNetBalancer/Examples/Basic pipelines: Difference between revisions

From RidgeRun Developer Wiki
No edit summary
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{GstNetBalancer/Head|previous=|next=|}}
{{GstNetBalancer/Head|previous=Examples|next=Examples/Demo}}
</noinclude>
</noinclude>
{{DISPLAYTITLE:GstNetBalancer - Basic Example pipelines|noerror}}


This page showcases basic usage examples of the '''netbalancer''' element. It uses videotestsrc streaming over different protocols and shows the results of the received  
This page showcases basic usage examples of the '''netbalancer''' element. It uses videotestsrc streaming over different protocols and shows the results of the received  
Line 8: Line 10:
The following pipeline uses the netbalancer element before an udpsink element to limit the packet transmission rate. The results of this pipeline compared to not using the netbalancer element are shown in the example section below.
The following pipeline uses the netbalancer element before an udpsink element to limit the packet transmission rate. The results of this pipeline compared to not using the netbalancer element are shown in the example section below.


For more details on how to chose and interpreter parameters take a look at the [[GstNetBalancer/User_Guide]] page.
For more details on how to choose and interpreter parameters take a look at the [[GstNetBalancer/User_Guide|User Guide]] page.
   
   
<pre>
<pre>
Line 15: Line 17:


== rtspsink pipeline ==
== rtspsink pipeline ==
The following pipeline demonstrates that the netbalancer does not depend on the the sink element being used since it does not modify packets at all. This uses rtsp for transmission. The rtspsink element is a RidgeRun product sold separately, more information can be found on its own wiki here: [https://developer.ridgerun.com/wiki/index.php/GstRtspSink GstRtspSink]
The following pipeline demonstrates that the netbalancer does not depend on the sink element being used since it does not modify packets at all. This uses rtsp for transmission. The rtspsink element is a RidgeRun product sold separately, more information can be found on its own wiki here: [https://developer.ridgerun.com/wiki/index.php/GstRtspSink GstRtspSink]


<pre>
<pre>
Line 28: Line 30:


<noinclude>
<noinclude>
{{GstNetBalancer/Foot||}}
{{GstNetBalancer/Foot|Examples|Examples/Demo}}
</noinclude>
</noinclude>

Latest revision as of 19:09, 20 October 2022



Previous: Examples Index Next: Examples/Demo






This page showcases basic usage examples of the netbalancer element. It uses videotestsrc streaming over different protocols and shows the results of the received

udpsink pipeline

The following pipeline uses the netbalancer element before an udpsink element to limit the packet transmission rate. The results of this pipeline compared to not using the netbalancer element are shown in the example section below.

For more details on how to choose and interpreter parameters take a look at the User Guide page.

gst-launch-1.0 videotestsrc is-live=true ! 'video/x-raw,width=1280,height=720,framerate=30/1' ! queue ! x264enc key-int-max=30 bitrate=10000 ! queue ! mpegtsmux alignment=7 ! netbalancer bandwidth=12000 distribution-factor=300 min-delay=1000 ! udpsink port=3000 host=127.0.0.1 -v

rtspsink pipeline

The following pipeline demonstrates that the netbalancer does not depend on the sink element being used since it does not modify packets at all. This uses rtsp for transmission. The rtspsink element is a RidgeRun product sold separately, more information can be found on its own wiki here: GstRtspSink

gst-launch-1.0 videotestsrc is-live=true ! 'video/x-raw,width=1280,height=720,framerate=30/1' ! queue ! x264enc key-int-max=30 bitrate=10000 ! queue ! mpegtsmux alignment=7 ! netbalancer bandwidth=12000 distribution-factor=300 min-delay=1000 ! video/x-h264, mapping=/stream1 ! rtspsink service=3000 -v

Example results



Previous: Examples Index Next: Examples/Demo