網路城邦
上一篇 回創作列表 下一篇  字體:
gstreamer CLI note
2024/09/27 18:10:43瀏覽42|回應0|推薦0
#For ubuntu22

#out rtp
gst-launch-1.0 -v videotestsrc pattern=ball \
! videoconvert \
! jpegenc \
! jpegparse \
! rtpjpegpay \
! udpsink host=192.168.123.185 port=8081


# out rtp usb camera video0
gst-launch-1.0 v4l2src device=/dev/video0 \
! image/jpeg,format=MJPG,width=640,height=480,framerate=30/1 \
! rtpjpegpay \
! udpsink host=192.168.123.185 port=8080


# in rtp mjpeg
gst-launch-1.0 -e udpsrc port=8080 \
! application/x-rtp,media=video, encoding-name=JPEG \
! rtpjpegdepay \
! jpegdec \
! ximagesink

#For rasp 5.10.103
#out rtp, test pattern
gst-launch-1.0 videotestsrc pattern=ball \
! video/x-raw,width=320,height=240 \
! videoconvert \
! jpegenc \
! rtpjpegpay \
! udpsink host=192.168.123.185 port=8080


#out rtp, usb camera video0
gst-launch-1.0 v4l2src device=/dev/video0 \
! image/jpeg,format=MJPG,width=640,height=480,framerate=30 \
! rtpjpegpay \
! udpsink host=192.168.123.185 port=8080


#in rtp mjpeg
gst-launch-1.0 -v -e udpsrc port=8080 \
! application/x-rtp,media=video,encoding-name=JPEG \
! rtpjpegdepay \
! jpegdec \
! videoconvert \
! autovideosink

#chk stream of rtp
gst-discoverer-1.0 rtp://192.168.123.185:8080
( 心情隨筆雜記 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=181110953