gst-screencast.sh: flush on EOS to make videos usable in video editors
[experiments/gstreamer.git] / shell / gst-screencast.sh
index e9c03d0..e601a62 100755 (executable)
@@ -116,7 +116,7 @@ else
     AUDIO_PIPELINE="pulsesrc ! audioconvert ! audio/x-raw,rate=44100,channels=2 ! queue ! mux."
   fi
 
-  gst-launch-1.0 -v \
+  gst-launch-1.0 -v -e \
     matroskamux name=mux ! filesink location="$FILENAME" \
     ximagesrc use-damage=0 show-pointer=$SHOW_POINTER $XIMAGESRC_ARGS ! video/x-raw,framerate=25/1 ! \
     videoconvert ! videorate ! $VIDEO_CODEC ! queue ! mux. \