Bladeren bron

finetuning

David 10 jaren geleden
bovenliggende
commit
216a701a8d
2 gewijzigde bestanden met toevoegingen van 5 en 2 verwijderingen
  1. 4 2
      working-udp-audio.sh
  2. 1 0
      working-udp-video.sh

+ 4 - 2
working-udp-audio.sh

@@ -1,12 +1,14 @@
 #!/bin/bash
 
 SOURCE="audiotestsrc is-live=true"
+SOURCE='udpsrc port=5001 caps="application/x-rtp" ! queue ! rtppcmadepay ! alawdec'
 SOURCE='udpsrc port=5001 caps="application/x-rtp" ! queue ! rtppcmudepay ! mulawdec'
-BANDPASS="audiochebband mode=band-pass lower-frequency=100 upper-frequency=4000 poles=4"
+
+BANDPASS="audiochebband mode=band-pass lower-frequency=50 upper-frequency=4000"
 
 OUTPUT_FORMAT="audio/x-raw,format=S16LE,layout=interleaved, rate=48000, channels=2"
 
 (
-	echo 'audio feed ctr isaudio 1' 
+	echo 'audio feed ctr isaudio 1';
 	gst-launch-1.0 -q $SOURCE ! audioconvert ! audioresample ! $BANDPASS ! audioconvert ! $OUTPUT_FORMAT ! fdsink fd=1 sync=true 
 ) | nc 127.0.0.1 9999

+ 1 - 0
working-udp-video.sh

@@ -64,6 +64,7 @@ while true ; do
     # Remove the named pipe if it exist
     rm -f $feed_control_pipe
     com="gst-launch-1.0 -v $SRC ! videoconvert ! videorate ! videoscale ! videoconvert ! $VIDEOFORMAT ! queue ! $SHMSINK1"
+    com="gst-launch-1.0 -v $SRC ! videorate ! videoscale ! videoconvert ! $VIDEOFORMAT ! queue ! $SHMSINK1"
 
 	echo "#####################"
 	echo $com;