# How can I add a branch for stream video to rtmp server?

**URL:** <https://discuss.px4.io/t/how-can-i-add-a-branch-for-stream-video-to-rtmp-server/6759>\
**Category:** Development\
**Created:** [May 30, 2018, 8:14am UTC](https://discuss.px4.io/t/how-can-i-add-a-branch-for-stream-video-to-rtmp-server/6759 "2018-05-30T08:14:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yl5006](https://discuss.px4.io/letter_avatar_proxy/v4/letter/y/ea666f/32.png) [@yl5006](https://discuss.px4.io/u/yl5006)\
**Post date:** [May 30, 2018, 8:14am UTC](https://discuss.px4.io/t/how-can-i-add-a-branch-for-stream-video-to-rtmp-server/6759/1 "2018-05-30T08:14:21Z")

</div>

here is gstreamer pipeline, and I used a Ip camera , rtsp protocol 。  
//-----------------------------------------------------------------------------  
// When we finish our pipeline will look like this:  
//  
// ±-\>queue–\>decoder–\>\_videosink  
// |  
// datasource–\>demux–\>parser–\>tee  
// |  
// | ±-------------\_sink-------------------+  
// | | |  
// we are adding these elements-\> ±\>teepad–\>queue–\>matroskamux–\>\_filesink |  
// | |  
// ±-------------------------------------+

---

<div class="post-metadata">

**Author:** ![yl5006](https://discuss.px4.io/letter_avatar_proxy/v4/letter/y/ea666f/32.png) [@yl5006](https://discuss.px4.io/u/yl5006)\
**Post date:** [May 31, 2018, 1:24am UTC](https://discuss.px4.io/t/how-can-i-add-a-branch-for-stream-video-to-rtmp-server/6759/2 "2018-05-31T01:24:22Z")

</div>

here is my command  
gst-launch-1.0 rtspsrc location=rtsp://192.168.1.168/main ! rtph264depay ! video/x-h264,width=1920,height=1080,framerate=25/1 ! h264parse ! flvmux name=mux streamable=true ! queue ! rtmpsink location=‘rtmp://localhost/videotest’  
and it works

---

<div class="post-metadata">

**Author:** ![TranBaHien](https://discuss.px4.io/user_avatar/discuss.px4.io/tranbahien/32/19441_2.png) [@TranBaHien](https://discuss.px4.io/u/TranBaHien)\
**Post date:** [May 19, 2025, 4:22am UTC](https://discuss.px4.io/t/how-can-i-add-a-branch-for-stream-video-to-rtmp-server/6759/3 "2025-05-19T04:22:33Z")

</div>

Have you added that feature to qgroundcontrol?
