视频流操作记录

 

RTP USBcam

gst-launch-1.0 v4l2src device=/dev/video8 ! "image/jpeg,width=640,height=480,framerate=30/1" ! jpegdec ! videoconvert ! mpph264enc ! rtph264pay  config-interval=10 pt=96 ! udpsink host=192.168.1.4 port=5000

VLC sdp file:

v=0
m=video 5000 RTP/AVP 96
c=IN IP4 192.168.1.4
a=rtpmap:96 H264/80000

 

RTMP USBcam

gst-launch-1.0 v4l2src device=/dev/video8 ! "image/jpeg,width=1280,height=720,framerate=30/1" ! jpegdec ! videoconvert ! queue ! mpph264enc ! queue ! h264parse ! flvmux streamable=true ! queue ! rtmpsink sync=false location='rtmp://127.0.0.1:1935/live/test'

 

上一篇:[SPOJ]2885 loj10082 WORDRING - Word Rings


下一篇:96. 不同的二叉搜索树