diff options
author | Antonio García-Domínguez <nyoescape@gmail.com> | 2016-06-20 11:14:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-20 11:14:32 +0100 |
commit | d9baeb24a79a2a161f996e5376a4db59a8090613 (patch) | |
tree | d6eb2ec455842c2fca295af895a6e678ea409f2b /prepare-videochat.sh | |
parent | 3a41cef9549cf7b68620c4059bf655a7681de49c (diff) | |
parent | de0237ca2e2e6c2fe46b5f89727c16c679b4df1e (diff) |
Merge pull request #30 from laptander/master
add Troubleshooting and add AUDIO_CODEC variable in different commits
Diffstat (limited to 'prepare-videochat.sh')
-rwxr-xr-x | prepare-videochat.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 3d57a3e..0ca87d8 100755 --- 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. @@ -130,6 +137,8 @@ HEIGHT=480 # Frame rate of video GST_FPS=5 +# Choose audio codec from wav, aac or opus +AUDIO_CODEC=opus ### FUNCTIONS @@ -330,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 |