Explorar el Código

current status

David hace 8 años
padre
commit
a926d99e05
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      camera2/feed-cam.sh

+ 5 - 5
camera2/feed-cam.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
-BITRATE=17000000 #17Mb/s is the default
-
-gst-launch-1.0 -qe rpicamsrc rotation=270 preview=0 bitrate=$BITRATE sensor-mode=4 do-timestamp=true !\
-        video/x-h264, width=1280, height=720, framerate=25/1, profile=high !\
-        h264parse ! matroskamux ! tcpserversink host=0.0.0.0 port=5000 sync-method=burst-keyframe
+WIDTH=1280
+HEIGHT=720
+gst-launch-1.0 -qe rpicamsrc rotation=0 preview=0 bitrate=0 quantisation-parameter=23 sensor-mode=4 keyframe-interval=5 do-timestamp=true !\
+        video/x-h264, width=$WIDTH, height=$HEIGHT, framerate=25/1, profile=high !\
+        h264parse ! matroskamux ! tcpserversink host=0.0.0.0 port=5000 sync-method=next-keyframe