David 9 سال پیش
والد
کامیت
76cacb7a98
1فایلهای تغییر یافته به همراه11 افزوده شده و 4 حذف شده
  1. 11 4
      camera1/mic-to-udp.sh

+ 11 - 4
camera1/mic-to-udp.sh

@@ -2,9 +2,16 @@
 
 HOST="224.1.1.1"
 HOST="192.168.2.255"
-enc="mulawenc ! rtppcmupay"
-enc="speexenc ! rtpspeexpay"
+enc="vorbisenc"
+enc="volume volume=0.8 ! mulawenc ! rtppcmupay"
+enc="opusenc ! rtpopuspay"
+# 
+SRC="audiotestsrc wave=sine freq=400 "
+SRC="alsasrc slave-method=resample do-timestamp=true"
 
+HOST="192.168.1.7:5001"
 HOST="192.168.2.120:5001"
-#HOST="192.168.2.120:5001,192.168.2.155:5001,192.168.2.68:5001"
-gst-launch-1.0 alsasrc slave-method=resample ! queue ! audioconvert ! audioresample ! $enc ! multiudpsink clients=$HOST
+#HOST="192.168.2.120:5001,192.168.2.155:5001" #,192.168.2.68:5001"
+
+echo gst-launch-1.0 $SRC ! audioconvert ! audioresample ! $enc ! multiudpsink clients=$HOST
+gst-launch-1.0 $SRC ! audioconvert ! audioresample ! $enc ! multiudpsink clients=$HOST