RK3568上gstreamer命令推rtp流

本人用的ROC-RK3568-PC开发板,ubuntu系统,两个开发板,一个用来录屏推流,一个用来取流播放,两个开发板设置在同一网段。
#本地mp4文件推rtp流
gst-launch-1.0 filesrc location=/home/firefly/Desktop/test.mp4 ! qtdemux ! rtph264pay config-interval=-1 ! udpsink host=238.0.0.1 port=5000
#本地ts文件推rtp流
gst-launch-1.0 filesrc location=/home/firefly/Desktop/test.ts ! tsdemux ! rtph264pay config-interval=-1 ! udpsink host=238.0.0.1 port=5000
#录屏推rtp流
gst-launch-1.0 ximagesrc remote=1 ! videoconvert ! video/x-raw,format=NV12,framerate=15/1 ! queue ! mpph264enc ! queue ! h264parse ! queue ! rtph264pay config-interval=-1 ! udpsink host=238.0.0.1 port=5000

#取流播放
gst-launch-1.0 -ve udpsrc uri=udp://238.0.0.1:5000 ! application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96 ! rtph264depay ! h264parse ! mppvideodec ! videoconvert ! rkximagesink sync=false

参考:
http://cn.voidcc.com/question/p-wxjyrwff-bhz.html
https://blog.csdn.net/zzqgtt/article/details/86689905

你可能感兴趣的:(ubuntu,linux)