David 10 سال پیش
والد
کامیت
5a90efdf56
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      camera1/cam-to-udp.sh

+ 3 - 2
camera1/cam-to-udp.sh

@@ -22,6 +22,7 @@ w=800
 h=600
 
 roi="roi-x=0.00 roi-y=0 roi-w=1.00 roi-h=1.00"
+bitrate=1000000
 
 novideo="-n"
 PREVIEW="preview=0"
@@ -47,5 +48,5 @@ done
 FORMAT="video/x-h264, width=$w, height=$h, framerate=24/1, profile=high"
 #annotation-mode=0x8 
 rotation=180
-echo gst-launch-1.0 rpicamsrc rotation=$rotation $PREVIEW $roi bitrate=2000000 do-timestamp=true ! queue ! $FORMAT ! h264parse ! rtph264pay config-interval=1 ! udpsink host=$HOST auto-multicast=true port=5000
-     gst-launch-1.0 rpicamsrc rotation=$rotation $PREVIEW $roi bitrate=2000000 do-timestamp=true ! queue ! $FORMAT ! h264parse ! rtph264pay config-interval=1 ! udpsink host=$HOST auto-multicast=true port=5000
+echo gst-launch-1.0 rpicamsrc rotation=$rotation $PREVIEW $roi bitrate=$bitrate do-timestamp=true ! queue ! $FORMAT ! h264parse ! rtph264pay config-interval=1 ! udpsink host=$HOST auto-multicast=true port=5000
+     gst-launch-1.0 rpicamsrc rotation=$rotation $PREVIEW $roi bitrate=$bitrate do-timestamp=true ! queue ! $FORMAT ! h264parse ! rtph264pay config-interval=1 ! udpsink host=$HOST auto-multicast=true port=5000