gst-vocoder.sh: use alsamidisrc and adjust the comment accordingly
[experiments/gstreamer.git] / shell / gst-v4l2-capture.sh
1 #!/bin/sh
2
3 set -e
4
5 [ "x$1" = "x" ] && { echo "usage $(basename "$0") <destination_file>" 1>&2; exit 1; }
6
7 FILENAME="$1"
8
9 VIDEO_CODEC="video/x-raw,format=I420 ! jpegenc quality=90"
10
11 gst-launch-1.0 -e \
12   matroskamux name=mux ! filesink location="$FILENAME" \
13   v4l2src ! queue ! videoconvert ! videorate ! $VIDEO_CODEC ! queue ! mux. \
14   pulsesrc ! queue ! audioconvert ! vorbisenc ! queue ! mux.