From b2e8dca73be9b59e3461455ffe3e586f43a620cb Mon Sep 17 00:00:00 2001 From: Laptander Date: Sun, 19 Jun 2016 14:07:50 +0300 Subject: add troubleshooting for Arch Linux --- prepare-videochat.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'prepare-videochat.sh') diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 9a057d9..51013d4 100644 --- a/prepare-videochat.sh +++ b/prepare-videochat.sh @@ -32,7 +32,7 @@ # INSTALLATION # # In Arch Linux -# install ipwebcam-gst package from AUR +# install ipwebcam-gst-git package from AUR # # TROUBLESHOOTING # @@ -59,12 +59,19 @@ # # To make sure the video from IP Webcam works for you (except for # v4l2loopback and your video conference software), try this command -# with a simplified pipeline: +# with a simplified pipeline (do not forget to replace $IP and $PORT +# with your values): # +# on Debian: # gst-launch souphttpsrc location="http://$IP:$PORT/videofeed" \ # do-timestamp=true is-live=true \ # ! multipartdemux ! jpegdec ! ffmpegcolorspace ! ximagesink # +# on Arch Linux: +# gst-launch-1.0 souphttpsrc location="http://$IP:$PORT/videofeed" \ +# do-timestamp=true is-live=true \ +# ! multipartdemux ! jpegdec ! videoconvert ! ximagesink +# # You should be able to see the picture from your webcam on a new window. # If that doesn't work, there's something wrong with your connection to # the phone. -- cgit v1.2.3 From de0237ca2e2e6c2fe46b5f89727c16c679b4df1e Mon Sep 17 00:00:00 2001 From: Laptander Date: Sun, 19 Jun 2016 14:12:22 +0300 Subject: add AUDIO_CODEC variable --- prepare-videochat.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'prepare-videochat.sh') diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 51013d4..e19e94d 100644 --- a/prepare-videochat.sh +++ b/prepare-videochat.sh @@ -137,6 +137,8 @@ HEIGHT=480 # Frame rate of video GST_FPS=5 +# Choose audio codec from wav, aac or opus +AUDIO_CODEC=opus ### FUNCTIONS @@ -337,7 +339,7 @@ fi # Remind the user to open up IP Webcam and start the server BASE_URL=http://$IP:$PORT VIDEO_URL=$BASE_URL/videofeed -AUDIO_URL=$BASE_URL/audio.wav +AUDIO_URL=$BASE_URL/audio.$AUDIO_CODEC if phone_plugged && ! iw_server_is_started; then # If the phone is plugged to USB and we have ADB, we can start the server by sending an intent start_iw_server -- cgit v1.2.3