Browse Source

上传文件至 ''

Caner 3 years ago
parent
commit
5d39bf1f77
1 changed files with 16 additions and 0 deletions
  1. 16 0
      video.txt

+ 16 - 0
video.txt

@@ -0,0 +1,16 @@
+gst-launch-1.0 alsasrc device=plughw:3,0 ! audio/x-raw,rate=8000,channels=1 ! audioconvert ! queue ! opusenc ! rtpopuspay ! udpsink host=127.0.0.1 port=6666
+
+gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480 ! videoconvert ! queue ! omxh264enc target-bitrate=1024 control-rate=1 ! video/x-h264, profile=baseline ! rtph264pay pt=96 mtu=1200 ssrc=42 ! udpsink host=127.0.0.1 port=6666
+
+
+gst-launch-1.0 libcamerasrc ! video/x-raw,width=640,height=480 ! videoconvert ! queue ! x264enc tune=zerolatency bitrate=1024 key-int-max=30 speed-preset=1 ! video/x-h264, profile=baseline ! rtph264pay pt=96 mtu=1200 ssrc=42 ! udpsink host=127.0.0.1 port=6666
+
+
+
+sudo apt-get install gstreamer1.0-plugins-base -y;
+sudo apt-get install gstreamer1.0-plugins-good -y;
+sudo apt-get install gstreamer1.0-plugins-bad -y;
+sudo apt-get install gstreamer1.0-plugins-ugly -y;
+sudo apt-get install gstreamer1.0-libav -y;
+sudo apt-get install gstreamer1.0-omx -y;
+sudo apt-get install gstreamer1.0-tools -y