386
edits
(Add basic piplines) |
mNo edit summary |
||
Line 5: | Line 5: | ||
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 | ||
== | == udpsink pipeline == | ||
The following pipeline uses the netbalancer | |||
<pre> | <pre> | ||
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 | 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 | ||
</pre> | </pre> | ||
== | The following images show the difference between using the netbalancer and not using it. | ||
== rtspsink pipeline == | |||
<pre> | <pre> | ||
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 ! rtspsink | 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 | ||
</pre> | </pre> | ||
The following images show the difference between using the netbalancer and not using it. | |||
*Note: 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] | |||
<noinclude> | <noinclude> | ||
{{GstNetBalancer/Foot||}} | {{GstNetBalancer/Foot||}} | ||
</noinclude> | </noinclude> |