瑞芯微Rockchip开发者社区
直播中

刘勇

7年用户 1292经验值
私信 关注
[问答]

如何将ROC-RK3568-PC与ubuntu开发板设置在同一网段呢

如何将ROC-RK3568-PC与ubuntu开发板设置在同一网段呢?

回帖(1)

黎蔼焱

2022-3-2 17:31:14
本人用的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
举报

更多回帖

发帖
×
20
完善资料,
赚取积分